-
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
histogram: enable simple value-based histograms #622
Conversation
I like this, though I wonder if it should be a separate panel. Long term, I think the existing histogram panel should be retired and replaced with a timeseries panel that is properly geared towards working with time series data |
Yeah, I was wondering about that. As it is, I've managed to achieve quite a high degree of code reuse, but it smells of hackiness, especially the Interval.js changes. Are you thinking it would make more sense as a separate panel (from a logical, end-user point-of-view) ? Or do you have any suggestions about how to refactor this to be more clean? Are there any examples of panels inheriting from each other? |
I think from both points of view this makes sense as a different, simplified panel. For example, things like the derivative function make no sense here, and even line charts don't really. So far panels can't inherit from each other, but I'd be interested in design ideas around it. The idea makes a lot of sense. |
Sounds good! I'll see what I can come up with. Thanks for the feedback! |
This change adds a new valuehistogram panel to support value-based histograms. Unlike the previous histogram panel which plots the data using fixed time-interval buckets, this type of histogram buckets the data according to the values themselves. This type of graph provides a high-level perspective of a field's value across the entire time interval.
@rashidkpc OK, here's an attempt to refactor this as a separate panel. It's a straight copy of the existing histogram panel with the necessary changes for this form of chart and the unrelated features culled out. How does this look? From a naming perspective, I could see the existing histogram panel being renamed to "datehistogram" (to be consistent with the elasticsearch facet), but that would be very backward incompatible. |
Hi jdve I like this idea, but having trouble fetching this in git since it doesn't list a branch with this commit in your repo. Did you delete the branch or is it private somehow? Thanks, |
Yes, I think I recreated this repo at one point. I've just pushed up the branch again, so you can grab it from there if you like. Also, this time it's rebased against the tip of the upstream: https://github.com/jdve/kibana/tree/histogram-values |
Thanks heaps for this. I'll have a play today. |
@rashidkpc any chance of merging it upstream? |
👍 I was so disappointed when I found out you couldn't do this with the current histogram. |
We have this on the roadmap for a future version. Unfortunately I can't offer an ETA other than soon :-) |
Tried it with kibana from Jul/8/2014 and Firefox/Chrome. I couldn't create the plot (editor doesn't update correctly; save button is grayed out). No suspicious messages in the javascript console. I guess the 'API' had changed somehow between the end of 2013 and now... |
@dchichkov |
I was having problems generating the graph, Firebug returned a 404 error for underscore.js. By merely downloading underscore.js and placinging it in /src, the error is fixed. Thanks @jdve, have been trying to create a valueHistogram. |
@hhcalder92 |
Woops! Sorry about that! We recently replaced the master branch with Kibana 4. This action force closed all of the old pull requests against master. We will be reviewing these on a case-by-case basis and creating new tickets as necessary. The good news is that many long requested features can be found in Kibana 4, and we're being entirely open about our roadmap. Check out the roadmap tickets (which we're still filling in) here. If you're looking for the old Kibana 3 code you can find it here. |
AWESOME!!! Thank you!! @rashidkpc |
This change enhances the histogram panel to support value-based
histograms in addition to time-series histograms. This means that
instead of bucketing the field across time intervals, simply bucket all
values together into a single set of buckets based on the value itself,
while still honoring the overall dashboard time-range criteria. This
type of graph provides a high-level perspective of a field's value.