¶手动安装
¶新增监控账号
mysql> create user mysql_exporter@'%' identified with mysql_native_password by 'mysql_exporter'; |
¶下载安装
# 官方下载地址:https://prometheus.io/download |
¶配置Prometheus
- job_name: "MySQL" |
# 重启prometheus |
¶配置Grafana
- 新增Dashboard
- 填写
https://grafana.com/grafana/dashboards/7362
- 选择Prometheus
- 导入