prometheus + grafana
下载
https://prometheus.io/download/
https://github.com/prometheus-community/windows_exporter/releases
https://grafana.com/grafana/download?edition=oss
配置
#windows_exporter
- job_name: 'Windows'
static_configs:
- targets: ['localhost:9182']
labels:
instance: Windows
#springboot
- job_name: 'springboot_prometheus'
scrape_interval: 5s
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ["localhost:8080"]
#mysqld_exporter https://github.com/prometheus/mysqld_exporter
- job_name: 'mysqld_exporter'
static_configs:
- targets: ['localhost:9104']
labels:
instance: Mysqld
启动
promethus.exe
#http://localhost:9090/
#grafana安装为服务
#http://localhost:3000/ admin admin
# windows_exporter for Prometheus Dashboard CN v20201012 : 10467
# SLS JVM监控大盘 :12856
#mysqld 7362