Skip to content

Instantly share code, notes, and snippets.

@mmazur
Last active August 19, 2022 13:39
Show Gist options
  • Save mmazur/8844e581e592a0d8170354118a578865 to your computer and use it in GitHub Desktop.
Save mmazur/8844e581e592a0d8170354118a578865 to your computer and use it in GitHub Desktop.
apiVersion: openslo/v1
kind: SLO
metadata:
name: shorter-slo
spec:
indicator:
spec:
ratioMetric:
good:
fakeSource: # my system does not support multiple sources at all
spec:
query: results{code="good"}
total:
fakeSource: # my system does not support multiple sources at all
spec:
query: results{}
timeWindow:
- duration: 28d
isRolling: True
objectives: # my system does not support multiple objectives per single SLO, that's what SLI separation is for
- budgetingMethod: Timeslices
targetPercent: 99.9
timeSliceTarget: 0.9
timeSliceWIndow: 5m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment