Specify YAML formatting to all rules config.

This commit is contained in:
Pei-Tang Huang
2019-10-30 16:08:03 +08:00
parent 92d0a1d8f0
commit fa12d1476f
4 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ sum by (mode) (irate(wmi_cpu_time_total{instance="localhost"}[5m]))
## Alerting examples
**prometheus.rules**
```
```yaml
# Alert on hosts with more than 80% CPU usage over a 10 minute period
- alert: CpuUsage
expr: 100 - (avg by (instance) (irate(wmi_cpu_time_total{mode="idle"}[2m])) * 100) > 80