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

Extend last data point to the right #2296

Closed
kcajf opened this issue Jul 7, 2015 · 3 comments
Closed

Extend last data point to the right #2296

kcajf opened this issue Jul 7, 2015 · 3 comments

Comments

@kcajf
Copy link

kcajf commented Jul 7, 2015

Hi @torkelo

I have a few metrics that are very slow moving (might change once a month or so). To avoid clogging up my OpenTSDB instance I only want to log these metrics when they change. In Grafana, I'm plotting them as a staircase line. However, the problem is that Grafana will only plot data up until the last data point (which is sensible). I was wondering if there is a way to extend the last value all the way to "now", a bit like this (red line drawn on):

grafanaexample

Would appreciate your help,
Jack

@phemmer
Copy link
Contributor

phemmer commented Aug 27, 2017

I too would like such a feature, but only for staircase lines. For staircase it makes sense as the staircase shows a horizontal line following the last value up until the next value. Meaning that if this feature were implemented, then as time progresses and another data point comes in, that horizontal line will still be there, just extended further. The same cannot be said for non-staircase lines. The only way that the staircase line would be changed/shortened as new data comes in is if the new data is for the time period already shown in the window (meaning historical points are getting added). As such, I think it makes sense for the feature to be enabled by default.

@araisch
Copy link

araisch commented Mar 13, 2018

SELECT field(..) last()
GROUP BY time($interval) fill(previous)
image

With this setting it works partially, but still: If there is no value in the zoomed range it doesn't query the last value before that range. For that there is no value shown at all.
image
This messes up dashboards with fast changing values (measured values) and status values (like switched on/off) because half of the status panels show just nothing when you choose a rather short range of time.

@torkelo
Copy link
Member

torkelo commented Apr 21, 2018

I think this is best handled by OpenTSDB.

We are trying limit open GitHub issues in order to better track planned work or features we eventually hope to implement rather then enumerate all possible features.

I will close this issue since it's been open for very long time without much interest in the feature or anyone showing interest in implementing it.

This does not mean that we will never ever implement it or that we will never accept a PR for it. A closed issue can still attract up votes and act as a ticket to track feature demand/interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants