micado/prometheus_executor

Sponsored OSS

By Project COLA

Updated about 7 years ago

This docker image pulls Prometheus firiing alerts and then executes a script on them.

Image
Integration & Delivery
Monitoring & Observability

1.7K

A shell script that takes Prometheus alerts and sends out REST API calls. You should put your script into /etc/prometheus_executor

docker run -d -p 9095:9095 -v /etc/prometheus_executor/:/etc/prometheus_executor micado/prometheus_executor

The executor runs the provided script with the following environment variables set:

AMX_RECEIVER: name of receiver in the AM triggering the alert AMX_STATUS: alert status AMX_EXTERNAL_URL: URL to reach alertmanager AMX_ALERT_LEN: Number of alerts; for iterating through AMX_ALERT_.. vars AMX_LABEL_: alert label pairs AMX_GLABEL_: label pairs used to group alert AMX_ANNOTATION_: alert annotation key/value pairs AMX_ALERT_STATUS: status of alert AMX_ALERTSTART: start of alert in seconds since epoch AMX_ALERTEND: end of alert, 0 for firing alerts AMX_ALERTURL: URL to metric in prometheus AMX_ALERTLABEL: alert label pairs AMX_ALERT_ANNOTATION: alert annotation key/value pairs

Docker Pull Command

docker pull micado/prometheus_executor