blob: bbc2d242308a31b9e65b602640404d65c74c8075 [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
Martin Polreicheeaaa862017-05-10 09:57:14 +020040 environment:
41 bind_port: ${prometheus:pushgateway:bind:port}
42 bind_address: ${prometheus:pushgateway:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020043 image: ${_param:docker_image_pushgateway}
44 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020045 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020046 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020047 networks:
48 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020049 deploy:
50 replicas: 1
51 restart_policy:
52 condition: any
53 image: ${_param:docker_image_prometheus}
54 ports:
55 - 15010:${prometheus:server:bind:port}
56 volumes:
57 - /srv/volumes/prometheus:/opt/prometheus/config
58 environment:
59 config_dir: /opt/prometheus/config
60 bind_port: ${prometheus:server:bind:port}
61 bind_address: ${prometheus:server:bind:address}
62 alertmanager_port: ${prometheus:alertmanager:bind:port}
63 storage_local_engine: ${prometheus:server:storage:local:engine}
64 storage_local_retention: ${prometheus:server:storage:local:retention}
65 storage_local_memory_chunks: ${prometheus:server:storage:local:memory_chunks}
66 storage_local_max_chunks_to_persist: ${prometheus:server:storage:local:max_chunks_to_persist}
67 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020068 discovery_domain: 'monitoring_alertmanager'