mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 18:06:58 +08:00
Adapt rules for windows to new exporter
This commit is contained in:
parent
5f6127f35a
commit
1b6cd55200
1 changed files with 7 additions and 7 deletions
|
|
@ -306,28 +306,28 @@ groups:
|
||||||
|
|
||||||
- name: Windows Server
|
- name: Windows Server
|
||||||
exporters:
|
exporters:
|
||||||
- name: martinlindhe/wmi_exporter
|
- name: prometheus-community/windows_exporter
|
||||||
doc_url: https://github.com/martinlindhe/wmi_exporter
|
doc_url: https://github.com/prometheus-community/windows_exporter
|
||||||
rules:
|
rules:
|
||||||
- name: Windows Server collector Error
|
- name: Windows Server collector Error
|
||||||
description: "Collector {{ $labels.collector }} was not successful"
|
description: "Collector {{ $labels.collector }} was not successful"
|
||||||
query: "wmi_exporter_collector_success == 0"
|
query: "windows_exporter_collector_success == 0"
|
||||||
severity: critical
|
severity: critical
|
||||||
- name: Windows Server service Status
|
- name: Windows Server service Status
|
||||||
description: Windows Service state is not OK
|
description: Windows Service state is not OK
|
||||||
query: 'wmi_service_status{status="ok"} != 1'
|
query: 'windows_service_status{status="ok"} != 1'
|
||||||
severity: critical
|
severity: critical
|
||||||
- name: Windows Server CPU Usage
|
- name: Windows Server CPU Usage
|
||||||
description: CPU Usage is more than 80%
|
description: CPU Usage is more than 80%
|
||||||
query: '100 - (avg by (instance) (rate(wmi_cpu_time_total{mode="idle"}[2m])) * 100) > 80'
|
query: '100 - (avg by (instance) (rate(windows_cpu_time_total{mode="idle"}[2m])) * 100) > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
- name: Windows Server memory Usage
|
- name: Windows Server memory Usage
|
||||||
description: Memory usage is more than 90%
|
description: Memory usage is more than 90%
|
||||||
query: "100 - ((wmi_os_physical_memory_free_bytes / wmi_cs_physical_memory_bytes) * 100) > 90"
|
query: "100 - ((windows_os_physical_memory_free_bytes / windows_cs_physical_memory_bytes) * 100) > 90"
|
||||||
severity: warning
|
severity: warning
|
||||||
- name: Windows Server disk Space Usage
|
- name: Windows Server disk Space Usage
|
||||||
description: Disk usage is more than 80%
|
description: Disk usage is more than 80%
|
||||||
query: "100.0 - 100 * ((wmi_logical_disk_free_bytes{} / 1024 / 1024 ) / (wmi_logical_disk_size_bytes{} / 1024 / 1024)) > 80"
|
query: "100.0 - 100 * ((windows_logical_disk_free_bytes{} / 1024 / 1024 ) / (windows_logical_disk_size_bytes{} / 1024 / 1024)) > 80"
|
||||||
severity: critical
|
severity: critical
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue