Commit 01ef4d5e authored by Ben Kochie's avatar Ben Kochie Committed by GitLab

More recording rules.

Additional recording rules for improving dashboards speed.
parent fccb5cff
......@@ -6,3 +6,10 @@ instance_cpu:node_cpu_not_idle:rate5m = sum(rate(node_cpu{mode!="idle"}[5m])) wi
# CPU in use by mode.
instance_mode:node_cpu:rate5m = sum(rate(node_cpu[5m])) without (cpu)
# Filesystem available percent for "real" filesystems.
instance:node_filesystem_avail:percent = node_filesystem_avail{device=~"/dev/.+"} / node_filesystem_size{device=~"/dev/.+"}
# Disk IO rates
instance:node_disk_writes_completed:irate1m = sum(irate(node_disk_writes_completed{device=~"sd.*"}[1m])) without (device)
instance:node_disk_reads_completed:irate1m = sum(irate(node_disk_reads_completed{device=~"sd.*"}[1m])) without (device)
# Query for frontend HAProxy metrics fleet overview
backend_code:haproxy_server_http_responses_total:irate1m = sum(irate(haproxy_server_http_responses_total[1m])) by (code,backend)
# HAProxy responses by backend and code.
backend_code:haproxy_server_http_responses_total:irate1m = sum(irate(haproxy_server_http_responses_total[1m])) by (backend, code)
# HAProxy frontend traffic bandwidth.
job_frontend:haproxy_frontend_bytes_in_total:irate1m = sum(irate(haproxy_frontend_bytes_in_total[1m])) by (job, frontend)
# HAProxy error rates.
job_frontend:haproxy_frontend_request_errors_total:irate1m = sum(irate(haproxy_frontend_request_errors_total[1m])) by (job,frontend)
job_backend:haproxy_backend_response_errors_total:irate1m = sum(irate(haproxy_backend_response_errors_total[1m])) by (job, backend)
# Total redis operations by command.
cmd:redis_command_call_duration_seconds_count:irate1m = sum(irate(redis_command_call_duration_seconds_count[1m])) by (cmd)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment