Skip to content

[8.19] [SLO] Bulk Purge SLI data (#218287)#219147

Merged
baileycash-elastic merged 6 commits intoelastic:8.19from
baileycash-elastic:backport/8.19/pr-218287
Apr 25, 2025
Merged

[8.19] [SLO] Bulk Purge SLI data (#218287)#219147
baileycash-elastic merged 6 commits intoelastic:8.19from
baileycash-elastic:backport/8.19/pr-218287

Conversation

@baileycash-elastic
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

## Summary

Resolves elastic#210025

Introduces starter API for bulk purging of SLI data.
**docs coming pending review**
Users can submit a list of SLO ids for which they would like to purge
rollup data, as well as a purge policy:

```
    "purgePolicy": {
        "purgeType": "fixed_age",
        "age": "1w"
    }
```

```
    "purgePolicy": {
        "purgeType": "fixed_time",
        "age": "2025-04-01T00:00:00Z"
    }
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 2df2e78)

# Conflicts:
#	oas_docs/output/kibana.yaml
#	x-pack/solutions/observability/plugins/slo/docs/openapi/slo/bundled.json
#	x-pack/solutions/observability/plugins/slo/docs/openapi/slo/bundled.yaml
#	x-pack/solutions/observability/plugins/slo/docs/openapi/slo/entrypoint.yaml
@baileycash-elastic baileycash-elastic added the backport This PR is a backport of another PR label Apr 24, 2025
@baileycash-elastic baileycash-elastic enabled auto-merge (squash) April 24, 2025 18:24
@baileycash-elastic baileycash-elastic added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Apr 24, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
observability 1246 1247 +1
slo 1120 1121 +1
synthetics 1222 1223 +1
total +3

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/slo-schema 188 193 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 1.3MB 1.3MB +264.0B
slo 923.8KB 924.1KB +223.0B
synthetics 1.1MB 1.1MB +254.0B
total +741.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
observability 93.8KB 93.8KB +1.0B
synthetics 37.9KB 37.9KB -2.0B
total -1.0B
Unknown metric groups

API count

id before after diff
@kbn/slo-schema 188 193 +5

History

@baileycash-elastic baileycash-elastic merged commit af342d0 into elastic:8.19 Apr 25, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants