blob: 57d7a5a2adfa584aaecc2df61ad0fddd9b918dd8 [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:
Dennis Dmitriev88fab012018-02-07 18:49:00 +02008 _param:
9 # Backward compatibility for Prometheus 1.7
10 prometheus_storage_local_engine: "persisted"
11 prometheus_storage_heap_size: 3221225472
12 prometheus_storage_num_fingerprint_mutexes: 4096
13
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 docker:
15 client:
16 stack:
17 monitoring:
18 network:
19 monitoring:
20 driver: overlay
21 driver_opts:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020022 encrypted: 1
Filip Pytloun7d6144a2017-04-13 13:36:45 +020023 service:
Bartosz Kupidura86687132017-09-04 11:37:35 +020024 relay:
25 networks:
26 - monitoring
27 deploy:
28 replicas: 2
29 labels:
30 com.mirantis.monitoring: "relay"
31 restart_policy:
32 condition: any
33 labels:
34 com.mirantis.monitoring: "relay"
35 image: ${_param:docker_image_prometheus_relay}
36 ports:
37 - 15016:8080
38 environment:
39 PROMETHEUS_RELAY_DNS: 'tasks.monitoring_server'
Bartosz Kupidura93b74152017-06-12 09:57:10 +020040 remote_storage_adapter:
41 networks:
42 - monitoring
43 deploy:
44 replicas: 1
45 labels:
46 com.mirantis.monitoring: "remote_storage_adapter"
47 restart_policy:
48 condition: any
49 labels:
50 com.mirantis.monitoring: "remote_storage_adapter"
51 image: ${_param:docker_image_remote_storage_adapter}
52 ports:
53 - 15015:${prometheus:remote_storage_adapter:bind:port}
54 environment:
Bartosz Kupidurad7515862017-09-05 10:08:19 +020055 RSA_BIND_PORT: ${prometheus:remote_storage_adapter:bind:port}
56 RSA_BIND_ADDRESS: ${prometheus:remote_storage_adapter:bind:address}
57 RSA_INFLUXDB_RETENTION_POLICY: 'lma'
58 RSA_INFLUXDB_URL: ${_param:prometheus_influxdb_url}
59 RSA_INFLUXDB_DB: ${_param:prometheus_influxdb_db}
60 RSA_INFLUXDB_USERNAME: ${_param:prometheus_influxdb_username}
61 RSA_INFLUXDB_PASSWORD: ${_param:prometheus_influxdb_password}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020062 alertmanager:
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: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020069 restart_policy:
70 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020071 labels:
72 com.mirantis.monitoring: "alertmanager"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020073 image: ${_param:docker_image_alertmanager}
74 ports:
75 - 15011:${prometheus:alertmanager:bind:port}
76 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020077 - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
78 - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020079 environment:
Bartosz Kupidurad7515862017-09-05 10:08:19 +020080 ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory}
81 ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory}
82 ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port}
83 ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address}
84 ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager'
Bartosz Kupidura6da031b2017-09-14 16:42:22 +020085 ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020086 pushgateway:
Bartosz Kupidurad856be82017-04-14 11:03:20 +020087 networks:
88 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +020089 deploy:
90 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020091 labels:
92 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020093 restart_policy:
94 condition: any
Martin Polreicheeaaa862017-05-10 09:57:14 +020095 environment:
Bartosz Kupidurad7515862017-09-05 10:08:19 +020096 PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port}
97 PUSHGATEWAY_BIND_ADDRESS: ${prometheus:pushgateway:bind:address}
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +020098 labels:
99 com.mirantis.monitoring: "pushgateway"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200100 image: ${_param:docker_image_pushgateway}
101 ports:
Martin Polreicheeaaa862017-05-10 09:57:14 +0200102 - 15012:${prometheus:pushgateway:bind:port}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200103 server:
Bartosz Kupidurad856be82017-04-14 11:03:20 +0200104 networks:
105 - monitoring
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200106 deploy:
Bartosz Kupidura86687132017-09-04 11:37:35 +0200107 replicas: 2
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200108 labels:
109 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200110 restart_policy:
111 condition: any
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200112 labels:
113 com.mirantis.monitoring: "prometheus"
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200114 image: ${_param:docker_image_prometheus}
115 ports:
116 - 15010:${prometheus:server:bind:port}
117 volumes:
Bartosz Kupiduraa7a32442017-05-17 15:59:08 +0200118 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
119 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +0200120 environment:
Martin Polreich7bfb4682017-08-15 14:40:15 +0200121 PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory}
122 PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory}
123 PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port}
124 PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
Martin Polreich7bfb4682017-08-15 14:40:15 +0200125 PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
Bartosz Kupidura6da031b2017-09-14 16:42:22 +0200126 PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010"
Dennis Dmitriev88fab012018-02-07 18:49:00 +0200127 # Backward compatibility for Prometheus 1.7
128 PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine}
129 PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size}
130 PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${_param:prometheus_storage_num_fingerprint_mutexes}
131