Specify YAML formatting to all rules config.
This commit is contained in:
parent
92d0a1d8f0
commit
fa12d1476f
|
@ -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
|
||||
|
|
|
@ -49,7 +49,7 @@ rate(wmi_logical_disk_reads_total{instance="localhost", volume="C:"}[2m]) + rate
|
|||
|
||||
## Alerting examples
|
||||
**prometheus.rules**
|
||||
```
|
||||
```yaml
|
||||
groups:
|
||||
- name: Windows Disk Alerts
|
||||
rules:
|
||||
|
|
|
@ -43,7 +43,7 @@ wmi_os_timezone{timezone != "UTC"}
|
|||
|
||||
## Alerting examples
|
||||
**prometheus.rules**
|
||||
```
|
||||
```yaml
|
||||
# Alert on hosts that have exhausted all available physical memory
|
||||
- alert: MemoryExhausted
|
||||
expr: wmi_os_physical_memory_free_bytes == 0
|
||||
|
|
|
@ -79,7 +79,7 @@ count(wmi_service_state{exported_name=~"(sqlserveragent|mssqlserver)",state="run
|
|||
|
||||
## Alerting examples
|
||||
**prometheus.rules**
|
||||
```
|
||||
```yaml
|
||||
groups:
|
||||
- name: Microsoft SQL Server Alerts
|
||||
rules:
|
||||
|
|
Loading…
Reference in New Issue