consumer_prometheus

command module
v0.0.0-...-7f2ac71 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

README

consumer_prometheus

This is a basic consumer that grabs flow data from a Kafka topic and exposes some stats using the Prometheus metric format.

Usage

The simplest call could look like this, which would start the consumer with TLS encryption and SASL auth enabled.
Exposed Stats are available via port 8080 to prometheus at /metrics and /flowdata endpoints.

./consumer_prometheus \
  --kafka.brokers=kafka.local:9092 \
  --kafka.topic=flows-enriched \
  --kafka.consumer_group=test-consumer-group \
  --kafka.user=username \
  --kafka.pass=ultraSecretPassword

Also check out our demo for more examples.

Additional options

Note that these values are set to false by default.
TLS and SASL auth can also be deactivated with:

  --kafka.disable_auth=true \
  --kafka.disable_tls=true \

There is also an option to connect as anon user to your kafka instance.

  --kafka.auth_anon=true

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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