mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 01:17:19 +08:00
add Windows Server (wmi_exporter) examples (#39)
add Windows Server (wmi_exporter) examples
This commit is contained in:
commit
1ed92a3051
1 changed files with 22 additions and 0 deletions
|
|
@ -426,6 +426,28 @@ services:
|
|||
query: 'probe_ssl_earliest_cert_expiry - time() <= 0'
|
||||
severity: error
|
||||
|
||||
- name: Windows Server
|
||||
exporters:
|
||||
- name: martinlindhe/wmi_exporter
|
||||
doc_url: https://github.com/martinlindhe/wmi_exporter
|
||||
rules:
|
||||
- name: Service Status
|
||||
description: Windows Service state is not OK
|
||||
query: 'wmi_service_status{status="ok"} != 1'
|
||||
severity: error
|
||||
- name: CPU Usage
|
||||
description: CPU Usage is more than 80%
|
||||
query: '100 - (avg by (instance) (irate(wmi_cpu_time_total{mode="idle"}[2m])) * 100) > 80'
|
||||
severity: warning
|
||||
- name: Memory Usage
|
||||
description: Memory Usage is more than 90%
|
||||
query: '100*(wmi_os_physical_memory_free_bytes) / wmi_cs_physical_memory_bytes > 90'
|
||||
severity: warning
|
||||
- name: Disk Space Usage
|
||||
description: Disk Space on Drive is used more than 80%
|
||||
query: '100.0 - 100 * ((wmi_logical_disk_free_bytes{} / 1024 / 1024 ) / (wmi_logical_disk_size_bytes{} / 1024 / 1024)) > 80'
|
||||
severity: error
|
||||
|
||||
- name: Juniper
|
||||
exporters:
|
||||
- name: czerwonk/junos_exporter
|
||||
|
|
|
|||
Loading…
Reference in a new issue