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: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 33 | RSA_BIND_PORT: ${prometheus:remote_storage_adapter:bind:port} |
| 34 | RSA_BIND_ADDRESS: ${prometheus:remote_storage_adapter:bind:address} |
| 35 | RSA_INFLUXDB_RETENTION_POLICY: 'lma' |
| 36 | RSA_INFLUXDB_URL: ${_param:prometheus_influxdb_url} |
| 37 | RSA_INFLUXDB_DB: ${_param:prometheus_influxdb_db} |
| 38 | RSA_INFLUXDB_USERNAME: ${_param:prometheus_influxdb_username} |
| 39 | RSA_INFLUXDB_PASSWORD: ${_param:prometheus_influxdb_password} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 40 | alertmanager: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 41 | networks: |
| 42 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 43 | deploy: |
| 44 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 45 | labels: |
| 46 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 47 | restart_policy: |
| 48 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 49 | labels: |
| 50 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 51 | image: ${_param:docker_image_alertmanager} |
| 52 | ports: |
| 53 | - 15011:${prometheus:alertmanager:bind:port} |
| 54 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 55 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 56 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 57 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 58 | ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory} |
| 59 | ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory} |
| 60 | ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port} |
| 61 | ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address} |
| 62 | ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager' |
Bartosz Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame^] | 63 | ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 64 | pushgateway: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 65 | networks: |
| 66 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 67 | deploy: |
| 68 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 69 | labels: |
| 70 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 71 | restart_policy: |
| 72 | condition: any |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 73 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 74 | PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port} |
| 75 | PUSHGATEWAY_BIND_ADDRESS: ${prometheus:pushgateway:bind:address} |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 76 | labels: |
| 77 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 78 | image: ${_param:docker_image_pushgateway} |
| 79 | ports: |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 80 | - 15012:${prometheus:pushgateway:bind:port} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 81 | server: |
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: 1 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 86 | labels: |
| 87 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 88 | restart_policy: |
| 89 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 90 | labels: |
| 91 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 92 | image: ${_param:docker_image_prometheus} |
| 93 | ports: |
| 94 | - 15010:${prometheus:server:bind:port} |
| 95 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 96 | - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory} |
| 97 | - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 98 | environment: |
Martin Polreich | 7bfb468 | 2017-08-15 14:40:15 +0200 | [diff] [blame] | 99 | PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory} |
| 100 | PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory} |
| 101 | PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port} |
| 102 | PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address} |
| 103 | PROMETHEUS_STORAGE_LOCAL_ENGINE: ${prometheus:server:storage:local:engine} |
| 104 | PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention} |
| 105 | PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${prometheus:server:storage:local:target_heap_size} |
| 106 | PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${prometheus:server:storage:local:num_fingerprint_mutexes} |
Bartosz Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame^] | 107 | PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010" |