首页 > 其他分享 >012k8s_Prometheus常见监控指标解析

012k8s_Prometheus常见监控指标解析

时间:2023-02-05 16:37:05浏览次数:43  
标签:012k8s process labels Prometheus jvm usage 告警 解析 cpu

一、jvm进程cpu利用率优化

# HELP process_cpu_usage The "recent cpu usage" for the Java Virtual Machine process
# TYPE process_cpu_usage gauge
process_cpu_usage 0.12489451476793248

告警优化:
(1)原来的告警规则:


(2)新的告警规则
      - alert: JVM_P HighCPU
        expr: process_cpu_usage > 0.8
        for: 2m
        annotations:
          summary: "warn Instance {{ $labels.instance }} jvm process High cpu usage"
          description: " {{ $labels.instance }} of job {{ $labels.job }} jvm process cpu usage is too high for more than 2 minutes."

二、  

标签:012k8s,process,labels,Prometheus,jvm,usage,告警,解析,cpu
From: https://www.cnblogs.com/itcomputer/p/17093532.html

相关文章