kube-apiserver availability calculation using PromQL

21 views
Skip to first unread message

mahmoud shiri varamini

unread,
Jun 22, 2020, 10:20:33 AM6/22/20
to Prometheus Users
Hi,
I'm trying to monitor my Kubernetes cluster availability.  I'm scraping kube-apiserver metrics and calculate availability according to pods availability. Some time cluster downs and kube-apiserver pods down and Prometheus server is not able to scrape at all and sometime lube-apiserver pods are up and running and also serving requests but due to network connectivity or any other reason Prometheus server can not scrape metrics.
But I should consider that api-server pods are available and did not respond and pods are down and even Prometheus can not scrape metrics due to network connectivity issues.
Is there any way to use PromQL to ignore no vales when I'm trying to calculate availability percent?

mahmoud shiri varamini

unread,
Jun 28, 2020, 2:52:32 AM6/28/20
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages