Skip to content

Commit

Permalink
move code to codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Sep 16, 2024
1 parent 56d176d commit e90edac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/docs/how-tos/setup-healthcheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ All healthchecks are exported as metrics to Prometheus and can be viewed in Graf
For example: To see the uptime for the conda-store service, you can run:
`1 - (sum(count_over_time(kuberhealthy_check{check="dev/conda-store-http-check", status="0"}[30d])) OR vector(0))/(sum(count_over_time(kuberhealthy_check{check="dev/conda-store-http-check", status="1"}[30d])) * 100)`
```
1 - (sum(count_over_time(kuberhealthy_check{check="dev/conda-store-http-check", status="0"}[30d])) OR vector(0))/(sum(count_over_time(kuberhealthy_check{check="dev/conda-store-http-check", status="1"}[30d])) * 100)
```

in Grafana, which will show you the following chart.

Expand Down

0 comments on commit e90edac

Please sign in to comment.