09 . Prometheus监控tomcat+jvm (2)
配置Prometheus
添加tomcat到prometheus
tail -3 /usr/local/prometheus/prometheus.yml
- job_name: 'tomcat'
static_configs:
- targets: ['192.168.43.226:39081']
重启服务
systemctl restart prometheus
配置Grafana
寻找tomcat模板
grafana导入模板
查看tomcat仪表盘
内容版权声明:除非注明,否则皆为本站原创文章。