alertmanager
Setup Prometheus Alertmanager service.
- Default Variables
- alertmanager_amtool_config_alertmanager_url
- alertmanager_amtool_config_output
- alertmanager_base_dir
- alertmanager_cluster_bind_ip
- alertmanager_cluster_bind_port
- alertmanager_config_dir
- alertmanager_config_flags_extra
- alertmanager_data_dir
- alertmanager_extra_groups
- alertmanager_group
- alertmanager_inhibit_rules
- alertmanager_log_level
- alertmanager_packages
- alertmanager_read_only_dirs
- alertmanager_receivers
- alertmanager_resolve_timeout
- alertmanager_route_default_receiver
- alertmanager_route_group_by
- alertmanager_route_group_interval
- alertmanager_route_group_wait
- alertmanager_route_repeat_interval
- alertmanager_route_routes
- alertmanager_smtp_auth_password
- alertmanager_smtp_auth_username
- alertmanager_smtp_from
- alertmanager_smtp_host
- alertmanager_smtp_port
- alertmanager_smtp_require_tls
- alertmanager_storage_retention
- alertmanager_template_files
- alertmanager_templates_dir
- alertmanager_user
- alertmanager_user_home
- alertmanager_version
- alertmanager_web_basic_auth_users
- alertmanager_web_bind_ip
- alertmanager_web_bind_port
- alertmanager_web_external_url
- alertmanager_web_http_server
- alertmanager_web_tls_cert_path
- alertmanager_web_tls_cert_source
- alertmanager_web_tls_enabled
- alertmanager_web_tls_key_path
- alertmanager_web_tls_key_source
- Discovered Tags
- Dependencies
Location (URL) of the alertmanager.
alertmanager_amtool_config_alertmanager_url: '{{ alertmanager_web_external_url }}'
Extended output of amtool
commands, use ’’ for less verbosity.
alertmanager_amtool_config_output: extended
alertmanager_base_dir: /opt/alertmanager
alertmanager_cluster_bind_ip: 127.0.0.1
alertmanager_cluster_bind_port: 61002
alertmanager_config_dir: '{{ alertmanager_base_dir }}/conf'
alertmanager_config_flags_extra: []
alertmanager_config_flags_extra:
- name: data.retention
value: 10
alertmanager_data_dir: '{{ alertmanager_base_dir }}/data'
alertmanager_extra_groups: []
alertmanager_group: '{{ alertmanager_user }}'
alertmanager_inhibit_rules: []
alertmanager_log_level: error
alertmanager_packages:
- tar
alertmanager_read_only_dirs: []
alertmanager_receivers: []
alertmanager_receivers:
- name: slack
slack_configs:
- send_resolved: true
channel: '#alerts'
alertmanager_resolve_timeout: 3m
alertmanager_route_default_receiver: slack
alertmanager_route_group_by:
- alertname
- service
alertmanager_route_group_interval: 5m
alertmanager_route_group_wait: 30s
alertmanager_route_repeat_interval: 3h
alertmanager_route_routes: []
alertmanager_smtp_auth_password: secure
alertmanager_smtp_auth_username: mail
alertmanager_smtp_from: alerts@example.com
Mail server used to send alerts. Need to be defined to enable Mail notifications.
alertmanager_smtp_host: _unset_
alertmanager_smtp_port: 587
alertmanager_smtp_require_tls: 'True'
alertmanager_storage_retention: 120h
alertmanager_template_files:
- alertmanager/templates/*.tmpl
alertmanager_templates_dir: '{{ alertmanager_config_dir }}/templates'
alertmanager_user: alertmanager_adm
alertmanager_user_home: /home/{{ alertmanager_user }}
alertmanager_version: 0.22.0
See official documentation.
alertmanager_web_basic_auth_users: _unset_
alertmanager_web_bind_ip: 127.0.0.1
alertmanager_web_bind_port: 61001
alertmanager_web_external_url: http://localhost:61001/
See official documentation.
alertmanager_web_http_server: _unset_
alertmanager_web_tls_cert_path: '{{ alertmanager_base_dir }}/tls/certs/mycert.pem'
alertmanager_web_tls_cert_source: mycert.pem
alertmanager_web_tls_enabled: false
alertmanager_web_tls_key_path: '{{ alertmanager_base_dir }}/tls/private/mykey.pem'
alertmanager_web_tls_key_source: mykey.pem
- tls_renewal
None.