Send alerts to Prometheus Alertmanager
Output Plugin: Prometheus Alertmanager¶
Plugin to send alerts to Prometheus Alertmanager.
Applications:
- Alert Notifications
Configuration¶
In the configuration section alertTemplate
the input values are be substituted with syntax {variable-name}
.
output:
stdout: yaml
prometheus:
module: prometheus-alertmanager
url: http://localhost:9093
alertTemplate:
generatorURL: http://kibana/_plugin/kibana/app/kibana#/discover?&_a=(query:(language:lucene,query:'*{host}*'))
labels:
host: "{host}"
environment: "{environment}"
annotations:
description: "The env is '{environment}'"
debug: true
Start Logagent
logagent --config myconfig.yml