sloth icon indicating copy to clipboard operation
sloth copied to clipboard

Support OpenSLO v1

Open luisdavim opened this issue 4 months ago • 6 comments

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%

luisdavim avatar Aug 08 '25 15:08 luisdavim

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/

snapydziuba avatar Aug 11 '25 08:08 snapydziuba

Right, this issue is to request support for v1 to be added.

luisdavim avatar Aug 11 '25 14:08 luisdavim

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.

github-actions[bot] avatar Nov 10 '25 02:11 github-actions[bot]

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

vincentfree avatar Nov 19 '25 10:11 vincentfree

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.

slok avatar Nov 19 '25 12:11 slok

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 👍🏽

vincentfree avatar Nov 19 '25 20:11 vincentfree