blob: b364259ccf21af5c01a80979dcd61c23a7dd9421 [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: '.*'
Michal Kobusa51df0d2020-06-04 14:48:58 +020012 prometheus_alert_resend_delay: "2m"
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040013 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 Kalashnik53bdd722019-04-08 13:42:08 +040039 - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040040 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 Kobusf5283482019-12-30 16:58:08 +010046 PROMETHEUS_EXTERNAL_URL: "${_param:prometheus_external_proto}://${_param:prometheus_external_url}:15010"
Michal Kobusa51df0d2020-06-04 14:48:58 +020047 PROMETHEUS_ALERT_RESEND_DELAY: "${_param:prometheus_alert_resend_delay}"
Dmitry Kalashnik0581b082018-02-26 13:20:21 +040048 # 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ński81755732020-05-18 11:37:12 +020052 PROMETHEUS_CORS_ORIGIN_REGEX: "${_param:prometheus_cors_origin}"