crafty-4/app/classes/web/routes/metrics/metrics_handlers.py

19 lines
485 B
Python
Raw Normal View History

2023-09-03 14:04:28 +00:00
from app.classes.web.routes.metrics.index import ApiOpenMetricsIndexHandler
from app.classes.web.routes.metrics.servers import ApiOpenMetricsServersHandler
def metrics_handlers(handler_args):
return [
# OpenMetrics routes
(
r"/metrics?",
ApiOpenMetricsIndexHandler,
handler_args,
),
(
r"/metrics/servers/(0-9)+?",
ApiOpenMetricsServersHandler,
handler_args,
),
]