Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.alertmanager.container |
| 3 | parameters: |
Dmitry Kalashnik | 203f4d4 | 2018-03-29 18:33:22 +0400 | [diff] [blame] | 4 | _param: |
| 5 | alertmanager_external_url: ${_param:cluster_public_host} |
Michal Kobus | f7a5260 | 2018-05-22 17:39:45 +0200 | [diff] [blame] | 6 | alertmanager_external_proto: https |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 7 | 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 Kalashnik | 203f4d4 | 2018-03-29 18:33:22 +0400 | [diff] [blame] | 40 | ALERTMANAGER_EXTERNAL_URL: "${_param:alertmanager_external_proto}://${_param:alertmanager_external_url}:15011" |