1,参考链接官网https://github.com/nlighten/tomcat_exporter/ 2,下载jar包 simpleclient-0.16.0.jar simpleclient-1.0.2.jar simpleclient_common-0.16.0.jar simpleclient_hotspot-0.16.0.jar simpleclient_servlet-0.16.0.jar simpleclient_servlet_common-0.16.0.jar tomcat_exporter_client-0.0.17.jar 将这些jar包,放到tomcat/lib目录下 2,将metrics.war 放到tomcat/webapps目录下 3,验证链接url http://10.2.1.198:10007/metrics/ 4,在 prometheus.yml中配置 - job_name: 'tomcat-exporter' #往下是新添加的 static_configs: - targets: ['10.2.1.198:10007','10.10.137.100:8081'] 5,最终效果
欢迎关注我的公众号
标签:exporter,tomcat,jar,prometheus,0.16,simpleclient From: https://www.cnblogs.com/alonewaiting/p/17076977.html