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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.