[Metrics UI] Remove TSVB dependency from Metrics Explorer APIs#74804
Merged
simianhacker merged 13 commits intoelastic:masterfrom Aug 14, 2020
Merged
Conversation
17 tasks
05ff5e0 to
f15f325
Compare
f15f325 to
ad02fdf
Compare
Contributor
|
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
…with-metric-api-for-metrics-explorer
Zacqary
requested changes
Aug 12, 2020
Contributor
Zacqary
left a comment
There was a problem hiding this comment.
Couple style nits but looks good overall
x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/unit_to_seconds.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/unit_to_seconds.ts
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts
Outdated
Show resolved
Hide resolved
…ponents/chart_title.tsx Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…ize/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…ize/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…nterval_for_metrics.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
…with-metric-api-for-metrics-explorer
Zacqary
requested changes
Aug 13, 2020
Contributor
Zacqary
left a comment
There was a problem hiding this comment.
Small typo in how many days are in a year
x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/unit_to_seconds.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
Contributor
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
Zacqary
approved these changes
Aug 13, 2020
Contributor
Zacqary
left a comment
There was a problem hiding this comment.
Checked out and tested this and it seems to be working! Thanks for doing this!
simianhacker
added a commit
to simianhacker/kibana
that referenced
this pull request
Aug 14, 2020
…ic#74804) * [Metrics UI] Remove TSVB dependency from Metrics Explorer APIs * Update x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Fixing some names, changing some units * Reverting TSVB calculate_auto; fixing names in infra * Fixing translation names * Fixing typo Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
simianhacker
added a commit
that referenced
this pull request
Aug 14, 2020
… (#75017) * [Metrics UI] Remove TSVB dependency from Metrics Explorer APIs * Update x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> * Fixing some names, changing some units * Reverting TSVB calculate_auto; fixing names in infra * Fixing translation names * Fixing typo Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com> Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Aug 14, 2020
* master: (23 commits) Adding API test for custom link transaction example (elastic#74238) [Uptime] Singular alert (elastic#74659) Revert "attempt excluding a codeowners directory" (elastic#75023) [Metrics UI] Remove TSVB dependency from Metrics Explorer APIs (elastic#74804) Remove degraded state from ES status service (elastic#75007) [Reporting/Functional] unskip pagination test (elastic#74973) [Resolver] Stale query string values are removed when resolver's component instance ID changes. (elastic#74979) Add public url to Workplace Search plugin (elastic#74991) [Reporting] Update more Server Types for TaskManager (elastic#74915) [I18n] verify select icu-message options are in english (elastic#74963) Make data.search.aggs available on the server. (elastic#74472) [Security Solution][Resolver] Graph Control Tests and Update Simulator Selectors (elastic#74680) attempt excluding a codeowners directory [ML] DF Analytics: allow failed job to be stopped by force via the UI (elastic#74710) Add kibana-core-ui-designers team (elastic#74970) [Metrics UI] Fix inventory footer misalignment (elastic#74707) Remove legacy optimizer (elastic#73154) Update design-specific GH code-owners (elastic#74877) skip test Reporting paginates content elastic#74922 [Metrics UI] Add Jest tests for alert previews (elastic#74890) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes the TSVB dependency from Metrics Explorer and introduces a new library called "Metrics API". The goal of this library is to create a replacement backend for both the Metrics Explorer, Snapshot APIs, and alert executors. This new library supports the following features:
>=1mas TSVBHere is an example of how to use this new service.
One of the goals of this new service is to provide a consistent way to query time series metrics from anywhere with in the Metrics UI app. The search client function can be swapped out with a function (with the same signature,
ESSearchClient) that makes calls using a search strategy.I plan to turn the Metrics API into a Search Strategy in a separate PR which will make using this library even more ubiquitous. I'm also going to submit a follow up PR to use this API for the backend for the Snapshot API.
Testing this PR
The goal of this PR is to go unnoticed by the user. The only change to the integration test was the ID field when the user didn't specify any group by's. Before this change it returned "Everything" as the ID, now it returns
*and we display the "Everything" title only in the UI when it matches this value.Checklist
Delete any items that are not applicable to this PR.