blob: 347319a5b92ba45f1fba91079839bbdf06277117 [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}
Bartosz Kupidurabe7862f2017-08-02 13:33:30 +020035 influxdb_retention_policy: 'lma'
Bartosz Kupidura93b74152017-06-12 09:57:10 +020036 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}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020040 alertmanager:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020041 networks:
42 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020043 deploy:
44 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020045 labels:
46 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020047 restart_policy:
48 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020049 labels:
50 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020051 image: ${_param:docker_image_alertmanager}
52 ports:
53 - 15011:${prometheus:alertmanager:bind:port}
54 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020055 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
56 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020057 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020058 config_dir: ${_param:prometheus_alertmanager_config_directory}
59 data_dir: ${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020060 bind_port: ${prometheus:alertmanager:bind:port}
61 bind_address: ${prometheus:alertmanager:bind:address}
Bartosz Kupidurad856be82017-04-14 11:03:20 +020062 discovery_domain: 'monitoring_alertmanager'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020063 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020064 networks:
65 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020066 deploy:
67 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020068 labels:
69 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020070 restart_policy:
71 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020072 environment:
73 bind_port: ${prometheus:pushgateway:bind:port}
74 bind_address: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020075 labels:
76 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020077 image: ${_param:docker_image_pushgateway}
78 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +020079 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020080 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020081 networks:
82 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020083 deploy:
84 replicas: 1
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020085 labels:
86 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020087 restart_policy:
88 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020089 labels:
90 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020091 image: ${_param:docker_image_prometheus}
92 ports:
93 - 15010:${prometheus:server:bind:port}
94 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020095 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
96 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020097 environment:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020098 config_dir: ${_param:prometheus_server_config_directory}
99 data_dir: ${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200100 bind_port: ${prometheus:server:bind:port}
101 bind_address: ${prometheus:server:bind:address}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200102 storage_local_engine: ${prometheus:server:storage:local:engine}
103 storage_local_retention: ${prometheus:server:storage:local:retention}
Bartosz Kupidura7e9b8b22017-05-25 10:59:09 +0200104 storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200105 storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes}