Skip to content

Latest commit

 

History

History
 
 

availability-by-router

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Traefik V2 availability by router

Availability plugin for Traefik V2 routers.

Uses Traefik v2 router metrics to get the correct and invalid availability on the serving routers.

Options

  • filter: (Optional) A prometheus filter string using concatenated labels
  • router_name_regex: (required) Regex to match the traefik routers.

Metric requirements

  • traefik_router_requests_total: From traefik.

Usage examples

Without filter

sli:
  plugin:
    id: "sloth-common/traefik/v2/availability-by-router"
    options:
      router_name_regex: "^default-slok-sloth$"

With filters

sli:
  plugin:
    id: "sloth-common/traefik/v2/availability-by-router"
    options:
      router_name_regex: "^default-slok-sloth$"
      filter: method="GET"