From 9d46bb55da7677871f5bd36081516b4da6f8a223 Mon Sep 17 00:00:00 2001 From: rasmus Date: Wed, 23 Dec 2020 08:05:40 +0200 Subject: [PATCH] Change default endpoint from / to /metrics --- prom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prom.py b/prom.py index 46317fd..f356a6c 100644 --- a/prom.py +++ b/prom.py @@ -22,7 +22,7 @@ PREFIX = os.getenv('PREFIX','bladetest_') ### FLASK ### app = Flask(__name__) -@app.route('/', methods=['GET']) +@app.route('/metrics', methods=['GET']) def parse_request(): # If somebody accesses us data = scraperMain.scraperMain(hostname, encname, sshkeypath) # Gather up, we're going to wait a few minutes on the data.