Don't have restreamer respond with metrics to non-restreamer metrics requests

pull/540/head
Mike Lang 2 months ago
parent d7facca842
commit 19ad28d686

@ -91,10 +91,10 @@ def metrics():
"""Return current metrics in prometheus metrics format""" """Return current metrics in prometheus metrics format"""
return prom.generate_latest() return prom.generate_latest()
# To make nginx proxying simpler, we want to allow /metrics/* to work # To make nginx proxying simpler, we want to allow /metrics/restreamer to work
@app.route('/metrics/<trailing>') @app.route('/metrics/restreamer')
@request_stats @request_stats
def metrics_with_trailing(trailing): def metrics_with_trailing():
"""Expose Prometheus metrics.""" """Expose Prometheus metrics."""
return prom.generate_latest() return prom.generate_latest()

Loading…
Cancel
Save