Hi There,
I have configured JMX Exporter to scrape the kafka metrics as a java agent.
I am able to see JMX Exporter fetch all the Kafka metrics only for a few hours after which prometheus is unable to scrape the metrics and we get the below message
| context deadline exceeded |
|
Also when we run a curl for the from the Kafka Instance it takes forever to pull the Kafka metrics.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:40:01 --:--:-- 0
If i do a restart of the Kakfa service, I can see the metrics being able to be pulled up again only for few hours and then we are back to the above issue.
I have setup JMX exporter as a java agent, which is run along with Kafka service
cat /etc/systemd/system/kafka.service
[Service]
Environment="KAFKA_OPTS=-Djava.security.auth.login.config=/opt/kafka/config/kafka_server_jaas.conf -javaagent:/opt/jmx-exporter/jmx_prometheus_javaagent-0.12.0.jar=7070:/opt/jmx-exporter/kafka-2_0_0.yml"