Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.prometheus.server.container |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | - service.prometheus.alertmanager.container |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 4 | - service.prometheus.pushgateway.container |
Bartosz Kupidura | 93b7415 | 2017-06-12 09:57:10 +0200 | [diff] [blame] | 5 | - service.prometheus.remote_storage_adapter.container |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 6 | - system.prometheus.server |
| 7 | - system.prometheus.alertmanager |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 8 | parameters: |
| 9 | docker: |
| 10 | client: |
| 11 | stack: |
| 12 | monitoring: |
| 13 | network: |
| 14 | monitoring: |
| 15 | driver: overlay |
| 16 | driver_opts: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 17 | encrypted: 1 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 18 | service: |
Bartosz Kupidura | 93b7415 | 2017-06-12 09:57:10 +0200 | [diff] [blame] | 19 | remote_storage_adapter: |
| 20 | networks: |
| 21 | - monitoring |
| 22 | deploy: |
| 23 | replicas: 1 |
| 24 | labels: |
| 25 | com.mirantis.monitoring: "remote_storage_adapter" |
| 26 | restart_policy: |
| 27 | condition: any |
| 28 | labels: |
| 29 | com.mirantis.monitoring: "remote_storage_adapter" |
| 30 | image: ${_param:docker_image_remote_storage_adapter} |
| 31 | ports: |
| 32 | - 15015:${prometheus:remote_storage_adapter:bind:port} |
| 33 | environment: |
| 34 | bind_port: ${prometheus:remote_storage_adapter:bind:port} |
| 35 | bind_address: ${prometheus:remote_storage_adapter:bind:address} |
| 36 | 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} |
Bartosz Kupidura | 2c2d6d6 | 2017-06-05 11:37:41 +0200 | [diff] [blame] | 40 | remote_agent: |
| 41 | networks: |
| 42 | - monitoring |
| 43 | deploy: |
| 44 | replicas: 1 |
| 45 | labels: |
| 46 | com.mirantis.monitoring: "remote_agent" |
| 47 | restart_policy: |
| 48 | condition: any |
| 49 | labels: |
| 50 | com.mirantis.monitoring: "remote_agent" |
| 51 | image: ${_param:docker_image_remote_agent} |
| 52 | ports: |
| 53 | - 15014:${telegraf:remote_agent:output:prometheus_client:bind:port} |
| 54 | volumes: |
| 55 | - ${telegraf:remote_agent:dir:config}:/etc/telegraf |
| 56 | - ${telegraf:remote_agent:dir:config_d}:/etc/telegraf/telegraf.d |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 57 | alertmanager: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 58 | networks: |
| 59 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 60 | deploy: |
| 61 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 62 | labels: |
| 63 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 64 | restart_policy: |
| 65 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 66 | labels: |
| 67 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 68 | image: ${_param:docker_image_alertmanager} |
| 69 | ports: |
| 70 | - 15011:${prometheus:alertmanager:bind:port} |
| 71 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 72 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 73 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 74 | environment: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 75 | config_dir: ${_param:prometheus_alertmanager_config_directory} |
| 76 | data_dir: ${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 77 | bind_port: ${prometheus:alertmanager:bind:port} |
| 78 | bind_address: ${prometheus:alertmanager:bind:address} |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 79 | discovery_domain: 'monitoring_alertmanager' |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 80 | pushgateway: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 81 | networks: |
| 82 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 83 | deploy: |
| 84 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 85 | labels: |
| 86 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 87 | restart_policy: |
| 88 | condition: any |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 89 | environment: |
| 90 | bind_port: ${prometheus:pushgateway:bind:port} |
| 91 | bind_address: ${prometheus:pushgateway:bind:address} |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 92 | labels: |
| 93 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 94 | image: ${_param:docker_image_pushgateway} |
| 95 | ports: |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 96 | - 15012:${prometheus:pushgateway:bind:port} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 97 | server: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 98 | networks: |
| 99 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 100 | deploy: |
| 101 | replicas: 1 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 102 | labels: |
| 103 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 104 | restart_policy: |
| 105 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 106 | labels: |
| 107 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 108 | image: ${_param:docker_image_prometheus} |
| 109 | ports: |
| 110 | - 15010:${prometheus:server:bind:port} |
| 111 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 112 | - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory} |
| 113 | - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 114 | environment: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 115 | config_dir: ${_param:prometheus_server_config_directory} |
| 116 | data_dir: ${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 117 | bind_port: ${prometheus:server:bind:port} |
| 118 | bind_address: ${prometheus:server:bind:address} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 119 | storage_local_engine: ${prometheus:server:storage:local:engine} |
| 120 | storage_local_retention: ${prometheus:server:storage:local:retention} |
Bartosz Kupidura | 7e9b8b2 | 2017-05-25 10:59:09 +0200 | [diff] [blame] | 121 | storage_local_target_heap_size: ${prometheus:server:storage:local:target_heap_size} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 122 | storage_local_num_fingerprint_mutexes: ${prometheus:server:storage:local:num_fingerprint_mutexes} |