blob: 6efe1253207c64e0574f1a59f02ea4b6d1ee8d7a [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 Kupidura86687132017-09-04 11:37:35 +020018 relay:
19 networks:
20 - monitoring
21 deploy:
22 replicas: 2
23 labels:
24 com.mirantis.monitoring: "relay"
25 restart_policy:
26 condition: any
27 labels:
28 com.mirantis.monitoring: "relay"
29 image: ${_param:docker_image_prometheus_relay}
30 ports:
31 - 15016:8080
32 environment:
33 PROMETHEUS_RELAY_DNS: 'tasks.monitoring_server'
Bartosz Kupidura93b74152017-06-12 09:57:10 +020034 remote_storage_adapter:
35 networks:
36 - monitoring
37 deploy:
38 replicas: 1
39 labels:
40 com.mirantis.monitoring: "remote_storage_adapter"
41 restart_policy:
42 condition: any
43 labels:
44 com.mirantis.monitoring: "remote_storage_adapter"
45 image: ${_param:docker_image_remote_storage_adapter}
46 ports:
47 - 15015:${prometheus:remote_storage_adapter:bind:port}
48 environment:
Bartosz Kupidurad7515862017-09-05 10:08:19 +020049 RSA_BIND_PORT: ${prometheus:remote_storage_adapter:bind:port}
50 RSA_BIND_ADDRESS: ${prometheus:remote_storage_adapter:bind:address}
51 RSA_INFLUXDB_RETENTION_POLICY: 'lma'
52 RSA_INFLUXDB_URL: ${_param:prometheus_influxdb_url}
53 RSA_INFLUXDB_DB: ${_param:prometheus_influxdb_db}
54 RSA_INFLUXDB_USERNAME: ${_param:prometheus_influxdb_username}
55 RSA_INFLUXDB_PASSWORD: ${_param:prometheus_influxdb_password}
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 Kupidurad7515862017-09-05 10:08:19 +020074 ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory}
75 ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory}
76 ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port}
77 ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address}
78 ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager'
Bartosz Kupidura6da031b2017-09-14 16:42:22 +020079 ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011"
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:
Bartosz Kupidurad7515862017-09-05 10:08:19 +020090 PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port}
91 PUSHGATEWAY_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:
Bartosz Kupidura86687132017-09-04 11:37:35 +0200101 replicas: 2
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:
Martin Polreich7bfb4682017-08-15 14:40:15 +0200115 PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory}
116 PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory}
117 PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port}
118 PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
119 PROMETHEUS_STORAGE_LOCAL_ENGINE: ${prometheus:server:storage:local:engine}
120 PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
121 PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${prometheus:server:storage:local:target_heap_size}
122 PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${prometheus:server:storage:local:num_fingerprint_mutexes}
Bartosz Kupidura6da031b2017-09-14 16:42:22 +0200123 PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010"