mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
19 lines
485 B
Python
19 lines
485 B
Python
|
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,
|
||
|
),
|
||
|
]
|