Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 1 | classes: |
Simon Pasquier | 6aa6b25 | 2017-05-22 14:23:58 +0200 | [diff] [blame] | 2 | - system.prometheus.alertmanager.container |
| 3 | - system.prometheus.pushgateway.container |
| 4 | - system.prometheus.remote_storage_adapter.container |
| 5 | - system.prometheus.server.container |
Simon Pasquier | fb9370f | 2017-07-06 15:31:20 +0200 | [diff] [blame^] | 6 | - system.docker.swarm.stack.monitoring.remote_agent |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 7 | parameters: |
| 8 | docker: |
| 9 | client: |
| 10 | stack: |
| 11 | monitoring: |
| 12 | network: |
| 13 | monitoring: |
| 14 | driver: overlay |
| 15 | driver_opts: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 16 | encrypted: 1 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 17 | service: |
Bartosz Kupidura | 93b7415 | 2017-06-12 09:57:10 +0200 | [diff] [blame] | 18 | 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} |
| 35 | influxdb_url: ${_param:prometheus_influxdb_url} |
| 36 | influxdb_db: ${_param:prometheus_influxdb_db} |
| 37 | influxdb_username: ${_param:prometheus_influxdb_username} |
| 38 | influxdb_password: ${_param:prometheus_influxdb_password} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 39 | alertmanager: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 40 | networks: |
| 41 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 42 | deploy: |
| 43 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 44 | labels: |
| 45 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 46 | restart_policy: |
| 47 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 48 | labels: |
| 49 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 50 | image: ${_param:docker_image_alertmanager} |
| 51 | ports: |
| 52 | - 15011:${prometheus:alertmanager:bind:port} |
| 53 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 54 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 55 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 56 | environment: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 57 | config_dir: ${_param:prometheus_alertmanager_config_directory} |
| 58 | data_dir: ${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 59 | bind_port: ${prometheus:alertmanager:bind:port} |
| 60 | bind_address: ${prometheus:alertmanager:bind:address} |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 61 | discovery_domain: 'monitoring_alertmanager' |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 62 | pushgateway: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 63 | networks: |
| 64 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 65 | deploy: |
| 66 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 67 | labels: |
| 68 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 69 | restart_policy: |
| 70 | condition: any |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 71 | environment: |
| 72 | bind_port: ${prometheus:pushgateway:bind:port} |
| 73 | bind_address: ${prometheus:pushgateway:bind:address} |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 74 | labels: |
| 75 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 76 | image: ${_param:docker_image_pushgateway} |
| 77 | ports: |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 78 | - 15012:${prometheus:pushgateway:bind:port} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 79 | server: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 80 | networks: |
| 81 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 82 | deploy: |
| 83 | replicas: 1 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 84 | labels: |
| 85 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 86 | restart_policy: |
| 87 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 88 | labels: |
| 89 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 90 | image: ${_param:docker_image_prometheus} |
| 91 | ports: |
| 92 | - 15010:${prometheus:server:bind:port} |
| 93 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 94 | - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory} |
| 95 | - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 96 | environment: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 97 | config_dir: ${_param:prometheus_server_config_directory} |
| 98 | data_dir: ${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 99 | bind_port: ${prometheus:server:bind:port} |
| 100 | bind_address: ${prometheus:server:bind:address} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 101 | storage_local_engine: ${prometheus:server:storage:local:engine} |
| 102 | storage_local_retention: ${prometheus:server:storage:local:retention} |
Bartosz Kupidura | 7e9b8b2 | 2017-05-25 10:59:09 +0200 | [diff] [blame] | 103 | storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 104 | storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes} |