Skip to content
Discussion options

You must be logged in to vote

The kafka-exporter only generates metrics if producer/consumer are push/pull logs from/info kafka.
Deploy producer and consumer

bash-4.2$ curl localhost:9404/metrics | grep kafka | cut -d '{' -f 1 | sort | uniq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 36524  100 36524    0     0   170k      0 --:--:-- --:--:-- --:--:--  170k
# HELP kafka_brokers Number of Brokers in the Kafka Cluster.
# HELP kafka_consumergroup_current_offset Current Offset of a ConsumerGroup at Topic/Partition
# HELP kafka_consumergroup_lag Current Approximate Lag of a ConsumerGroup at Topic/Partition
…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@veerendra2
Comment options

@scholzj
Comment options

@veerendra2
Comment options

@scholzj
Comment options

@veerendra2
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by veerendra2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants