Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame^] | 1 | classes: |
| 2 | - system.prometheus.alertmanager.container |
| 3 | parameters: |
| 4 | docker: |
| 5 | client: |
| 6 | stack: |
| 7 | monitoring: |
| 8 | network: |
| 9 | monitoring: |
| 10 | driver: overlay |
| 11 | driver_opts: |
| 12 | encrypted: 1 |
| 13 | service: |
| 14 | alertmanager: |
| 15 | networks: |
| 16 | - monitoring |
| 17 | deploy: |
| 18 | replicas: 2 |
| 19 | labels: |
| 20 | com.mirantis.monitoring: "alertmanager" |
| 21 | restart_policy: |
| 22 | condition: any |
| 23 | labels: |
| 24 | com.mirantis.monitoring: "alertmanager" |
| 25 | image: ${_param:docker_image_alertmanager} |
| 26 | ports: |
| 27 | - 15011:${prometheus:alertmanager:bind:port} |
| 28 | volumes: |
| 29 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 30 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
| 31 | environment: |
| 32 | ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory} |
| 33 | ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory} |
| 34 | ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port} |
| 35 | ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address} |
| 36 | ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager' |
| 37 | ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011" |