-
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
[Infra] Add getMetricIndices to start contract #131326
[Infra] Add getMetricIndices to start contract #131326
Conversation
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
x-pack/plugins/infra/server/lib/metrics/make_get_metric_indices.ts
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
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.
LGTM, just left a few comments below
x-pack/plugins/infra/server/lib/metrics/make_get_metric_indices.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/make_get_metric_indices.ts
Outdated
Show resolved
Hide resolved
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.
LGTM if CI agrees - thanks for polishing!
x-pack/plugins/infra/server/lib/metrics/make_get_metric_indices.test.ts
Outdated
Show resolved
Hide resolved
💚 Build SucceededMetrics [docs]Public APIs missing comments
History
To update your PR or re-run it, just comment with: |
* [Infra] Add getMetricIndices to start contract (elastic#131246) * Remove temporary return variable, change variable name * Address review comments * Use Jest Promise mock shorthand Co-authored-by: Kibana Machine <[email protected]>
* [Infra] Add getMetricIndices to start contract (elastic#131246) * Remove temporary return variable, change variable name * Address review comments * Use Jest Promise mock shorthand Co-authored-by: Kibana Machine <[email protected]>
Closes #131246
To allow the APM side to make queries directly against our data they needed a way to know which indices to target, since this is configurable with our source configurations.
This PR adds a (very) simple function to the Infra start contract that once invoked with a given source configuration ID, will resolve that configuration and reply with the indices.