Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SLO] Support filters for good/total custom metrics #161308

Merged
merged 4 commits into from
Jul 6, 2023

Conversation

simianhacker
Copy link
Member

Summary

This PR adds support for applying a KQL filter to the good/total metrics.

image

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

@simianhacker simianhacker added release_note:enhancement v8.10.0 Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" labels Jul 5, 2023
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #11 / Machine Learning jobs update groups "before all" hook for "returns expected list of groups after update"

Metrics [docs]

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.0MB 1.0MB +811.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 410 414 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 489 493 +4
total +6

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

@simianhacker simianhacker marked this pull request as ready for review July 5, 2023 23:13
@simianhacker simianhacker requested a review from a team as a code owner July 5, 2023 23:13
@elasticmachine
Copy link
Contributor

Pinging @elastic/actionable-observability (Team: Actionable Observability)

Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way we build the aggregation is very nice, ES is dope

@@ -82,7 +89,7 @@ export class MetricCustomTransformGenerator extends TransformGenerator {

private buildMetricEquation(type: 'good' | 'total', metricDef: MetricCustomMetricDef) {
const bucketsPath = metricDef.metrics.reduce(
(acc, metric) => ({ ...acc, [metric.name]: `_${type}_${metric.name}` }),
(acc, metric) => ({ ...acc, [metric.name]: `_${type}_${metric.name}>sum` }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤯 very nice

@simianhacker simianhacker merged commit 099835f into elastic:main Jul 6, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 6, 2023
@simianhacker simianhacker deleted the slo-custom-metric-filters branch April 17, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:enhancement Team: Actionable Observability - DEPRECATED For Observability Alerting and SLOs use "Team:obs-ux-management", for AIops "Team:obs-knowledge" v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants