At a first glance I see that the field name for the thread count is commented out, can you try to remove the comment for the line with field: threading.thread_count?
If this doesn't fix the issue, are other metrics collected? Do you see any error in metricbeat logs?
So I've tried uncommenting that multiple times and it whenever I do I stop getting data to Kibana. When it is commented out I get data to Kibana just not with the desired results. I do however have an error in my logs:
error": {
"message": "error making http request: Post ip/jolokia/%3FignoreErrors=true&canonicalNaming=false: dial tcp (myIPhere): connect: connection refused"
}
This is weird because the error seems to be caused by some connectivity issue, nothing related to specific metrics. Could you paste here the configuration you have when you see this error?
Hi sorry I'm a bit new to this. What specific config would you like to see? My jolokia / metricbeat yml files, my code, logstash, etc. Just let me know and I'll paste it here.
Oh ok, then the error seems to be caused by some connectivity issue. Can you check if your jolokia endpoint is reachable from where metricbeat is running? You can use curl for example for that.
Ok cool thanks for clearing that up! I really appreciate all the feedback you have been providing me.
Also once I fix that module will the thread attributes show up in the JSON? If I uncomment the code below I stop getting all data in Kibana. Commented the way it's shown will send the JSon linked above.
There seems to be some indentation problems in this file, could you comment out all the code you want and try again to see if there are more errors in the logs?
So if I comment everything I want out it works with no errors showing in the JSON on Kibana.
I also found out if everything works if I comment out each field. Once field is commented out I instantly get data back on Kibana. When field is uncommented I stop getting any data to Kibana.
My main goal here is to get these metrics on Kibana. I have not seen any of these metrics appear in the JSON on Kibana yet.
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.