-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad error message regarding missing key #5709
Comments
Could you share your full metricbeat config? |
Hi Nicolas, Here is the config:
Please let me know if you need anything else. I m currently blocked on this. Thanks |
The output of Jolokia reported in the logs above looks as following:
A few ideas. Could you try the following config where the mbean is the same order as in the output?
It should not make a difference. If it does not work, can you try to make The last difference I see to all the objects we tests, is that we request multiple values and not only one. In these case of one value the data is not structured as an array. I wonder if this breaks our logic. Could you try to add a second value? |
Thanks so much for help. Changing the mbean name to as reported in jolokia response worked: "kafka.server:name=BytesInPerSec,type=BrokerTopicMetrics". You can close the issue. |
Great to hear it worked. Closing this. Probably we should add something about the order of the params to the docs. |
beats/metricbeat/module/jolokia/jmx/data.go
Line 84 in d8282c5
If the metricname is missing from map, key would always be empty. I m getting following error with jolokia module. Not sure what is the problem here:
Similar issue was discussed here: https://discuss.elastic.co/t/metric-beat-jolokia-module-cannot-read-attribute-value/92190. As claimed in the post, it seemed to have been fixed in 6.0.0-alpha2 release. I m using latest metricbeat docker image which is 6.0.0. Jolokia version used is 1.3.7.
The text was updated successfully, but these errors were encountered: