Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | include: |
| 2 | - service.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: true |
| 13 | service: |
| 14 | alertmanager: |
| 15 | network: monitoring |
| 16 | deploy: |
| 17 | replicas: 2 |
| 18 | restart_policy: |
| 19 | condition: any |
| 20 | image: ${_param:docker_image_alertmanager} |
| 21 | ports: |
| 22 | - 15011:${prometheus:alertmanager:bind:port} |
| 23 | volumes: |
| 24 | - /srv/volumes/prometheus:/opt/prometheus/config |
| 25 | environment: |
| 26 | config_dir: /opt/alertmanager/config |
| 27 | bind_port: ${prometheus:alertmanager:bind:port} |
| 28 | bind_address: ${prometheus:alertmanager:bind:address} |
| 29 | discovery_domain: 'prometheus_alertmanager' |
| 30 | pushgateway: |
| 31 | network: monitoring |
| 32 | deploy: |
| 33 | replicas: 2 |
| 34 | restart_policy: |
| 35 | condition: any |
| 36 | image: ${_param:docker_image_pushgateway} |
| 37 | ports: |
| 38 | - 15012:9091 |
| 39 | server: |
| 40 | network: monitoring |
| 41 | deploy: |
| 42 | replicas: 1 |
| 43 | restart_policy: |
| 44 | condition: any |
| 45 | image: ${_param:docker_image_prometheus} |
| 46 | ports: |
| 47 | - 15010:${prometheus:server:bind:port} |
| 48 | volumes: |
| 49 | - /srv/volumes/prometheus:/opt/prometheus/config |
| 50 | environment: |
| 51 | config_dir: /opt/prometheus/config |
| 52 | bind_port: ${prometheus:server:bind:port} |
| 53 | bind_address: ${prometheus:server:bind:address} |
| 54 | alertmanager_port: ${prometheus:alertmanager:bind:port} |
| 55 | storage_local_engine: ${prometheus:server:storage:local:engine} |
| 56 | storage_local_retention: ${prometheus:server:storage:local:retention} |
| 57 | storage_local_memory_chunks: ${prometheus:server:storage:local:memory_chunks} |
| 58 | storage_local_max_chunks_to_persist: ${prometheus:server:storage:local:max_chunks_to_persist} |
| 59 | storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes} |
| 60 | discovery_domain: 'prometheus_alertmanager' |