Hi,
The following is my conf.
ElasticSearch - 6.2.2
Logstash - 6.2.2
Kibana - 6.2.2
Metricbeat - 6.2.2
I am trying to pull the JMX data from my clients using the jolokia module in the metricbeat. I had installed the jolokia in my target clients and enabled the jolokia module in the metricbeat. While manually checking through the browser Iam getting the result throgh jolokia as expected. Following is my metricbeat jolokia conf, - module: jolokia
_ metricsets: ["jmx"]_
_ period: 10s_
_ hosts: ["10.10.114.155:8085"]_
_ namespace: "metrics"_
_ path: "/jolokia/read/"_
_ jmx.mapping:_
_ - mbean: 'java.lang:type=Runtime'_
_ attributes:_
_ - attr: Uptime_
_ field: uptime_
But while restarting the metricbeat I am getting the following error, 2018-03-23T11:04:36.866+0530 ERROR instance/beat.go:667 Exiting: 1 error: 1 error: missing required field accessing '0.jmx.mappings' (source:'/etc/metricbeat/modules.d/jolokia.yml')
@agathver Thanks for the reply with the sample! I tried with the sample. Its working. But in the metric beat logs I am getting the following error that the fields are missing.
2018-03-23T12:11:18.550+0530 INFO template/load.go:73 Template already exists and will not be overwritten. 2018-03-23T12:11:27.564+0530 ERROR schema/schema.go:41 Error on field 'server_uptime': Missing field: server_uptime, Error: Key ServerUptimeSeconds not found 2018-03-23T12:11:27.564+0530 ERROR schema/schema.go:41 Error on field 'user': Missing field: user, Error: Key CPUUser not found 2018-03-23T12:11:27.564+0530 ERROR schema/schema.go:41 Error on field 'system': Missing field: system, Error: Key CPUSystem not found 2018-03-23T12:11:27.565+0530 ERROR schema/schema.go:41 Error on field 'children_user': Missing field: children_user, Error: Key CPUChildrenUser not found 2018-03-23T12:11:27.565+0530 ERROR schema/schema.go:41 Error on field 'children_system': Missing field: children_system, Error: Key CPUChildrenSystem not found 2018-03-23T12:11:37.565+0530 ERROR schema/schema.go:41 Error on field 'children_system': Missing field: children_system, Error: Key CPUChildrenSystem not found 2018-03-23T12:11:37.565+0530 ERROR schema/schema.go:41 Error on field 'user': Missing field: user, Error: Key CPUUser not found 2018-03-23T12:11:37.565+0530 ERROR schema/schema.go:41 Error on field 'system': Missing field: system, Error: Key CPUSystem not found 2018-03-23T12:11:37.565+0530 ERROR schema/schema.go:41 Error on field 'children_user': Missing field: children_user, Error: Key CPUChildrenUser not found 2018-03-23T12:11:37.565+0530 ERROR schema/schema.go:41 Error on field 'server_uptime': Missing field: server_uptime, Error: Key ServerUptimeSeconds not found
Is there any tomcat version dependencies ? I am using apache tomcat 7! and installed the jolokia as a webarchive accessible through http://x.x.x.x:8085/jolokia
Thanks in advance!
Vishnu
@agathver Thanks for the reply! But the systems.yml is working fine and its sending the correct metrics too. The jolokia conf is as follows. I added some more detailed metrics in the conf. - module: jolokia
_ metricsets: ["jmx"]_
_ enabled: true_
_ period: 10s_
_ namespace: "jolokia_metrics"_
_ hosts: ["10.10.114.155:8085"]_
_ path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"_
_ jmx.mappings:_
_ #jmx.mapping:_
Could you please check the Apache module? On closer inspection, the values seem like those from Apache status page.
Please use three backticks to enclose any code/conf snippets that you post it makes it easier to read , as it invokes syntax highlighting and preserves whitespace.
@agathver Sorry for the misalignment of the codes. Thanks for the reply!
I tried by disabling the Apache! As suspected it was coming from the apache module itself! But in kibana, I am getting the results from the apache server. And also related with the jolokia, Iam not getting any logs of the jolokia module in kibana!
Whether there is any default dashboards for the Jolokia Module, in kibana? If yes how to import it in the kibana?
Thanks in advance!
Vishnu
@agathver Thanks for the reply! I was working with the jolokia module for monitoring our test app servers. So its successful with the apache and other modules. Is there any way to create a dashboard manually from my end so that I can forward with the testing for jolokia! Sorry ,as I am newbie to the KIBANA. Request you to advise!
Thanks in advance
Vishnu
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.