added section traefik_http_components

This commit is contained in:
2025-05-03 18:12:28 +02:00
parent 4b69032742
commit 0f834e6121
3 changed files with 324 additions and 0 deletions

View File

@@ -15,6 +15,36 @@ metric_traefik_agent_execution_time = Metric(
color=Color.DARK_ORANGE,
)
metric_traefik_num_http_routers = Metric(
name="traefik_num_http_routers",
title=Title("Number of HTTP routers"),
unit=Unit(DecimalNotation("")),
color=Color.LIGHT_GREEN,
)
metric_traefik_num_http_services = Metric(
name="traefik_num_http_services",
title=Title("Number of HTTP services"),
unit=Unit(DecimalNotation("")),
color=Color.LIGHT_BLUE,
)
metric_traefik_num_http_middlewares = Metric(
name="traefik_num_http_middlewares",
title=Title("Number of HTTP middlewares"),
unit=Unit(DecimalNotation("")),
color=Color.LIGHT_RED,
)
metric_traefik_percent_http_components_not_ok = Metric(
name="traefik_percent_http_components_not_ok",
title=Title("Percent of HTTP components in not OK state"),
unit=Unit(DecimalNotation("%")),
color=Color.DARK_RED,
)
perfometer_traefik_agent_execution_time = Perfometer(
name="traefik_agent_execution_time",
focus_range=FocusRange(Closed(0), Closed(100)),