blob: 1f15be555f115051ccf876dab99775b7f820d5e4 [file] [log] [blame]
Dmitry Kalashnik0581b082018-02-26 13:20:21 +04001classes:
2- system.prometheus.alertmanager.container
3parameters:
Dmitry Kalashnik203f4d42018-03-29 18:33:22 +04004 _param:
5 alertmanager_external_url: ${_param:cluster_public_host}
6 alertmanager_external_proto: http
Dmitry Kalashnik0581b082018-02-26 13:20:21 +04007 docker:
8 client:
9 stack:
10 monitoring:
11 network:
12 monitoring:
13 driver: overlay
14 driver_opts:
15 encrypted: 1
16 service:
17 alertmanager:
18 networks:
19 - monitoring
20 deploy:
21 replicas: 2
22 labels:
23 com.mirantis.monitoring: "alertmanager"
24 restart_policy:
25 condition: any
26 labels:
27 com.mirantis.monitoring: "alertmanager"
28 image: ${_param:docker_image_alertmanager}
29 ports:
30 - 15011:${prometheus:alertmanager:bind:port}
31 volumes:
32 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
33 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
34 environment:
35 ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory}
36 ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory}
37 ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port}
38 ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address}
39 ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager'
Dmitry Kalashnik203f4d42018-03-29 18:33:22 +040040 ALERTMANAGER_EXTERNAL_URL: "${_param:alertmanager_external_proto}://${_param:alertmanager_external_url}:15011"