Change default endpoint from / to /metrics
This commit is contained in:
parent
ac5f2fe3e4
commit
9d46bb55da
2
prom.py
2
prom.py
|
@ -22,7 +22,7 @@ PREFIX = os.getenv('PREFIX','bladetest_')
|
||||||
|
|
||||||
### FLASK ###
|
### FLASK ###
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/metrics', methods=['GET'])
|
||||||
def parse_request(): # If somebody accesses us
|
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.
|
data = scraperMain.scraperMain(hostname, encname, sshkeypath) # Gather up, we're going to wait a few minutes on the data.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue