-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SLO] Support filters for good/total custom metrics #161308
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
There was a problem hiding this 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` }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤯 very nice
Summary
This PR adds support for applying a KQL filter to the good/total metrics.