collector

command module
v0.0.0-...-3277539 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

README

collector

A data collection program developed using Kafka, MongoDB, and Golang.

1. Techs
2. Configuration
service_name: collector_local

log:
  path: logs/collector.log
  size_mb: 256

mongodb:
  uri: mongodb://root:root@localhost:27017
  min_pool_size: 20
  max_pool_size: 500
  timeout_secs: 5
  db: collector

kafka:
  addrs: [localhost:9092]
  version: 3.4.0
  topic: collector
  # consumer
  group_id: default
  # producer
  key: key0001

bp:
  count: 1000
  interval: 1m

metrics:
  addr: :5011
  prometheus: true
  debug: true

otel:
  enable: false
  addr: otel-collector:4317

grpc:
  tls: false
  cert: configs/server.pem
  key: configs/server.key
3. Run
go main.go --config=configs/local.yaml --addr=0.0.0.0:5021

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
biz
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL