blob: 97b9ac3796aae41c5fb212b50ee68169bc4e320c [file] [log] [blame]
Bartosz Kupidurad856be82017-04-14 11:03:20 +02001classes:
Simon Pasquier6aa6b252017-05-22 14:23:58 +02002- system.prometheus.alertmanager.container
3- system.prometheus.pushgateway.container
4- system.prometheus.remote_storage_adapter.container
5- system.prometheus.server.container
Simon Pasquierfb9370f2017-07-06 15:31:20 +02006- system.docker.swarm.stack.monitoring.remote_agent
Filip Pytloun7d6144a2017-04-13 13:36:45 +02007parameters:
8 docker:
9 client:
10 stack:
11 monitoring:
12 network:
13 monitoring:
14 driver: overlay
15 driver_opts:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020016 encrypted: 1
Filip Pytloun7d6144a2017-04-13 13:36:45 +020017 service:
Bartosz Kupidura93b74152017-06-12 09:57:10 +020018 remote_storage_adapter:
19 networks:
20 - monitoring
21 deploy:
22 replicas: 1
23 labels:
24 com.mirantis.monitoring: "remote_storage_adapter"
25 restart_policy:
26 condition: any
27 labels:
28 com.mirantis.monitoring: "remote_storage_adapter"
29 image: ${_param:docker_image_remote_storage_adapter}
30 ports:
31 - 15015:${prometheus:remote_storage_adapter:bind:port}
32 environment:
33 bind_port: ${prometheus:remote_storage_adapter:bind:port}
34 bind_address: ${prometheus:remote_storage_adapter:bind:address}
35 influxdb_url: ${_param:prometheus_influxdb_url}
36 influxdb_db: ${_param:prometheus_influxdb_db}
37 influxdb_username: ${_param:prometheus_influxdb_username}
38 influxdb_password: ${_param:prometheus_influxdb_password}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020039 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020040 networks:
41 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020042 deploy:
43 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020044 labels:
45 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020046 restart_policy:
47 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020048 labels:
49 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020050 image: ${_param:docker_image_alertmanager}
51 ports:
52 - 15011:${prometheus:alertmanager:bind:port}
53 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020054 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
55 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020056 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020057 config_dir: ${_param:prometheus_alertmanager_config_directory}
58 data_dir: ${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020059 bind_port: ${prometheus:alertmanager:bind:port}
60 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020061 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020062 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020063 networks:
64 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020065 deploy:
66 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020067 labels:
68 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020069 restart_policy:
70 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020071 environment:
72 bind_port: ${prometheus:pushgateway:bind:port}
73 bind_address: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020074 labels:
75 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020076 image: ${_param:docker_image_pushgateway}
77 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020078 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020079 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020080 networks:
81 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020082 deploy:
83 replicas: 1
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020084 labels:
85 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020086 restart_policy:
87 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020088 labels:
89 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020090 image: ${_param:docker_image_prometheus}
91 ports:
92 - 15010:${prometheus:server:bind:port}
93 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020094 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
95 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020096 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020097 config_dir: ${_param:prometheus_server_config_directory}
98 data_dir: ${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020099 bind_port: ${prometheus:server:bind:port}
100 bind_address: ${prometheus:server:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200101 storage_local_engine: ${prometheus:server:storage:local:engine}
102 storage_local_retention: ${prometheus:server:storage:local:retention}
Bartosz Kupidura7e9b8b22017-05-25 10:59:09 +0200103 storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200104 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}