blob: a11024d9216e66e79c26107d7d1f74d7c0ad0098 [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
Bartosz Kupidura93b74152017-06-12 09:57:10 +02005- service.prometheus.remote_storage_adapter.container
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +02006- system.prometheus.server
7- system.prometheus.alertmanager
Filip Pytloun7d6144a2017-04-13 13:36:45 +02008parameters:
9 docker:
10 client:
11 stack:
12 monitoring:
13 network:
14 monitoring:
15 driver: overlay
16 driver_opts:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020017 encrypted: 1
Filip Pytloun7d6144a2017-04-13 13:36:45 +020018 service:
Bartosz Kupidura93b74152017-06-12 09:57:10 +020019 remote_storage_adapter:
20 networks:
21 - monitoring
22 deploy:
23 replicas: 1
24 labels:
25 com.mirantis.monitoring: "remote_storage_adapter"
26 restart_policy:
27 condition: any
28 labels:
29 com.mirantis.monitoring: "remote_storage_adapter"
30 image: ${_param:docker_image_remote_storage_adapter}
31 ports:
32 - 15015:${prometheus:remote_storage_adapter:bind:port}
33 environment:
34 bind_port: ${prometheus:remote_storage_adapter:bind:port}
35 bind_address: ${prometheus:remote_storage_adapter:bind:address}
36 influxdb_url: ${_param:prometheus_influxdb_url}
37 influxdb_db: ${_param:prometheus_influxdb_db}
38 influxdb_username: ${_param:prometheus_influxdb_username}
39 influxdb_password: ${_param:prometheus_influxdb_password}
Bartosz Kupidura2c2d6d62017-06-05 11:37:41 +020040 remote_agent:
41 networks:
42 - monitoring
43 deploy:
44 replicas: 1
45 labels:
46 com.mirantis.monitoring: "remote_agent"
47 restart_policy:
48 condition: any
49 labels:
50 com.mirantis.monitoring: "remote_agent"
51 image: ${_param:docker_image_remote_agent}
52 ports:
53 - 15014:${telegraf:remote_agent:output:prometheus_client:bind:port}
54 volumes:
55 - ${telegraf:remote_agent:dir:config}:/etc/telegraf
56 - ${telegraf:remote_agent:dir:config_d}:/etc/telegraf/telegraf.d
Filip Pytloun7d6144a2017-04-13 13:36:45 +020057 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020058 networks:
59 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020060 deploy:
61 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020062 labels:
63 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020064 restart_policy:
65 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020066 labels:
67 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020068 image: ${_param:docker_image_alertmanager}
69 ports:
70 - 15011:${prometheus:alertmanager:bind:port}
71 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020072 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
73 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020074 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020075 config_dir: ${_param:prometheus_alertmanager_config_directory}
76 data_dir: ${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020077 bind_port: ${prometheus:alertmanager:bind:port}
78 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020079 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020080 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020081 networks:
82 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020083 deploy:
84 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020085 labels:
86 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020087 restart_policy:
88 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020089 environment:
90 bind_port: ${prometheus:pushgateway:bind:port}
91 bind_address: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020092 labels:
93 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020094 image: ${_param:docker_image_pushgateway}
95 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020096 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020097 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020098 networks:
99 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200100 deploy:
101 replicas: 1
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200102 labels:
103 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200104 restart_policy:
105 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200106 labels:
107 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200108 image: ${_param:docker_image_prometheus}
109 ports:
110 - 15010:${prometheus:server:bind:port}
111 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200112 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
113 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200114 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200115 config_dir: ${_param:prometheus_server_config_directory}
116 data_dir: ${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200117 bind_port: ${prometheus:server:bind:port}
118 bind_address: ${prometheus:server:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200119 storage_local_engine: ${prometheus:server:storage:local:engine}
120 storage_local_retention: ${prometheus:server:storage:local:retention}
Bartosz Kupidura7e9b8b22017-05-25 10:59:09 +0200121 storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200122 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}