Skip to content

feat(slo): add metadata in rollup document#222108

Merged
kdelemme merged 6 commits intoelastic:mainfrom
kdelemme:slo/add-metadata-sli-rollup
Jun 10, 2025
Merged

feat(slo): add metadata in rollup document#222108
kdelemme merged 6 commits intoelastic:mainfrom
kdelemme:slo/add-metadata-sli-rollup

Conversation

@kdelemme
Copy link
Contributor

@kdelemme kdelemme commented May 30, 2025

Summary

Resolves https://github.com/elastic/enhancements/issues/23634
Resolves #218987

This PR adds slo.name and slo.tags into the sli rollup data. We had to bump the internal version from 3.4 to 3.5 in order to support the new mappings.
Existing SLOs will continue to work and write into the v3.4 indices until they are either reseted or updated.
New SLOs will write into the new v3.5 indices.

Reason for bumping the index version

If we do not add the new fields as part of the component template mappings for the SLI rollup index, ES will deduce the mapping but will use some text and nested keyword type.
Because this is a component template, the mapping is only applied at index creation, and the SLI rollup index is created only for a new version or monthly when the ingest pipeline creates a new monthly rolling index.

@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label May 30, 2025
@kdelemme kdelemme added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.1.0 v8.19.0 and removed author:obs-ux-management PRs authored by the obs ux management team labels May 30, 2025
@kdelemme kdelemme marked this pull request as ready for review May 30, 2025 18:58
@kdelemme kdelemme requested a review from a team as a code owner May 30, 2025 18:58
@kdelemme kdelemme self-assigned this May 30, 2025
@kdelemme kdelemme added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label May 30, 2025
@elasticmachine
Copy link
Contributor

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

@kdelemme kdelemme changed the title feat(slo): add metadata in rollup document' feat(slo): add metadata in rollup document Jun 6, 2025
@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 6, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #8 / slo transform template adds group by exists filters
  • [job] [logs] Jest Tests #8 / slo transform template adds group by exists filters

Metrics [docs]

✅ unchanged

History

cc @kdelemme

@kdelemme kdelemme merged commit 33842c2 into elastic:main Jun 10, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15562270843

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 222108

Questions ?

Please refer to the Backport tool documentation

pmuellr pushed a commit to pmuellr/kibana that referenced this pull request Jun 11, 2025
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 12, 2025
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 222108 locally
cc: @kdelemme

@kdelemme
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kdelemme added a commit to kdelemme/kibana that referenced this pull request Jun 12, 2025
(cherry picked from commit 33842c2)

# Conflicts:
#	x-pack/solutions/observability/plugins/slo/server/services/management/__snapshots__/clean_up_temp_summary.test.ts.snap
kdelemme added a commit to kdelemme/kibana that referenced this pull request Jun 12, 2025
(cherry picked from commit 33842c2)

# Conflicts:
#	x-pack/solutions/observability/plugins/slo/server/services/management/__snapshots__/clean_up_temp_summary.test.ts.snap
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
kdelemme added a commit that referenced this pull request Jun 13, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [feat(slo): add metadata in rollup document
(#222108)](#222108)

<!--- Backport version: 10.0.0 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2025-06-10T14:27:29Z","message":"feat(slo):
add metadata in rollup document
(#222108)","sha":"33842c2c2be54c1fe5c26655bd3e1750154ce045","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport
missing","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0"],"title":"feat(slo):
add metadata in rollup
document","number":222108,"url":"https://github.com/elastic/kibana/pull/222108","mergeCommit":{"message":"feat(slo):
add metadata in rollup document
(#222108)","sha":"33842c2c2be54c1fe5c26655bd3e1750154ce045"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/222108","number":222108,"mergeCommit":{"message":"feat(slo):
add metadata in rollup document
(#222108)","sha":"33842c2c2be54c1fe5c26655bd3e1750154ce045"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 13, 2025
iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SLO] Add metadata into SLI documents

4 participants