Db monitor for ES needs to point to the correct server.

This commit is contained in:
Samuel Clay 2024-12-24 22:24:53 -05:00
parent 7a9894e31b
commit 6c5aed53eb

View file

@ -256,7 +256,7 @@ def db_check_redis_pubsub():
@app.route("/db_check/elasticsearch")
def db_check_elasticsearch():
try:
conn = elasticsearch.Elasticsearch("db-elasticsearch.service.nyc1.consul:9200")
conn = elasticsearch.Elasticsearch(f"{settings.SERVER_NAME}.node.nyc1.consul:9200")
except:
abort(Response("Can't connect to db", 503))