You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying a custom slo period window, the sloth cli returns some technical errors and not the expected behaviour.
Even when following the guide on the website, it doesn't work properly.
Especially without altering enabled, the page & ticket windows are still required in the AlertWindows.
Expected behaviour
It should be easy to generate SLOs with custom period windows (e.g. 7d or 14d)
Steps to reproduce
Scenario 1: Just specifying the default-slo-period
sloth generate --default-slo-period="7d" --slo-period-windows-path=./examples/windows -i ./examples/no-alerts.yml
(error: "generate"command failed: could not load SLO period windows repository: could not initialize custom windows: could not discover period windows: could not load "7d.yaml" alert windows: invalid alerting window: invalid page quick: long window is required%
It seems like the page & ticket section in the AlertWindows is needed even though it is not used in the SLO spec.
Ideas
Improve error messages
Throw a proper error message when custom window can't be found
Throw a proper error message when the page/ticket section in the AlertWindows is missing (make it required)
Don't throw an error if altering is not needed
When the alerting is disabled in the SLO spec, it should not be required in the AlertWindows section
The text was updated successfully, but these errors were encountered:
Issue
When specifying a custom slo period window, the sloth cli returns some technical errors and not the expected behaviour.
Even when following the guide on the website, it doesn't work properly.
Especially without altering enabled, the page & ticket windows are still required in the
AlertWindows
.Expected behaviour
It should be easy to generate SLOs with custom period windows (e.g. 7d or 14d)
Steps to reproduce
Scenario 1: Just specifying the
default-slo-period
Very technical error
Scenario 2: Specifying the
default-slo-period
andslo-period-windows-path
sloth generate --default-slo-period="7d" --slo-period-windows-path=./examples/windows -i ./examples/getting-started.yml
Works
Scenario 3: Specifying the
default-slo-period
andslo-period-windows-path
without alerting/pagingChange
7d.yaml
to not include alerting/pagingIt seems like the page & ticket section in the
AlertWindows
is needed even though it is not used in the SLO spec.Ideas
Improve error messages
AlertWindows
is missing (make it required)Don't throw an error if altering is not needed
AlertWindows
sectionThe text was updated successfully, but these errors were encountered: