K
Q

What do kube_state metrics Return?

5/3/2018

I am trying to write some rules for alerts in prometheus. The rules I write seem to be syntactically correct and I know it satisfies, but I am not able to see it as an Alert. For example-

 IF kube_pod_container_status_running{pod="pod-name",container="container_name"} > 0

Is this the right way to write it? What does kube_pod_container_status_running return? bool or some number?

-- RV186
docker
kubernetes
prometheus
prometheus-alertmanager
yaml

Similar Questions

Kubernetes how does Kubectl exec works and how to troubleshoot it
what is the proper proxy settings for docker and kubernetes
How to share rate limiting state between traefik instances?
Deploying Django Application with PostgreSQL to Kubernetes Google Cloud cluster
Round Robin Load Balancing isn't working in AWS EKS Classic or Application Load Balancer
OpenCensusAgent trace provider (W3C Trace Standard) is not working in Istio
kubectl minikube renew certificate
Custom password for kubernetes dashboard when using eks
Is there any Penetration Testing or Security Audit guidelines (Such as OWASP) for Kubernetes?
Kubernetes init container issue with environment variables
How can I check whether K8s volume was mounted correctly?
Is it possible to create a zone only node pool in a regional cluster in GKE?

0 Answers