Skip to content

Commit df31f37

Browse files
authored
Merge pull request #23220 from joshulyne/k8s-kpis-blogpost-edit
Fix promql for k8s kpis with kuberhealthy blog post
2 parents 3093547 + af15aa1 commit df31f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/blog/_posts/2020-05-29-K8s-KPIs-with-Kuberhealthy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ We calculate this by measuring Kuberhealthy's [deployment check](https://github.
175175

176176
- PromQL Query (Availability % over the past 30 days):
177177
```promql
178-
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)
178+
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]))
179179
```
180180

181181
*Utilization*

0 commit comments

Comments
 (0)