-
Do you have an example of one? |
Beta Was this translation helpful? Give feedback.
Answered by
abestel
Apr 25, 2024
Replies: 2 comments 8 replies
-
I can see support for latency SLOs were added in #711 but I'm not sure how to use this just yet. Ideally I'd want to take the measurements from Traefik which is already measuring latencies for backend services in buckets of
I'm not sure yet how to specify the query for |
Beta Was this translation helpful? Give feedback.
6 replies
-
Okay this looks right: apiVersion: pyrra.dev/v1alpha1
kind: ServiceLevelObjective
metadata:
creationTimestamp: null
labels:
category: public
service: twtxt
name: Twtxt Latency
namespace: twtxt
spec:
alerting: {}
description: ""
indicator:
latency:
grouping: null
success:
metric: traefik_service_request_duration_seconds_bucket{service="twtxt_twtxt@docker",
code!~"5..", le="0.1"}
total:
metric: traefik_service_request_duration_seconds_count{service="twtxt_twtxt@docker",
code!~"5.."}
target: "95.0"
window: 28d
status: {} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These metrics look like “regular” histograms rather than native ones. I think you can use this example in your case: https://github.com/pyrra-dev/pyrra/blob/main/examples/caddy-response-latency.yaml