From 9aff168f0d20bb52663a4908f9b59685f3cf5ffc Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 10 Mar 2022 13:02:28 +0100 Subject: [PATCH] renaming --- pyinfra/flask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinfra/flask.py b/pyinfra/flask.py index 2cbc22b..d1d77c1 100644 --- a/pyinfra/flask.py +++ b/pyinfra/flask.py @@ -38,7 +38,7 @@ def set_up_probing_webserver(): return resp @app.route("/prometheus", methods=["GET"]) - def get_analysis_prometheus(): + def get_analysis_prometheus_endpoint(): prom_endpoint = f"{CONFIG.rabbitmq.callback.analysis_endpoint}/prometheus" metric = requests.get(prom_endpoint) return metric.text