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

Automatically filter to existing docs with "Metric", when "Terms" is used #35830

Open
tbragin opened this issue Apr 30, 2019 · 0 comments
Open
Labels

Comments

@tbragin
Copy link
Contributor

tbragin commented Apr 30, 2019

Today, when you construct a chart where you plot a metric overtime, and then you group results by Term, if the metric does not exist in every doc, you still get the terms for all of the docs.

How common is this scenario? Unfortunately, the schema we provide in Metricbeat, makes this use case more common than one might imagine, with a single index across modules.

What can be done to solve this?

(1) As a user, you can manually add an 'exists" filter for the metric you are plotting. Most users will not guess to do this.

(2) We may consider automatically filtering by exists, at the UI level (or perhaps at the datastore level?)

Leaving this as "discuss". cc @simianhacker @exekias @makwarth @roncohen

Examples

Kibana Visualize

Kibana Visualize (without exists - default)
Kibana_Visualize_without_exists

Kibana Visualize (with exists)
Kibana_visualize_with_exists

Kibana TSVB

Kibana TSVB (without exists - default)
Kibana_TSVB_without_exists

Note: Behavior in TSVB by default is worse than Kibana Visualize, because default ordering is by Doc count, not Metrics value. So you get an empty chart.
Screen Shot 2019-04-29 at 2 57 49 PM

Kibana_TSVB_with_exists

Other clients

Note: Other UI clients (like Grafana) will also have the same problem. Users there would have to manually apply the exists filter. Unless we figure out a way to solve this at the datastore level.

@tbragin tbragin changed the title Automatically filter to existing docs "Metric", when "Terms" is used Automatically filter to existing docs with "Metric", when "Terms" is used Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant