-
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
[Kibana] [Timelion] ES Datasource Does Not Fit Null Values #8460
Comments
I'm facing the same issue and I prepared a small docker setup in the following repo as a minimum working example. https://github.com/numbnut/kibana-playground Could you please verify whether this is a bug or not? Thanks! |
I found some interesting behavior, when setting the fit parameter of the es data source.
I tested some available fit functions. "nearest" and "none" seems to return "fitted" null values. Maybe this helps during investigating the bug. |
I traced back why this is happening. The
However, I don't see a way how this would ever happen, because the date histogram is parameterized to return the full range, including empty buckets: kibana/src/plugins/vis_types/timelion/server/series_functions/es/lib/create_date_agg.js Line 21 in e20f530
If I would have to guess this was originally done to accomodate for other datasources that might not always return data in the expected format and was never meant to be used for the
This has been in there since timelion was merged into Kibana: #7994 As there's a workaround for this (explicitly calling |
Kibana version: 4.6.1
Elasticsearch version: 2.4.0
Server OS version: Debian 8
Browser version: Google Chrome Version 53.0.2785.116 (64-bit)
Browser OS version: OS X El Capitan Version 10.11.6
Original install method (e.g. download page, yum, from source, etc.):
Installed via Docker.
Description of the problem including expected versus actual behavior:
If we want to display a timeseries using timelion it actually is not plotted given special circumstances.
These circumstances are the datapoint interval (e.g. 10s) is larger than the timelion interval (e.g. 1s), we provided a metric parameter containing an aggregation function (e.g. "avg:my_metric") and we want to plot a line chart. Assume an existing metric with the name "my_metric". Then, a simple example would be:
The main question which came up is the following.
The es data source has a fit parameter. Executing our example above returns a lot of
{"value": null}
data points. For details have a look at the partial elasticsearch response below. Why aren't they fitted to the nearest neighbor? The fit parameter seems to have no effect on the result. What is it for?Chaining
.fit(mode="nearest")
to our data source solves the problem, but we don't want to call it all the time.Steps to reproduce:
Last 15 minutes
.1s
..es(metric="avg:my_metric")
.Errors in browser console (if relevant): none
Provide logs and/or server output (if relevant):
Partial elasticsearch response. Intercepted in the resp object.
The text was updated successfully, but these errors were encountered: