Unverified Commit 05da121d authored by Ben Kochie's avatar Ben Kochie
Browse files

Fixup naming convention for process recording.

parent 5432105e
groups: groups:
- name: Generic process - name: Generic process
rules: rules:
- record: process_cpu_seconds_total:rate1m - record: instance:process_cpu_seconds_total:rate1m
expr: rate(process_cpu_seconds_total[1m]) expr: rate(process_cpu_seconds_total[1m])
...@@ -133,7 +133,7 @@ groups: ...@@ -133,7 +133,7 @@ groups:
runbook: troubleshooting/gitaly-down.md runbook: troubleshooting/gitaly-down.md
title: Gitaly is down on {{ $labels.fqdn }} title: Gitaly is down on {{ $labels.fqdn }}
- alert: GitalyFileServerCPUUsage - alert: GitalyFileServerCPUUsage
expr: avg(process_cpu_seconds_total:rate1m{environment=~"g?prd",job="gitaly",tier="stor",type="gitaly"}) expr: avg(instance:process_cpu_seconds_total:rate1m{environment=~"g?prd",job="gitaly",tier="stor",type="gitaly"})
BY (fqdn) / avg(instance:node_cpus:count{tier="stor",type="gitaly"}) BY (fqdn) BY (fqdn) / avg(instance:node_cpus:count{tier="stor",type="gitaly"}) BY (fqdn)
> 0.5 > 0.5
for: 1m for: 1m
......
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