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: |
Dennis Dmitriev | 88fab01 | 2018-02-07 18:49:00 +0200 | [diff] [blame] | 8 | _param: |
| 9 | # Backward compatibility for Prometheus 1.7 |
| 10 | prometheus_storage_local_engine: "persisted" |
| 11 | prometheus_storage_heap_size: 3221225472 |
| 12 | prometheus_storage_num_fingerprint_mutexes: 4096 |
| 13 | |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | docker: |
| 15 | client: |
| 16 | stack: |
| 17 | monitoring: |
| 18 | network: |
| 19 | monitoring: |
| 20 | driver: overlay |
| 21 | driver_opts: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 22 | encrypted: 1 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 23 | service: |
Bartosz Kupidura | 8668713 | 2017-09-04 11:37:35 +0200 | [diff] [blame] | 24 | relay: |
| 25 | networks: |
| 26 | - monitoring |
| 27 | deploy: |
| 28 | replicas: 2 |
| 29 | labels: |
| 30 | com.mirantis.monitoring: "relay" |
| 31 | restart_policy: |
| 32 | condition: any |
| 33 | labels: |
| 34 | com.mirantis.monitoring: "relay" |
| 35 | image: ${_param:docker_image_prometheus_relay} |
| 36 | ports: |
| 37 | - 15016:8080 |
| 38 | environment: |
| 39 | PROMETHEUS_RELAY_DNS: 'tasks.monitoring_server' |
Bartosz Kupidura | 93b7415 | 2017-06-12 09:57:10 +0200 | [diff] [blame] | 40 | remote_storage_adapter: |
| 41 | networks: |
| 42 | - monitoring |
| 43 | deploy: |
| 44 | replicas: 1 |
| 45 | labels: |
| 46 | com.mirantis.monitoring: "remote_storage_adapter" |
| 47 | restart_policy: |
| 48 | condition: any |
| 49 | labels: |
| 50 | com.mirantis.monitoring: "remote_storage_adapter" |
| 51 | image: ${_param:docker_image_remote_storage_adapter} |
| 52 | ports: |
| 53 | - 15015:${prometheus:remote_storage_adapter:bind:port} |
| 54 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 55 | RSA_BIND_PORT: ${prometheus:remote_storage_adapter:bind:port} |
| 56 | RSA_BIND_ADDRESS: ${prometheus:remote_storage_adapter:bind:address} |
| 57 | RSA_INFLUXDB_RETENTION_POLICY: 'lma' |
| 58 | RSA_INFLUXDB_URL: ${_param:prometheus_influxdb_url} |
| 59 | RSA_INFLUXDB_DB: ${_param:prometheus_influxdb_db} |
| 60 | RSA_INFLUXDB_USERNAME: ${_param:prometheus_influxdb_username} |
| 61 | RSA_INFLUXDB_PASSWORD: ${_param:prometheus_influxdb_password} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 62 | alertmanager: |
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: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 69 | restart_policy: |
| 70 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 71 | labels: |
| 72 | com.mirantis.monitoring: "alertmanager" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 73 | image: ${_param:docker_image_alertmanager} |
| 74 | ports: |
| 75 | - 15011:${prometheus:alertmanager:bind:port} |
| 76 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 77 | - ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory} |
| 78 | - ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 79 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 80 | ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory} |
| 81 | ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory} |
| 82 | ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port} |
| 83 | ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address} |
| 84 | ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager' |
Bartosz Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame] | 85 | ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 86 | pushgateway: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 87 | networks: |
| 88 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 89 | deploy: |
| 90 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 91 | labels: |
| 92 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 93 | restart_policy: |
| 94 | condition: any |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 95 | environment: |
Bartosz Kupidura | d751586 | 2017-09-05 10:08:19 +0200 | [diff] [blame] | 96 | PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port} |
| 97 | PUSHGATEWAY_BIND_ADDRESS: ${prometheus:pushgateway:bind:address} |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 98 | labels: |
| 99 | com.mirantis.monitoring: "pushgateway" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 100 | image: ${_param:docker_image_pushgateway} |
| 101 | ports: |
Martin Polreich | eeaaa86 | 2017-05-10 09:57:14 +0200 | [diff] [blame] | 102 | - 15012:${prometheus:pushgateway:bind:port} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 103 | server: |
Bartosz Kupidura | d856be8 | 2017-04-14 11:03:20 +0200 | [diff] [blame] | 104 | networks: |
| 105 | - monitoring |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 106 | deploy: |
Bartosz Kupidura | 8668713 | 2017-09-04 11:37:35 +0200 | [diff] [blame] | 107 | replicas: 2 |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 108 | labels: |
| 109 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 110 | restart_policy: |
| 111 | condition: any |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 112 | labels: |
| 113 | com.mirantis.monitoring: "prometheus" |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 114 | image: ${_param:docker_image_prometheus} |
| 115 | ports: |
| 116 | - 15010:${prometheus:server:bind:port} |
| 117 | volumes: |
Bartosz Kupidura | a7a3244 | 2017-05-17 15:59:08 +0200 | [diff] [blame] | 118 | - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory} |
| 119 | - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 120 | environment: |
Martin Polreich | 7bfb468 | 2017-08-15 14:40:15 +0200 | [diff] [blame] | 121 | PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory} |
| 122 | PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory} |
| 123 | PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port} |
| 124 | PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address} |
Martin Polreich | 7bfb468 | 2017-08-15 14:40:15 +0200 | [diff] [blame] | 125 | PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention} |
Bartosz Kupidura | 6da031b | 2017-09-14 16:42:22 +0200 | [diff] [blame] | 126 | PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010" |
Dennis Dmitriev | 88fab01 | 2018-02-07 18:49:00 +0200 | [diff] [blame] | 127 | # Backward compatibility for Prometheus 1.7 |
| 128 | PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine} |
| 129 | PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size} |
| 130 | PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${_param:prometheus_storage_num_fingerprint_mutexes} |
| 131 | |