Latency plugin for Traefik V2 services.
Uses Traefik v2 service metrics to get the latency on the serving services.
bucket
: (Required) The max latency allowed histogram bucket.service_name_regex
: (required) Regex to match the traefik service.filter
: (Optional) A prometheus filter string using concatenated labelsexclude_errors
: (Optional) Boolean that will exclude errored requests from valid events when measuring latency requests.
traefik_service_request_duration_seconds_bucket
: From traefik.traefik_service_request_duration_seconds_count
: From traefik.
sli:
plugin:
id: "sloth-common/traefik/v2/latency"
options:
service_name_regex: "^default-slok-sloth$"
bucket: "0.3"
sli:
plugin:
id: "sloth-common/traefik/v2/latency"
options:
service_name_regex: "^default-slok-sloth$"
bucket: "0.3"
filter: method="GET"
sli:
plugin:
id: "sloth-common/traefik/v2/latency"
options:
service_name_regex: "^default-slok-sloth$"
bucket: "0.3"
filter: method="GET"
exclude_errors: "true"