blob: d38f5f82789d64ecda6cfd9a128507d9377f2237 [file] [log] [blame]
Dmitry Kalashnik0581b082018-02-26 13:20:21 +04001classes:
2- system.prometheus.server.container
3parameters:
4 _param:
Michal Kobus6427b0e2019-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
11 docker:
12 client:
13 stack:
14 monitoring:
15 network:
16 monitoring:
17 driver: overlay
18 driver_opts:
19 encrypted: 1
20 service:
21 server:
22 networks:
23 - monitoring
24 deploy:
25 labels:
26 com.mirantis.monitoring: "prometheus"
27 restart_policy:
28 condition: any
29 labels:
30 com.mirantis.monitoring: "prometheus"
31 image: ${_param:docker_image_prometheus}
32 ports:
33 - 15010:${prometheus:server:bind:port}
34 volumes:
35 - ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
36 - ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
Dmitry Kalashnikc5303e42019-04-08 13:42:08 +040037 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040038 environment:
39 PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory}
40 PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory}
41 PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port}
42 PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
43 PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
Michal Kobus6427b0e2019-12-30 16:58:08 +010044 PROMETHEUS_EXTERNAL_URL: "${_param:prometheus_external_proto}://${_param:prometheus_external_url}:15010"
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040045 # Backward compatibility for Prometheus 1.7
46 PROMETHEUS_STORAGE_LOCAL_ENGINE: ${_param:prometheus_storage_local_engine}
47 PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${_param:prometheus_storage_heap_size}
48 PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${_param:prometheus_storage_num_fingerprint_mutexes}