The issue resolved:
https://stackoverflow.com/questions/62516996/availability-calculation-using-promql

On Monday, June 22, 2020 at 6:50:33 PM UTC+4:30, mahmoud shiri varamini 
wrote:
>
> 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?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/ea1ddd15-f22b-484a-b750-88954d87caedo%40googlegroups.com.

Reply via email to