Support OpenSLO v1
I have a openslo/v1 spec file that is valid:
$ oslo validate -f ./hung_operations.yaml
Valid!
but sloth can't read it:
$ sloth generate -i hung_operations.yaml
INFO[0000] SLI plugins loaded plugins=0 svc=storage.FileSLIPlugin version=0.12.0 window=30d
INFO[0000] SLO period windows loaded svc=alert.WindowsRepo version=0.12.0 window=30d windows=2
error: "generate" command failed: invalid spec, could not load with any of the supported spec types%
Because Sloth currently only supports the v1alpha https://github.com/slok/sloth/blob/ff0dced6a3ee6814e8954d25c8ebb1021050ce3b/pkg/common/model/slo_prometheus.go#L72
https://sloth.dev/examples/openslo/getting-started/
Right, this issue is to request support for v1 to be added.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.
Is this something that will be added over time? Any update on this? If not, then I know I should use the non-openslo spec going forward
Hi 👋
I don't know if it will be supported in the future. Currently its not a priority nor in the short-term roadmap, sloth has new features that can't be supported by OpenSLO standard (like the SLO plugins).
My recommendation is to use the sloth spec.
Thanks for the update @slok, I see the differences and how it would be difficult to align the two. I've switched my config to sloth native definitions. Thanks for the great product 👍🏽