add Windows Server (wmi_exporter) examples (#39)

add Windows Server (wmi_exporter) examples
This commit is contained in:
Samuel Berthe 2019-07-14 17:33:39 +02:00 committed by GitHub
commit 1ed92a3051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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