[email protected] -p9122
- agama
- nginx
- prometheus
- MySQL-ha
agama
prometheus
MySQL metrics
node metrics
Nginx metrics
[email protected] -p9722
- MySQL
- Bind
- Grafana
- Grafana-Docker
Grafana
node metrics
MySQL metrics
Bind metrics
Metrics: sum by (instance)(rate(node_cpu{mode!="idle"}[1m]))
Metrics: node_memory_MemAvailable
Metrics: bind_up
Panel > Visualization Stat
Panel > Display > Calculation Last
Panel > Display > Color mode Background
Panel > Display > Graph mode None
Field > Threshholds > Base red
Add threshhold green
at 0.5
Field > Value mappings
Mapping type > Value
Value > 1
Text > UP
Mapping type > Value
Value > 0
Text > DOWn
Metrics: rate(bind_resolver_queries_total[1m])
Metrics: mysql_global_variables_server_id
Display > Fields > pick vm
Metrics: mysql_up
(duplicate from Bind status)
Display > Fields > pick vm
Metrics: rate(mysql_global_status_queries[1m])
Metrics: rate(mysql_global_status_queries{job="mysql"}[1m])
Metrics: nginx_up
(duplicate from Bind status)
Metrics: rate(nginx_http_requests_total[1m])