/collector

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

Primary LanguageGoGNU General Public License v3.0GPL-3.0

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