telegraf监控tomcat8.5配置

telegraf监控tomcat并将数据发送到prometheus再在grafana上展示可参考该链接

  1. tomcat配置请参数该连接内容配置tomcat 8.5访问manager App界面
  2. 在telegraf.conf中添加如下配置
# Gather metrics from the Tomcat server status page.
[[inputs.tomcat]]
  ## URL of the Tomcat server status
  url = "http://tomcatIP:tomcatPort/manager/status/all?XML=true"

  ## HTTP Basic Auth Credentials
  username = "tomcat"  #tomcat用户
  password = "tomcat"  #tomcat密码

  ## Request timeout
  timeout = "5s"
  1. 重启tomcat
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章