Sign inSign up

dfdsdk/kafka-exporter

By dfdsdk

•Updated about 1 year ago

Prometheus Kafka exporter using environment variables for configuration.

Image
0

10K+

dfdsdk/kafka-exporter repository overview

⁠kafka-exporter

Prometheus Kafka exporter.

This is using danielqsj/kafka-exporter⁠ as base image, but gives configuration values as environment variables instead of parameters.

⁠Environment variables

Following environment variables needs to be set when running the container.

Environment variableDescription
KAFKA_SERVERAddresses (host:port) of Kafka server.
SASL_USERNAMESASL user name.
SASL_PASSWORDSASL user password.
TOPIC_FILTERFilter to include topics (for all use ".*")
GROUP_FILTERFilter to include consumergroups (for all use ".*")

⁠Deployment prerequisites

If the scoped service account is missing for deployment, see https://wiki.dfds.cloud/en/teams/devex/selfservice/Kubernetes-ops-deployment-setup⁠

⁠ServiceAccount
  1. Create a ServiceAccount in Confluent Cloud and assign it the MetricsViewer role.

  2. In the cluster, under Data Integrations, API Keys, create a new API key that will be owned by the Service Account.

  3. Add the following ACLs to new API Key owned by the new Service Account:

ScopeID/NamePermissionOperationPattern
Clusterkafka-clusterALLOWDESCRIBELITERAL
Clusterkafka-clusterALLOWDESCRIBE_CONFIGLITERAL
Consumer Group*ALLOWDESCRIBELITERAL
Consumer Group*ALLOWDESCRIBEPREFIX
Topic*ALLOWDESCRIBELITERAL
Topic*ALLOWDESCRIBEPREFIX

Tag summary

Content type

Image

Digest

sha256:8967361e7…

Size

13.5 MB

Last updated

about 1 year ago

docker pull dfdsdk/kafka-exporter:v1.8.3