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