grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
64.5k stars 12.07k forks source link

[Feature Request] Ability to lock time range on panel, independent of dashboard time #11552

Open icebawkz opened 6 years ago

icebawkz commented 6 years ago

What Grafana version are you using?

Grafana v5.0.3 (commit: 91162f3)

What datasource are you using?

InfluxDB

What OS are you running grafana on?

Ubuntu

I would like the ability to lock a panel into a specific time range, not a relative time shift of the dashboard's time. For example: we use Grafana to visualize patching statistics and we are interested in how each deployment performs over the first X days of it's deployment. To accomplish this for January Patches I utilize both the Time Shift and Relative Time override

image

The issue with this is that the panel itself is set to display all the information for the year so far, as it updates on a daily basis:

image

The leads to an issue wherein if the dashboard time changes, since the panel time range is a modification of the dashboard time, it is now presenting a different time range than what we want to see.

What I get now is a panel starting at now() - 50d and ending at now() - 50d + 35d

What I want is a panel starting at January 1st, 2018 00:00:00 and ending at January 1st, 2018 00:00:00 + 35d

Without this, I need to update the dashboard daily which is cumbersome and defeats the purpose of having this display be automated at all.

GlobularSet commented 6 years ago

I also have use cases where we stretch multiple panels across day boundaries for a global view and I would prefer have fully independent X axis time controls on a per panel basis. Zooming on individual points also generally causes pain here due to time shifts, and we have different total time durations per region which means several of the graphs don't utilize the full graph space.

Our current work around is to NOT have a global view but instead rotate multiple dashboards, but it would be quite powerful to unify under a single more usable dashboard with fully independent X axis controls.

aldanor commented 5 years ago

@icebawkz @GlobularSet Have you managed to figure anything out? Now facing this problem as well and surprised there's no trivial way to do such a trivial thing (or I'm missing something)...

yurividal commented 9 months ago

+1 for this feature. I can't see why this can't be an option.

natellium commented 7 months ago

Somehow related https://github.com/grafana/grafana/issues/73434

naman1507 commented 6 months ago

Is there a solution for this problem, I need to fix my panel's data irrespective of the dashboard's time

lpet commented 4 months ago

+1 for this. I'm using a dashboard for ROI (Return on Investment)-checks, so I have a fixed start date. This missing feature makes it impossible to incorporate panels with smaller time range (e.g. income of last month) into the same dashboard.

S-S-X commented 2 months ago

+1 and follow, got data only ever relevant and available for today + tomorrow while still being useful when coupled / displayed with other time ranges and historical data.

Being able to lock time range similar how you can do by setting say relative time to 24h and time shift to 0d/d+1470m but somehow make it work also when using absolute from. That's partial solution I came up with though it is useful only with relative from time but breaks with absolute.