Giter VIP home page Giter VIP logo

Comments (4)

jicki avatar jicki commented on May 29, 2024

你告警规则中是否包含了 description 可以贴一下你的告警规则吗?

from prometheusalert.

chinaboy007 avatar chinaboy007 commented on May 29, 2024
  • alert: KubeStatefulSetReplicasMismatch
    annotations:
    description: StatefulSet {{ $labels.namespace }}/{{ $labels.statefulset
    }} has not matched the expected number of replicas for longer than 15
    minutes.
    runbook_url: https://github.com/prometheus-operator/kube-prometheus/wiki/kubestatefulsetreplicasmismatch
    summary: Deployment has not matched the expected number of replicas.
    expr: |
    (
    kube_statefulset_status_replicas_ready{job="kube-state-metrics"}
    !=
    kube_statefulset_status_replicas{job="kube-state-metrics"}
    ) and (
    changes(kube_statefulset_status_replicas_updated{job="kube-state-metrics"}[10m])
    ==
    0
    )
    for: 15m
    labels:
    severity: warning

from prometheusalert.

chinaboy007 avatar chinaboy007 commented on May 29, 2024

你告警规则中是否包含了 description 可以贴一下你的告警规则吗?

肯定是有的,我改成这样了
📝【告警详情】 {{ $v.annotations.message }}{{ $v.annotations.description}};{{$v.annotations.summary}}

现在效果如下:
image

from prometheusalert.

chinaboy007 avatar chinaboy007 commented on May 29, 2024

你告警规则中是否包含了 description 可以贴一下你的告警规则吗?

已解决,部分K8S规则默认使用的是 annotations.message. 改成annotations.message 有显示了

from prometheusalert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.