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