kolla-ansible/ansible/roles/prometheus/templates/prometheus-web.yml.j2
Will Szumski 37c2ab2aaa Support exposing prometheus_server externally
This avoids the need to use a proxy, or some other means, to connect to
Prometheus. This is disabled by default and can be enabled by setting
enable_prometheus_server_external to true.

Change-Id: Ia0af044ff436c2a204b357750a16ff49fcdfec45
2023-11-07 14:52:06 +00:00

5 lines
208 B
Django/Jinja

basic_auth_users:
{% for user in prometheus_basic_auth_users | selectattr('enabled') | list %}
{{ user.username }}: {{ user.password | password_hash('bcrypt', salt=prometheus_bcrypt_salt) }}
{% endfor %}