Merge pull request #426 from tan9/markdown-syntax-highlight

Specify YAML formatting to all rules config.
This commit is contained in:
Calle Pettersson 2019-10-30 09:43:47 +01:00 committed by GitHub
commit 7fde426e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

View File

@ -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:

View File

@ -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

View File

@ -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: