An open API service indexing awesome lists of open source software.

https://github.com/klml/paw2mail

paw2mail
https://github.com/klml/paw2mail

Last synced: about 2 months ago
JSON representation

paw2mail

Awesome Lists containing this project

README

        

# prometheus alertreceiver webhook2mail

[Openshift alert receivers](https://docs.openshift.com/container-platform/4.9/monitoring/managing-alerts.html#configuring-alert-receivers_managing-alerts) can only be managed by cluster admins in the secret `alertmanager-main` in the namespace `openshift-monitoring`.
__paw2mail__ is a webservice that accepts alerts and sends them to an email address.

## deprecated

So alert routing for user-defined is in Technology Preview.

> In OpenShift Container Platform 4.10, a cluster administrator can enable alert routing for user-defined projects.

from [enabling-alert-routing-for-user-defined-projects](https://docs.openshift.com/container-platform/4.10/monitoring/enabling-alert-routing-for-user-defined-projects.html)

So paw2mail is not needed anymore.

## config

The receiver email adress is defined in `label paw2mail`:

```
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: foo
spec:
groups:
- name: bar
rules:
- alert: foobar_is_bigger_42
expr: 'example_count_total{item_type="/count"} > 42'
labels:
severity: Info
paw2mail: [email protected]
```

## Setup

Needed environments

```
export [email protected]
export smtp_host=mail.example.net
export smtp_port=25
```

Optional
```
export smtp_user=clustermailer
export smtp_pass=xxxxxxxxxxxxx
```