My latest article on DZone is online. There you can learn how to configure Telegraf to pull metrics from a Java application running inside a Docker container.
The Telegraf Jolokia plugin configuration presented as example in the article is set up to collect metrics about the heap memory usage, thread count and class count, but these aren't the only metrics you can collect this way. When running a container hosting the Java app with the Jolokia agent, you can get the full list of available metrics through the following GET request:
curl -X GET http://<jolokia_host>:<jolokia_port>/jolokia/list
and pick up their names and attributes to be added to the plugin configuration.
The Telegraf Jolokia plugin configuration presented as example in the article is set up to collect metrics about the heap memory usage, thread count and class count, but these aren't the only metrics you can collect this way. When running a container hosting the Java app with the Jolokia agent, you can get the full list of available metrics through the following GET request:
curl -X GET http://<jolokia_host>:<jolokia_port>/jolokia/list
and pick up their names and attributes to be added to the plugin configuration.
Comments
Post a Comment