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 | 8668713 | 2017-09-04 11:37:35 +0200 | [diff] [blame] | 18 | 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 Kupidura | 93b7415 | 2017-06-12 09:57:10 +0200 | [diff] [blame] | 34 | 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 Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 49 | 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 Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 56 | alertmanager: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 57 | networks: |
| 58 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 59 | deploy: |
| 60 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 61 | labels: |
| 62 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 63 | restart_policy: |
| 64 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 65 | labels: |
| 66 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 67 | image: ${_param:docker_image_alertmanager} |
| 68 | ports: |
| 69 | - 15011:${prometheus:alertmanager:bind:port} |
| 70 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 71 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 72 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 73 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 74 | 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 Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame] | 79 | ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011" |
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: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 90 | PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port} |
| 91 | PUSHGATEWAY_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: |
Bartosz Kupidura | 8668713 | 2017-09-04 11:37:35 +0200 | [diff] [blame] | 101 | replicas: 2 |
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: |
Martin Polreich | 7bfb468 | 2017-08-15 14:40:15 +0200 | [diff] [blame] | 115 | 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 Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame] | 123 | PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010" |