Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

convert flow messages from Kafka to prometheus exporter format

License

Notifications You must be signed in to change notification settings

bwNetFlow/consumer_prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

convert flow messages from Kafka to prometheus exporter format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published