Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.server.container |
| 3 | parameters: |
| 4 | _param: |
Michal Kobus | f528348 | 2019-12-30 16:58:08 +0100 | [diff] [blame] | 5 | prometheus_external_url: ${_param:cluster_public_host} |
| 6 | prometheus_external_proto: https |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 7 | # Backward compatibility for Prometheus 1.7 |
| 8 | prometheus_storage_local_engine: "persisted" |
| 9 | prometheus_storage_heap_size: 3221225472 |
| 10 | prometheus_storage_num_fingerprint_mutexes: 4096 |
Ksawery Dziekoński | 8175573 | 2020-05-18 11:37:12 +0200 | [diff] [blame] | 11 | prometheus_cors_origin: '.*' |
Michal Kobus | a51df0d | 2020-06-04 14:48:58 +0200 | [diff] [blame] | 12 | prometheus_alert_resend_delay: "2m" |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 13 | docker: |
| 14 | client: |
| 15 | stack: |
| 16 | monitoring: |
| 17 | network: |
| 18 | monitoring: |
| 19 | driver: overlay |
| 20 | driver_opts: |
| 21 | encrypted: 1 |
| 22 | service: |
| 23 | server: |
| 24 | networks: |
| 25 | - monitoring |
| 26 | deploy: |
| 27 | labels: |
| 28 | com.mirantis.monitoring: "prometheus" |
| 29 | restart_policy: |
| 30 | condition: any |
| 31 | labels: |
| 32 | com.mirantis.monitoring: "prometheus" |
| 33 | image: ${_param:docker_image_prometheus} |
| 34 | ports: |
| 35 | - 15010:${prometheus:server:bind:port} |
| 36 | volumes: |
| 37 | - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory} |
| 38 | - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory} |
Dmitry Kalashnik | 53bdd72 | 2019-04-08 13:42:08 +0400 | [diff] [blame] | 39 | - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 40 | environment: |
| 41 | PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory} |
| 42 | PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory} |
| 43 | PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port} |
| 44 | PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address} |
| 45 | PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention} |
Michal Kobus | f528348 | 2019-12-30 16:58:08 +0100 | [diff] [blame] | 46 | PROMETHEUS_EXTERNAL_URL: "${_param:prometheus_external_proto}://${_param:prometheus_external_url}:15010" |
Michal Kobus | a51df0d | 2020-06-04 14:48:58 +0200 | [diff] [blame] | 47 | PROMETHEUS_ALERT_RESEND_DELAY: "${_param:prometheus_alert_resend_delay}" |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 48 | # Backward compatibility for Prometheus 1.7 |
| 49 | PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine} |
| 50 | PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size} |
| 51 | PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${_param:prometheus_storage_num_fingerprint_mutexes} |
Ksawery Dziekoński | 8175573 | 2020-05-18 11:37:12 +0200 | [diff] [blame] | 52 | PROMETHEUS_CORS_ORIGIN_REGEX: "${_param:prometheus_cors_origin}" |