blob: 2cbdfdc65d5599325df9c5b81b5941cfe2d7b236 [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
Simon Pasquier8159ee72017-06-20 11:50:34 +02008- system.telegraf.agent.remote
Filip Pytloun7d6144a2017-04-13 13:36:45 +02009parameters:
10 docker:
11 client:
12 stack:
13 monitoring:
14 network:
15 monitoring:
16 driver: overlay
17 driver_opts:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020018 encrypted: 1
Filip Pytloun7d6144a2017-04-13 13:36:45 +020019 service:
Bartosz Kupidura93b74152017-06-12 09:57:10 +020020 remote_storage_adapter:
21 networks:
22 - monitoring
23 deploy:
24 replicas: 1
25 labels:
26 com.mirantis.monitoring: "remote_storage_adapter"
27 restart_policy:
28 condition: any
29 labels:
30 com.mirantis.monitoring: "remote_storage_adapter"
31 image: ${_param:docker_image_remote_storage_adapter}
32 ports:
33 - 15015:${prometheus:remote_storage_adapter:bind:port}
34 environment:
35 bind_port: ${prometheus:remote_storage_adapter:bind:port}
36 bind_address: ${prometheus:remote_storage_adapter:bind:address}
37 influxdb_url: ${_param:prometheus_influxdb_url}
38 influxdb_db: ${_param:prometheus_influxdb_db}
39 influxdb_username: ${_param:prometheus_influxdb_username}
40 influxdb_password: ${_param:prometheus_influxdb_password}
Bartosz Kupidura2c2d6d62017-06-05 11:37:41 +020041 remote_agent:
42 networks:
43 - monitoring
44 deploy:
45 replicas: 1
46 labels:
47 com.mirantis.monitoring: "remote_agent"
48 restart_policy:
49 condition: any
50 labels:
51 com.mirantis.monitoring: "remote_agent"
52 image: ${_param:docker_image_remote_agent}
53 ports:
54 - 15014:${telegraf:remote_agent:output:prometheus_client:bind:port}
55 volumes:
56 - ${telegraf:remote_agent:dir:config}:/etc/telegraf
57 - ${telegraf:remote_agent:dir:config_d}:/etc/telegraf/telegraf.d
Filip Pytloun7d6144a2017-04-13 13:36:45 +020058 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020059 networks:
60 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020061 deploy:
62 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020063 labels:
64 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020065 restart_policy:
66 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020067 labels:
68 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020069 image: ${_param:docker_image_alertmanager}
70 ports:
71 - 15011:${prometheus:alertmanager:bind:port}
72 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020073 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
74 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020075 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020076 config_dir: ${_param:prometheus_alertmanager_config_directory}
77 data_dir: ${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020078 bind_port: ${prometheus:alertmanager:bind:port}
79 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020080 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020081 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020082 networks:
83 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020084 deploy:
85 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020086 labels:
87 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020088 restart_policy:
89 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020090 environment:
91 bind_port: ${prometheus:pushgateway:bind:port}
92 bind_address: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020093 labels:
94 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020095 image: ${_param:docker_image_pushgateway}
96 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020097 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020098 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020099 networks:
100 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200101 deploy:
102 replicas: 1
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200103 labels:
104 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200105 restart_policy:
106 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200107 labels:
108 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200109 image: ${_param:docker_image_prometheus}
110 ports:
111 - 15010:${prometheus:server:bind:port}
112 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200113 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
114 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200115 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200116 config_dir: ${_param:prometheus_server_config_directory}
117 data_dir: ${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200118 bind_port: ${prometheus:server:bind:port}
119 bind_address: ${prometheus:server:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200120 storage_local_engine: ${prometheus:server:storage:local:engine}
121 storage_local_retention: ${prometheus:server:storage:local:retention}
Bartosz Kupidura7e9b8b22017-05-25 10:59:09 +0200122 storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200123 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}