Prometheus windows 监控规则 rules

groups:
- name:  Redis.rules
  rules:
      - alert: WinInstanceMemUsageHigh
        expr: 100-(windows_os_physical_memory_free_bytes/windows_cs_physical_memory_bytes)*100 > 90
        for: 3m
        labels:
          severity: critical
        annotations:
          summary: "Instance memory usage high"
          description: "Instance memory usage above 90%.(current usage: {{ $value }}%)"
      - alert: WinCpuUsage
        expr: 100 - (avg by (instance,region) (irate(windows_cpu_time_total{mode="idle"}[2m])) * 100) > 90
        for: 3m
        labels:
          severity: warning
        annotations:
          summary: "Instance CPU usage high"
          description: "Instance CPU Usage is more than 90%.(current usage: {{ $value }}%)"
      - alert: WinDiskUsageHigh
        expr: 100-(windows_logical_disk_free_bytes/windows_logical_disk_size_bytes)*100 > 90
        for: 1m
        labels:
          severity: critical
        annotations:
          summary: "Instance disk usage high"
          description: "Instance disk {{ $labels.volume }} usage above 90%.(current usage: {{ $value }}%)"

  

posted @ 2023-01-11 11:38  大川哥  阅读(529)  评论(0编辑  收藏  举报