This commit is contained in:
Matthias Bisping 2022-03-10 13:02:28 +01:00
parent 08f2746afc
commit 9aff168f0d

View File

@ -38,7 +38,7 @@ def set_up_probing_webserver():
return resp return resp
@app.route("/prometheus", methods=["GET"]) @app.route("/prometheus", methods=["GET"])
def get_analysis_prometheus(): def get_analysis_prometheus_endpoint():
prom_endpoint = f"{CONFIG.rabbitmq.callback.analysis_endpoint}/prometheus" prom_endpoint = f"{CONFIG.rabbitmq.callback.analysis_endpoint}/prometheus"
metric = requests.get(prom_endpoint) metric = requests.get(prom_endpoint)
return metric.text return metric.text