From e785152c4302b31d4582cb5156623bb24fbbac91 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:56:05 -0700 Subject: [PATCH] Add note about legacy summary transforms that can be removed (#3636) (#3839) (cherry picked from commit b93b8777b46a6ea70af7c4b96daff58465358cae) Co-authored-by: Kevin Delemme --- docs/en/observability/slo-overview.asciidoc | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/en/observability/slo-overview.asciidoc b/docs/en/observability/slo-overview.asciidoc index 53d7894dbc..5f813e83fc 100644 --- a/docs/en/observability/slo-overview.asciidoc +++ b/docs/en/observability/slo-overview.asciidoc @@ -114,6 +114,42 @@ The Reset API loads the outdated SLO definition and resets it to the new format Once an SLO is reset, it will start to regenerate SLIs and summary data. ==== +[%collapsible] +.Remove legacy summary transforms +==== +After migrating to 8.12 or later, you might have some legacy SLO summary transforms running. +You can safely delete the following legacy summary transforms: + +[source,sh] +---------------------------------- +# Stop all legacy summary transforms +POST _transform/slo-summary-occurrences-30d-rolling/_stop?force=true +POST _transform/slo-summary-occurrences-7d-rolling/_stop?force=true +POST _transform/slo-summary-occurrences-90d-rolling/_stop?force=true +POST _transform/slo-summary-occurrences-monthly-aligned/_stop?force=true +POST _transform/slo-summary-occurrences-weekly-aligned/_stop?force=true +POST _transform/slo-summary-timeslices-30d-rolling/_stop?force=true +POST _transform/slo-summary-timeslices-7d-rolling/_stop?force=true +POST _transform/slo-summary-timeslices-90d-rolling/_stop?force=true +POST _transform/slo-summary-timeslices-monthly-aligned/_stop?force=true +POST _transform/slo-summary-timeslices-weekly-aligned/_stop?force=true + +# Delete all legacy summary transforms +DELETE _transform/slo-summary-occurrences-30d-rolling?force=true +DELETE _transform/slo-summary-occurrences-7d-rolling?force=true +DELETE _transform/slo-summary-occurrences-90d-rolling?force=true +DELETE _transform/slo-summary-occurrences-monthly-aligned?force=true +DELETE _transform/slo-summary-occurrences-weekly-aligned?force=true +DELETE _transform/slo-summary-timeslices-30d-rolling?force=true +DELETE _transform/slo-summary-timeslices-7d-rolling?force=true +DELETE _transform/slo-summary-timeslices-90d-rolling?force=true +DELETE _transform/slo-summary-timeslices-monthly-aligned?force=true +DELETE _transform/slo-summary-timeslices-weekly-aligned?force=true +---------------------------------- + +Do not delete any new summary transforms used by your migrated SLOs. +==== + [discrete] [[slo-overview-next-steps]] == Next steps