以下是一些可能适用于Prometheus Windows告警规则的示例: 1. CPU利用率过高的告警规则: ``` ALERT HighCpuUsage IF 100 - (avg by (instance) (win_cpu_time_total{mode="idle"} * 100) or on() group_left() win_cpu_time_total{mode="idle"} * 100) > 90 FOR 5m ...
例如,可以使用以下查询来获取Windows主机的CPU使用率: 代码语言:txt 复制 100 - (avg by (instance) (irate(windows_cpu_time_total{job="windows", mode="idle"}[5m])) * 100) 推荐的腾讯云相关产品:腾讯云监控服务(https://cloud.tencent.com/product/monitoring) 腾讯云监控服务是腾讯云提供的一款全面的...
wmi_os_time{instance=~"$server"} - wmi_system_system_up_time{instance=~"$server"} CPU核数: wmi_cs_logical_processors{instance=~"$server"} 内存大小: wmi_cs_physical_memory_bytes{instance=~"$server"} CPU使用率: 100 - (avg by (instance) (irate(wmi_cpu_time_total{mode="idle", insta...
- 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...
为Windows 抓取的指标 当启用 windows-exporter 和 kube-proxy-windows 时,将收集以下指标。 windows-exporter (job=windows-exporter) windows_system_system_up_time windows_cpu_time_total windows_memory_available_bytes windows_os_visible_memory_bytes ...
删除windows_exporter 服务 代码语言:javascript 复制 scdeletewindows_exporter Prometheus 添加 windows_exporter 节点监控 vim /usr/local/prometheus/prometheus.yml 代码语言:javascript 复制 -job_name:"windows-node"scrape_interval:60sstatic_configs:-targets:['192.168.100.85:9182']labels:project:windows_node_exp...
(avg by (instance) (rate(windows_cpu_time_total { mode= "idle" } [ 2m ] )) * 100) > 80 for : 0m labels : severity : warning annotations : summary : windows server cpu usage (instance { { $labels.instance } } ) description : "cpu usage is more than 80%\n value = {{ $...
- alert: "-CPU报警" expr: 100 - (avg by (instance) (irate(windows_cpu_time_total{mode="idle"}[2m])) * 100) > 30 for: 60s labels: severity: warning annotations: description: "{{ $labels.instance }} CPU报警资源利用率大于 30%" ...
groups:-name:预警rules:-alert:WindowsServer CPU预警expr:100-(avg by (instance) (rate(windows_cpu_time_total{mode="idle"}[2m])) * 100) > 80for:10slabels:severity:warningannotations:summary:Windows Server CPU Usage (instance {{ $labels.instance }})description:"{{$labels.instance}}的CPU使用...
微软Windows 是当前主流操作系统之一,在桌面和服务端均有较大市场份额。 对于Linux 操作系统,Prometheus 可以通过 Node Exporter 来进行基础资源(CPU、内存、磁盘、网络等)监控,类似地,对于 Windows 操作系统,我们也需要对这个 OS 环境下的基础资源进行 Prometheus 监控。