Description
The Alertmanager handles alerts sent by client applications such as the
Prometheus server. It takes care of deduplicating, grouping, and routing
them to the correct receiver integration such as email, PagerDuty,
or OpsGenie. It also takes care of silencing and inhibition of alerts.
Juju prometheus alertmanager charm
This charm provides the Prometheus alertmanager, part of the Prometheus monitoring system
The charm should be realted to the prometheus charm
Configuration
Common configuration options are:
- external_url
- repeat_interval
The charm supports many differnet notification mechanisms. For example
to enable email notifications set the following options:
- smtp_smarthost
- smtp_from
- smtp_to
To send notifications to PagerDuty set:
- pagerduty_service_key
For more information about supported notification methods and other
configuration options refer to the config.yaml help
Configuration
- extra_receivers
- (string) YAML string containing a list of alertmanager 'receivers' to add
- snap_channel
- (string) If install_method is set to "snap" this option controlls channel name. Supported values are: "stable", "candidate", "beta" and "edge"
- stable
- snap_proxy
- (string) HTTP/HTTPS web proxy for Snappy to use when accessing the snap store.
- smtp_smarthost
- (string) SMTP relay
- localhost:25
- smtp_to
- (string) Default email recipient for all alerts
- root@localhost
- pagerduty_service_key
- (string) PagerDuty service key
- pagerduty_url
- (string) Override default, use default from alertmanager ( global.pagerduty_url) if unset
- smtp_from
- (string) SMTP from
- root@localhost
- slack_api_url
- (string) Your slack.com Webhook URL, see https://api.slack.com/incoming-webhooks (required)
- extra_routes
- (string) YAML string containing a list of alertmanager 'routes' to add
- slack_channel
- (string) slack channel (required)
- webhook_url
- (string) Your webhook url
- repeat_interval
- (string) If an alert has successfully been sent, wait 'repeat_interval' to resend them.
- 30m
- port
- (int) Alertmanager listening port
- 9093
- external_url
- (string) The URL under which Alertmanager is externally reachable (for example, if Alertmanager is served via a reverse proxy). Used for generating relative and absolute links back to Alertmanager itself. If the URL has a path portion, it will be used to prefix all HTTP endpoints served by Alertmanager. If omitted, relevant URL components will be derived automatically. It's templatized to accept the following vars: {private_address}, {public_address}, {port}, thus you can use e.g.: juju set alertmanager external_url="http://{private_address}:{port}/"