Skip to content

[Infra] Add getMetricIndices to start contract#131326

Merged
miltonhultgren merged 6 commits intoelastic:mainfrom
miltonhultgren:131246-expose-metric-indices
May 3, 2022
Merged

[Infra] Add getMetricIndices to start contract#131326
miltonhultgren merged 6 commits intoelastic:mainfrom
miltonhultgren:131246-expose-metric-indices

Conversation

@miltonhultgren
Copy link
Copy Markdown
Contributor

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.

@miltonhultgren miltonhultgren added Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes v8.3.0 labels May 2, 2022
@miltonhultgren miltonhultgren requested a review from a team as a code owner May 2, 2022 13:53
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@miltonhultgren
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@weltenwort weltenwort self-requested a review May 3, 2022 08:56
Copy link
Copy Markdown
Member

@weltenwort weltenwort left a 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

Copy link
Copy Markdown
Member

@weltenwort weltenwort left a 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!

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
infra 28 31 +3
Unknown metric groups

API count

id before after diff
infra 31 34 +3

History

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

@miltonhultgren miltonhultgren merged commit 71f2099 into elastic:main May 3, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label May 3, 2022
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
* [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 <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Metrics UI Metrics UI feature release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable better support for infrastructure metrics access

5 participants