elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

feat(slo): Add optional pipeline processor in the SLI ingest pipeline for advanced customer #193628

Open kdelemme opened 1 day ago

kdelemme commented 1 day ago

resolves https://github.com/elastic/kibana/issues/191737

Summary

This PR adds an optional pipeline processor to the SLO rollup pipeline. If a customer wants to override the rollup data with custom logic (for example maintenance window) they can create a pipeline names slo-{id}@custom and it will be automatically applied. Any error will be discarded.

For example create an SLO and create a custom pipeline containing a Drop processor with that condition (adjusted for the current time in UTC)

def hour = ZonedDateTime.parse(ctx['@timestamp']).getHour(); 
return hour < 9 || hour >= 17

☝🏻 This will drop any document when the hour is not between 9am and 5pm

obltmachine commented 1 day ago

:robot: GitHub comments

Expand to view the GitHub comments

Just comment with: - `/oblt-deploy` : Deploy a Kibana instance using the Observability test environments. - `run` `docs-build` : Re-trigger the docs validation. (use unformatted text in the comment!)

elasticmachine commented 1 day ago

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

kibana-ci commented 1 day ago

:yellow_heart: Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with: @elasticmachine merge upstream

cc @kdelemme