Alerts for when active deployment replicas is fewer than desired

966 views
Skip to first unread message

bra...@rabb.it

unread,
Aug 13, 2018, 11:22:14 PM8/13/18
to Prometheus Users
I'm having an extremely hard time learning to use prometheus for monitoring my cluster.
 
Are there any nice hand-holding tutorials for creating alerts to watch the health of a cluster and the Kubernetes constructs within. Particularly: alerting when a specific deployment has fewer active replicas than desired for a certain length of time. 

I am using the regular prometheus helm chart for self-managed Kubernetes.

Meier

unread,
Aug 14, 2018, 1:14:09 AM8/14/18
to Prometheus Users
maybe this blog is helpful https://blog.outlyer.com/top-kubernetes-metrics-to-monitor (part4 has links to all parts)

For monitoring if  deployments has fewer active replicas I use this:

(kube_deployment_status_replicas_unavailable > 0)
 
or (kube_deployment_status_replicas != kube_deployment_status_replicas_available)
 
or (kube_deployment_status_replicas unless kube_deployment_status_replicas_available)



Reply all
Reply to author
Forward
0 new messages