- Notifications
You must be signed in to change notification settings - Fork1
Receive regular pings from the COS stack and alert when they are not arriving in a timely fashion.
License
canonical/cos-alerter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
COS Alerter is intended to be used together with alertmanager and prometheus:
- Liveness of Alertmanager through an always-firing alert rule ("Watchdog")
- Liveness of COS Alerter itself from a metric endpoint it exposes and prometheus scrapes
In order to integrate with COS Alerter you need to add a heartbeat rule to Prometheus and add a route to the Alertmanager config.
If you are using the Canonical Observability Stack, the alert rule is already created for you. If not, you can use a rule similar to the following:
-alert:Watchdogannotations:summary:A continuously firing alert that ensures Alertmanager is working correctly.expr:vector(1)labels:severity:none
Add the following to your alertmanager config to create the route:
receivers:...-name:cos-alerterwebhook_configs: -url:http://<cos-alerter-address>:8080/alive?clientid=<clientid>&key=<clientkey>route:...routes:... -matchers: -alertname = Watchdogreceiver:cos-alertergroup_wait:0sgroup_interval:1mrepeat_interval:1m
Note thatgroup_wait should be set to0s so the alert starts firing right away.
Copy the filecos_alerter/config-defaults.yaml to/etc/cos-alerter.yaml (If running without docker) or./cos-alerter (if running with docker). Edit the file with the appropriate values for your environment.
The easiest way to run COS Alerter is to use docker.
docker run -p 8080:8080 --mount type=bind,source="$(pwd)"/cos-alerter.yaml,target=/etc/cos-alerter.yaml,readonly -it ghcr.io/canonical/cos-alerter:latestYou can also run cos-alerter by installing the python package.
pip install cos-alertercos-alerterSeeCONTRIBUTING.md for running development builds.
About
Receive regular pings from the COS stack and alert when they are not arriving in a timely fashion.
Resources
License
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors9
Uh oh!
There was an error while loading.Please reload this page.