aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prometheus-opensearch.sh
diff options
context:
space:
mode:
authorWill Szumski <will@stackhpc.com>2023-09-08 16:31:35 +0000
committerMichal Nasiadka <mnasiadka@gmail.com>2023-11-07 14:52:06 +0000
commit37c2ab2aaafa06b40ba1c32a29699fbd8ee17b87 (patch)
treea80327245804c03c20d2cdbfc2781c9bbe5447f9 /tests/test-prometheus-opensearch.sh
parent1235c7253d2e29d089aa2810f9db6fab5b45121f (diff)
downloadkolla-ansible-37c2ab2aaafa06b40ba1c32a29699fbd8ee17b87.tar.gz
kolla-ansible-37c2ab2aaafa06b40ba1c32a29699fbd8ee17b87.zip
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
Diffstat (limited to 'tests/test-prometheus-opensearch.sh')
-rwxr-xr-xtests/test-prometheus-opensearch.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-prometheus-opensearch.sh b/tests/test-prometheus-opensearch.sh
index 9ce8a7663..c1f8272c1 100755
--- a/tests/test-prometheus-opensearch.sh
+++ b/tests/test-prometheus-opensearch.sh
@@ -79,11 +79,14 @@ function check_prometheus {
# Query prometheus graph, and check that the returned page looks like a
# prometheus page.
PROMETHEUS_URL=${OS_AUTH_URL%:*}:9091/graph
+ prometheus_password=$(awk '$1 == "prometheus_password:" { print $2 }' /etc/kolla/passwords.yml)
output_path=$1
args=(
--include
--location
--fail
+ --user
+ admin:$prometheus_password
)
if [[ "$TLS_ENABLED" = "True" ]]; then
args+=(--cacert $OS_CACERT)