blob: 46a28459200edc5ec4f8d0d89952bd694686a750 [file] [log] [blame]
Bartosz Kupidurad856be82017-04-14 11:03:20 +02001classes:
2- service.prometheus.server.container
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003- service.prometheus.alertmanager.container
Bartosz Kupidurad856be82017-04-14 11:03:20 +02004- service.prometheus.pushgateway.container
Filip Pytloun7d6144a2017-04-13 13:36:45 +02005parameters:
6 docker:
7 client:
8 stack:
9 monitoring:
10 network:
11 monitoring:
12 driver: overlay
13 driver_opts:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020014 encrypted: 1
Filip Pytloun7d6144a2017-04-13 13:36:45 +020015 service:
16 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020017 networks:
18 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020019 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 Kupidurad856be82017-04-14 11:03:20 +020027 - /srv/volumes/prometheus:/opt/alertmanager/config
Filip Pytloun7d6144a2017-04-13 13:36:45 +020028 environment:
29 config_dir: /opt/alertmanager/config
30 bind_port: ${prometheus:alertmanager:bind:port}
31 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020032 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020033 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020034 networks:
35 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020036 deploy:
37 replicas: 2
38 restart_policy:
39 condition: any
40 image: ${_param:docker_image_pushgateway}
41 ports:
42 - 15012:9091
43 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020044 networks:
45 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020046 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 Kupidurad856be82017-04-14 11:03:20 +020065 discovery_domain: 'monitoring_alertmanager'