blob: e5d11e11a45e6313ebfbabafb2aab041c688e3aa [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 Pasquier8159ee72017-06-20 11:50:34 +02006- system.telegraf.agent.remote
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}
Bartosz Kupidura2c2d6d62017-06-05 11:37:41 +020039 remote_agent:
40 networks:
41 - monitoring
42 deploy:
43 replicas: 1
44 labels:
45 com.mirantis.monitoring: "remote_agent"
46 restart_policy:
47 condition: any
48 labels:
49 com.mirantis.monitoring: "remote_agent"
50 image: ${_param:docker_image_remote_agent}
51 ports:
52 - 15014:${telegraf:remote_agent:output:prometheus_client:bind:port}
53 volumes:
54 - ${telegraf:remote_agent:dir:config}:/etc/telegraf
55 - ${telegraf:remote_agent:dir:config_d}:/etc/telegraf/telegraf.d
Filip Pytloun7d6144a2017-04-13 13:36:45 +020056 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020057 networks:
58 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020059 deploy:
60 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020061 labels:
62 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020063 restart_policy:
64 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020065 labels:
66 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020067 image: ${_param:docker_image_alertmanager}
68 ports:
69 - 15011:${prometheus:alertmanager:bind:port}
70 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020071 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
72 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020073 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020074 config_dir: ${_param:prometheus_alertmanager_config_directory}
75 data_dir: ${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020076 bind_port: ${prometheus:alertmanager:bind:port}
77 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020078 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020079 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020080 networks:
81 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020082 deploy:
83 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020084 labels:
85 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020086 restart_policy:
87 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020088 environment:
89 bind_port: ${prometheus:pushgateway:bind:port}
90 bind_address: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020091 labels:
92 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020093 image: ${_param:docker_image_pushgateway}
94 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020095 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020096 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020097 networks:
98 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020099 deploy:
100 replicas: 1
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200101 labels:
102 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200103 restart_policy:
104 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200105 labels:
106 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200107 image: ${_param:docker_image_prometheus}
108 ports:
109 - 15010:${prometheus:server:bind:port}
110 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200111 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
112 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200113 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200114 config_dir: ${_param:prometheus_server_config_directory}
115 data_dir: ${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200116 bind_port: ${prometheus:server:bind:port}
117 bind_address: ${prometheus:server:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200118 storage_local_engine: ${prometheus:server:storage:local:engine}
119 storage_local_retention: ${prometheus:server:storage:local:retention}
Bartosz Kupidura7e9b8b22017-05-25 10:59:09 +0200120 storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200121 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}