Enable querying Elasticsearch with enabled SSL
Change-Id: Ibf4d40062b54950aa33f86e0f31db4ec877333ac
Related-bug: PROD-30836
(cherry picked from commit 7be63ddea4cea02596a988e3874effed5d8dd382)
diff --git a/docker/swarm/stack/monitoring/elasticsearch_exporter.yml b/docker/swarm/stack/monitoring/elasticsearch_exporter.yml
index 5cbc05e..ce02782 100644
--- a/docker/swarm/stack/monitoring/elasticsearch_exporter.yml
+++ b/docker/swarm/stack/monitoring/elasticsearch_exporter.yml
@@ -12,7 +12,7 @@
encrypted: 1
service:
elasticsearch_exporter:
- command: --es-cluster ${_param:stacklight_log_address}:9200 --nodes-stats-disable --cluster-health-disable --indices-stats-disable
+ command: --es-cluster ${_param:fluentd_elasticsearch_scheme}://${_param:stacklight_log_address}:9200 --nodes-stats-disable --cluster-health-disable --indices-stats-disable
networks:
- monitoring
deploy:
@@ -26,3 +26,4 @@
image: ${_param:docker_image_prometheus_es_exporter}
volumes:
- "${prometheus:elasticsearch_exporter:dir:config}/elasticsearch_exporter.cfg:/usr/src/app/exporter.cfg"
+ - /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro