Commit 7b567509 authored by Brian Brazil's avatar Brian Brazil

Merge pull request #329 from brian-brazil/newamblog

Update anomaly blog post for new AM and alert syntax
parents f3a6734b bcb1345a
...@@ -83,8 +83,6 @@ ALERT InstanceLatencyOutlier ...@@ -83,8 +83,6 @@ ALERT InstanceLatencyOutlier
> >
1 1
FOR 30m FOR 30m
SUMMARY "{{$labels.instance}} in {{$labels.job}} is a latency outlier"
DESCRIPTION "{{$labels.instance}} has latency of {{humanizeDuration $value}}"
``` ```
## Automatic actions ## Automatic actions
...@@ -107,23 +105,13 @@ configuration that uses it could look like this: ...@@ -107,23 +105,13 @@ configuration that uses it could look like this:
``` ```
# A simple notification configuration which only sends alert notifications to # A simple notification configuration which only sends alert notifications to
# an external webhook. # an external webhook.
notification_config { receivers:
name: "restart_webhook" - name: restart_webhook
webhook_config { webhook_configs:
url: "http://example.org/my/hook" url: "http://example.org/my/hook"
}
} route:
receiver: restart_webhook
# An aggregation rule which matches all alerts with the label
# alertname="InstanceLatencyOutlier" and sends them using the "restart_webhook"
# notification configuration.
aggregation_rule {
filter {
name_re: "alertname"
value_re: "InstanceLatencyOutlier"
}
notification_config_name: "restart_webhook"
}
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment