Prometheus windows 监控规则 rules

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 @   大川哥  阅读(576)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
历史上的今天:
2018-01-11 作业练习:从菜谱跳转到课程表
2018-01-11 常用标签
点击右上角即可分享
微信分享提示