{"id":1276,"date":"2024-08-13T15:23:18","date_gmt":"2024-08-13T07:23:18","guid":{"rendered":"https:\/\/www.fanyamin.com\/wordpress\/?p=1276"},"modified":"2024-08-13T15:23:32","modified_gmt":"2024-08-13T07:23:32","slug":"alert-manager","status":"publish","type":"post","link":"https:\/\/www.fanyamin.com\/wordpress\/?p=1276","title":{"rendered":"Alert Manager"},"content":{"rendered":"<p>The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.<\/p>\n<h2>Grouping \u5206\u7ec4<\/h2>\n<p>Grouping categorizes alerts of similar nature into a single notification. This is especially useful during larger outages when many systems fail at once and hundreds to thousands of alerts may be firing simultaneously.<\/p>\n<p>\u5c06\u591a\u4e2a\u76f8\u540c\u7684\u8b66\u544a\u5f52\u7c7b\u4e3a\u5355\u4e2a\u7684\u901a\u77e5<\/p>\n<h2>Inhibition \u6291\u5236<\/h2>\n<p>Inhibition is a concept of suppressing notifications for certain alerts if certain other alerts are already firing.<\/p>\n<p>Inhibitions are configured through the Alertmanager's configuration file.<\/p>\n<h2>Silences \u9759\u9ed8<\/h2>\n<p>Silences are a straightforward way to simply mute alerts for a given time. A silence is configured based on matchers, just like the routing tree. Incoming alerts are checked whether they match all the equality or regular expression matchers of an active silence. If they do, no notifications will be sent out for that alert.<\/p>\n<p>Silences are configured in the web interface of the Alertmanager.<\/p>\n<h2>Client behavior \u7528\u6237\u884c\u4e3a<\/h2>\n<p>The Alertmanager has special requirements for behavior of its client. Those are only relevant for advanced use cases where Prometheus is not used to send alerts.<\/p>\n<h2>High Availability \u9ad8\u53ef\u7528\u6027<\/h2>\n<p>Alertmanager supports configuration to create a cluster for high availability. This can be configured using the --cluster-* flags.<\/p>\n<p>It's important not to load balance traffic between Prometheus and its Alertmanagers, but instead, point Prometheus to a list of all Alertmanagers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts. Grouping \u5206\u7ec4 Grouping categorizes alerts of similar nature into a single notification. [&hellip;] <a class=\"read-more\" href=\"https:\/\/www.fanyamin.com\/wordpress\/?p=1276\" title=\"Permanent Link to: Alert Manager\">&rarr;Read&nbsp;more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1276","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1276"}],"collection":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1276"}],"version-history":[{"count":2,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1276\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1276\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanyamin.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}