Skip to content

Traefik Module API Explanation

The Traefik module tracks routing configuration states and active services.


API Execution Logic

The module locates the service matching the identifier traefik. The target URL is parsed, and no authentication header is attached.

Request Execution

A GET request is sent to the /api/overview endpoint under the target URL. A 5-second timeout is enforced.

Data Parsing

Upon success, the JSON payload is parsed. The module extracts the following metrics:

  • Primary Metric: The total count of configured HTTP routers (http.routers.total).
  • Secondary Metric: The total count of configured internal services (http.services.total).

Caching Strategy

The results are cached for 15 seconds (TTL) with a maximum stale window of 60 seconds.