I try to use the producer, consumer and broker metricset for Kafka. But when I use one of them I have this error:
2020-05-04T11:06:25.118Z INFO instance/beat.go:445 metricbeat stopped.
2020-05-04T11:06:25.118Z ERROR instance/beat.go:933 Exiting: 1 error: metricset 'kafka/broker' not found
Exiting: 1 error: metricset 'kafka/broker' not found
(The containers of Metricbeat and Kakfka is on the same pod)
Kafka and Metricbeat are deployed with a StatefulSet on 3 nodes
Is that enough, or do we need more details?
and everything is fine. Could you please verify the VERSION and maybe try to exec inside the container and manually install Metricbeat and give your config a shot?
I used the same image docker I use for Kubernetes and... it works.
root@396c19041214:/etc/metricbeat# metricbeat test modules kafka broker
kafka...
broker...
error... ERROR error making http request: Post http://localhost:8779/jolokia/%3FignoreErrors=true&canonicalNaming=false: dial tcp 127.0.0.1:8779: connect: connection refused
And the logs say the same thing:
Error fetching data for metricset kafka.broker: error making http request: Post http://localhost:8779/jolokia/%3FignoreErrors=true&canonicalNaming=false: dial tcp [::1]:8779: connect: cannot assign requested address
This error shows that the module works fine, but why doesn't it work in my K8s environment?
I tried to create a k8s pod with only Metricbeat and its configuration, the error is always the same:
INFO instance/beat.go:445 metricbeat stopped.
ERROR instance/beat.go:933 Exiting: 1 error: metricset 'kafka/broker' not found
Exiting: 1 error: metricset 'kafka/broker' not found
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.