Skip to content

Commit

Permalink
Add Alermanager example
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Dec 6, 2018
1 parent 6bf8552 commit 29137ae
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,25 @@ helm upgrade -i flagger flagger/flagger \
Once configured with a Slack incoming webhook, Flagger will post messages when a canary deployment has been initialized,
when a new revision has been detected and if the canary analysis failed or succeeded.

![flagger-slack](https://github.com/raw/stefanprodan/flagger/master/docs/screens/slack-notifications.png)
![flagger-slack](https://github.com/raw/stefanprodan/flagger/master/docs/screens/slack-canary-success.png)

A canary deployment will be rolled back if the progress deadline exceeded or if the analysis
reached the maximum number of failed checks:

![flagger-slack-errors](https://github.com/raw/stefanprodan/flagger/master/docs/screens/slack-canary-failed.png)

Besides Slack, you can use Alertmanager to trigger alerts when a canary deployment failed:

```yaml
- alert: canary_rollback
expr: flagger_canary_status > 1
for: 1m
labels:
severity: warning
annotations:
summary: "Canary failed"
description: "Workload {{ $labels.name }} namespace {{ $labels.namespace }}"
```
### Roadmap
Expand Down

0 comments on commit 29137ae

Please sign in to comment.