blob: 924c08c5020ae58848e8ec8b993996aa89a61ac0 [file] [log] [blame]
Dmitry Kalashnik0581b082018-02-26 13:20:21 +04001classes:
2- system.prometheus.server.container
3parameters:
4 _param:
Michal Kobusf5283482019-12-30 16:58:08 +01005 prometheus_external_url: ${_param:cluster_public_host}
6 prometheus_external_proto: https
Dmitry Kalashnik0581b082018-02-26 13:20:21 +04007 # 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ński81755732020-05-18 11:37:12 +020011 prometheus_cors_origin: '.*'
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040012 docker:
13 client:
14 stack:
15 monitoring:
16 network:
17 monitoring:
18 driver: overlay
19 driver_opts:
20 encrypted: 1
21 service:
22 server:
23 networks:
24 - monitoring
25 deploy:
26 labels:
27 com.mirantis.monitoring: "prometheus"
28 restart_policy:
29 condition: any
30 labels:
31 com.mirantis.monitoring: "prometheus"
32 image: ${_param:docker_image_prometheus}
33 ports:
34 - 15010:${prometheus:server:bind:port}
35 volumes:
36 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
37 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Dmitry Kalashnik53bdd722019-04-08 13:42:08 +040038 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040039 environment:
40 PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory}
41 PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory}
42 PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port}
43 PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
44 PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
Michal Kobusf5283482019-12-30 16:58:08 +010045 PROMETHEUS_EXTERNAL_URL: "${_param:prometheus_external_proto}://${_param:prometheus_external_url}:15010"
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040046 # Backward compatibility for Prometheus 1.7
47 PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine}
48 PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size}
49 PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${_param:prometheus_storage_num_fingerprint_mutexes}
Ksawery Dziekoński81755732020-05-18 11:37:12 +020050 PROMETHEUS_CORS_ORIGIN_REGEX: "${_param:prometheus_cors_origin}"