-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Time regions support in graph panel #12371
Conversation
I wonder how much conflict this will have with the major refactorings in https://github.com/grafana/grafana/pull/12060/files |
Good question :) Barely no changes to the "value" thresholds in this PR so no conflicts per se with that other PR. But if we want this to be in React as well, then yes there are a lot of changes needed |
Maybe thresholds are the wrong name for this? Been thinking about thresholds recently and how we can align the thresholds model & UI across panels. But this feels a lot different. more like |
Yes agree, but you mean thresholds in general? Colored Time Regions or Time Markings are exactly the same as Colored Value Regions or Value Markings, right? |
9267ae1
to
8ad11ac
Compare
@torkelo did some work on this:
|
8ad11ac
to
791949f
Compare
This is a great feature that we are looking for to be added to Grafana. Is there any update for this request at this moment? |
791949f
to
85c2a23
Compare
@perplexityjeff hopefully it can be included in v5.4. |
85c2a23
to
5a1fd40
Compare
5a1fd40
to
63be43e
Compare
Any plans to add this into other panel types such as HeatMap? thinking prometheus histogram heatmap usage as a example. |
@StephenOTT not at the moment. That panel is using d3 so it's not that easy to implement just by copy this solution. Please open a separate issue for heatmap time regions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really great. Sorry for taking for every to review & test this.
I would remove the background %3 & %6 and rename background %9 with Gray. And maybe add a blue transparent color as well.
Are there plans to support timezone ? if there are some directions we would love to contribute |
@Gauravshah what do you mean? You configure times that correlates to UTC. Changing timezone of dashboard to local browser time will adjust the time regions accordingly. |
@marefr lets say my timezone is PT ( Los Angeles ). I select |
I would say then use UTC time in dashboard as timezone instead or open a feature request issue. |
@marefr I think there are valid uses cases around using time zone. Will open a feature request. |
Fixes #5930
Example dashboard using Grafana Testdata datasource: https://gist.github.com/marefr/2fee183a7b566ab12c6477fccec5a887