Is there a way to show deployment object label in prometheus alert rules?
I have a deployment object label set as teamname=teamA I want to show this label in KubeDeploymentReplicasMismatch alert.
I could do the same for pods related alerts by modifying expression with,
* on(namespace,
pod) group_left(label_axway_com_team) kube_pod_labels
I am unable to do the same for deployment object related alerts..
I also want to do this for daemonsets, statefulsets, cronjobs, jobs related alerts..But I am not sure if there is a way to show the Kubernetes object labels in the prometheus metrics ..I see a way only for pod labels.
Any help on this please?