Merge pull request #23220 from joshulyne/k8s-kpis-blogpost-edit
Fix promql for k8s kpis with kuberhealthy blog postpull/23230/head
commit
df31f37a01
|
@ -175,7 +175,7 @@ We calculate this by measuring Kuberhealthy's [deployment check](https://github.
|
|||
|
||||
- PromQL Query (Availability % over the past 30 days):
|
||||
```promql
|
||||
1 - (sum(count_over_time(kuberhealthy_check{check="kuberhealthy/deployment", status="0"}[30d])) OR vector(0))/(sum(count_over_time(kuberhealthy_check{check="kuberhealthy/deployment", status="1"}[30d])) * 100)
|
||||
1 - (sum(count_over_time(kuberhealthy_check{check="kuberhealthy/deployment", status="0"}[30d])) OR vector(0)) / sum(count_over_time(kuberhealthy_check{check="kuberhealthy/deployment", status="1"}[30d]))
|
||||
```
|
||||
|
||||
*Utilization*
|
||||
|
|
Loading…
Reference in New Issue