Skip to content

Commit

Permalink
Alertmanager configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pslattery committed Aug 18, 2019
1 parent b3fa172 commit 21127cf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions calert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ calert pushes Alertmanager notifications to Google Chat via webhook integration.


To install the chart with the release name `calert`, in the namespace `clu-inf-all`, using the Google Hangouts Chat webhooks listed in the file `calert_values.yaml`:

```console
$ helm install incubator/calert --values=calert_values.yaml --name=calert --namespace=clu-inf-all
```

calert_values.yaml

```yaml
configmap:
rooms: |
Expand Down Expand Up @@ -40,3 +42,24 @@ configmap:
| `configmap.rooms` | List of webhooks to send to. See `calert_values.yaml` above | [app.chat.alertManagerTestRoom] |
| `service.type` | Service type | ClusterIP |
| `service.port` | Should be same as `configmap.server.address` but without the `:` | 6000 |


## Alertmanager configuration
NOTE: Currently this chart has only been tested with the `prometheus-operator` chart, so that is the only configuration described below:

The following changes should be made in the Alertmanager section of the `prometheus-operator` values file:

```yaml
alertmanager:
config:
route:
routes:
- match:
severity: critical
receiver: google-chat
group_by: [alertname]
receivers:
- name: 'google-chat'
webhook_configs:
- url: "http://calert.clu-inf-all.svc.cluster.local:6000/create?room_name=<room>"
```

0 comments on commit 21127cf

Please sign in to comment.