diff --git a/docker-compose/grafana/alerting.json b/docker-compose/grafana/alerting.json new file mode 100644 index 0000000000000000000000000000000000000000..1a08e2cebfe5ebb77b22afbca6a0f70dd86ff4e5 --- /dev/null +++ b/docker-compose/grafana/alerting.json @@ -0,0 +1,26 @@ +{ + "template_files": {}, + "alertmanager_config": { + "route": { + "receiver": "Alerta" + }, + "templates": null, + "receivers": [ + { + "name": "Alerta", + "grafana_managed_receiver_configs": [ + { + "uid": "ROaAvQEnz", + "name": "Alerta", + "type": "webhook", + "disableResolveMessage": false, + "settings": { + "url": "http://alerta-web:8080/api/webhooks/prometheus?api-key=demo-key" + }, + "secureFields": {} + } + ] + } + ] + } +} diff --git a/tangostationcontrol/docs/source/installation.rst b/tangostationcontrol/docs/source/installation.rst index 2699d1baa5198cc4757b49da7cd7fa360c3ee2f1..fd01fe45e0b27de2170c23341ab04e1c6b97f900 100644 --- a/tangostationcontrol/docs/source/installation.rst +++ b/tangostationcontrol/docs/source/installation.rst @@ -72,3 +72,19 @@ The ELK stack requires some kernel settings to be tuned, before it will start. A make restart elk after reboot, or configure your system to set ``sysctl -w vm.max_map_count=262144`` (or higher) as root during boot. + +Configuration +--------------------------- + +These sections are optional, to configure specific functionality you may or may not want to use. + +Alerta +```````` + +If you want Grafana alerts to appear in Alerta, you need to manually configure Grafana to forward them. Import the alert settings manually: + +- Go to Grafana (http://localhost:3000) and sign in with an administration account (default: admin/admin), +- Go to ``Alerting`` and select ``Admin`` in the left menu bar, +- Copy/paste the following information, and press ``Save``: + +.. literalinclude:: ../../../docker-compose/grafana/alerting.json