Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.prometheus.server.container |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | - service.prometheus.alertmanager.container |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 4 | - service.prometheus.pushgateway.container |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 5 | parameters: |
| 6 | docker: |
| 7 | client: |
| 8 | stack: |
| 9 | monitoring: |
| 10 | network: |
| 11 | monitoring: |
| 12 | driver: overlay |
| 13 | driver_opts: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 14 | encrypted: 1 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 15 | service: |
| 16 | alertmanager: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 17 | networks: |
| 18 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 19 | deploy: |
| 20 | replicas: 2 |
| 21 | restart_policy: |
| 22 | condition: any |
| 23 | image: ${_param:docker_image_alertmanager} |
| 24 | ports: |
| 25 | - 15011:${prometheus:alertmanager:bind:port} |
| 26 | volumes: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 27 | - /srv/volumes/prometheus:/opt/alertmanager/config |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 28 | environment: |
| 29 | config_dir: /opt/alertmanager/config |
| 30 | bind_port: ${prometheus:alertmanager:bind:port} |
| 31 | bind_address: ${prometheus:alertmanager:bind:address} |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 32 | discovery_domain: 'monitoring_alertmanager' |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 33 | pushgateway: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 34 | networks: |
| 35 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 36 | deploy: |
| 37 | replicas: 2 |
| 38 | restart_policy: |
| 39 | condition: any |
| 40 | image: ${_param:docker_image_pushgateway} |
| 41 | ports: |
| 42 | - 15012:9091 |
| 43 | server: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 44 | networks: |
| 45 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 46 | deploy: |
| 47 | replicas: 1 |
| 48 | restart_policy: |
| 49 | condition: any |
| 50 | image: ${_param:docker_image_prometheus} |
| 51 | ports: |
| 52 | - 15010:${prometheus:server:bind:port} |
| 53 | volumes: |
| 54 | - /srv/volumes/prometheus:/opt/prometheus/config |
| 55 | environment: |
| 56 | config_dir: /opt/prometheus/config |
| 57 | bind_port: ${prometheus:server:bind:port} |
| 58 | bind_address: ${prometheus:server:bind:address} |
| 59 | alertmanager_port: ${prometheus:alertmanager:bind:port} |
| 60 | storage_local_engine: ${prometheus:server:storage:local:engine} |
| 61 | storage_local_retention: ${prometheus:server:storage:local:retention} |
| 62 | storage_local_memory_chunks: ${prometheus:server:storage:local:memory_chunks} |
| 63 | storage_local_max_chunks_to_persist: ${prometheus:server:storage:local:max_chunks_to_persist} |
| 64 | storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes} |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 65 | discovery_domain: 'monitoring_alertmanager' |