Get metrics by label where the label is not in another metric

9 views
Skip to first unread message

Brandon Dennis

unread,
Jun 1, 2020, 3:46:11 PM6/1/20
to Prometheus Users
So I'm trying to setup a query for alertmanager that will trigger if a container is running without any limits (for example cpu limits). My thinking was I could take all the entries in kube_pod_container_info metric and do a count on that where there is no matching "pod" label in kube_pod_container_limits_cpu_cores. I'm not sure if this is possible or if there is a better way of doing this. I'd appreciate any help.
Reply all
Reply to author
Forward
0 new messages