The use case is to alert on the disk usage deviation from the mean, within
a cluster of hosts. The alert should indicate which host deviates from the
median disk usage.
So this could be written as:
metric format: `disk_usage_pct{cluster=foo, instance=foo01}`
`max(disk_usage_pct) by (cluster) - median(disk_usage_pct) by (cluster)`
This will give the % deviation. But it'll mask the `instance` tag, since
the above aggregate across the `cluster` label.
Is there a way to preserve the `instance` label?
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5c2e4e6a-4efa-4771-a8c4-1a92062ed015n%40googlegroups.com.