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

Support for playlist with templating variables #773

Open
costimuraru opened this issue Sep 8, 2014 · 169 comments
Open

Support for playlist with templating variables #773

costimuraru opened this issue Sep 8, 2014 · 169 comments
Labels
area/dashboard area/playlist prio/low It's a good idea, but not scheduled for any release team/grafana-dashboards Dashboards squad type/feature-request

Comments

@costimuraru
Copy link

Let me give you a simple example:
We have a dashboard that has $HOST variable configured.
We have a graph that uses aws.$HOST.request.count
When looking at the dashboard we can select Host1, Host2 etc, displaying the appropriate metrics.
Now, it would be nice to turn this into a playlist so that every minute, grafana displays the metrics for each host.

Things get a bit more complicated when we have two or more filters. There are a bunch of combinations, some of which may not be of interest for the dashboard watcher.
For this reason, it would be nice to have a way to select a list of filter/variable combinations that are interesting for the user. The playlist would then cycle through these combinations and display the dashboard with the appropriate metrics.
It would also be nice to make it possible to select different combinations for the time range as well in a playlist (eg. last 6 hours, last 24hours and so on).

@torkelo
Copy link
Member

torkelo commented Sep 8, 2014

@costimuraru very good suggestions!

@catacgc
Copy link

catacgc commented Sep 8, 2014

👍 will make the playlist feature so much more useful

@ghost
Copy link

ghost commented Sep 9, 2014

👍 This feature is needed beucause you don't have that huge screen to put all you graphs there.

@mdfecioru
Copy link

👍 Indeed, this feature would be great for projects like ours where we have many dashboards that may be compacted in a single screen.

@torkelo
Copy link
Member

torkelo commented Sep 9, 2014

This indeed sound very useful, but also pretty complex and time consuming to expose variable and time settings in the start playlist view (and implementing the logic to handle those settings and setup variables etc on dashboard load/cycle). So it will definitely be a feature too prioritize in the future but not something that can be squeezed in for v1.8

@torkelo torkelo added the prio/critical Highest priority. Must be actively worked on as someone's top priority right now. label Sep 9, 2014
@costimuraru
Copy link
Author

Thanks @torkelo and keep up the good work!

@mixomat
Copy link

mixomat commented Oct 21, 2014

👍 Would be great to have this feature

@rishid
Copy link

rishid commented Jan 20, 2015

While this is in the dev queue -- is there anyway to specify the template variable in the url? I could at least use a browser extension to rotate through a bunch of urls for now.

@torkelo
Copy link
Member

torkelo commented Jan 20, 2015

@rishid yes, using ?var-<variable_name>=value

@bbinet
Copy link
Contributor

bbinet commented Feb 17, 2015

+1, I'm also very interested in this feature request

@languitar
Copy link
Contributor

+1

1 similar comment
@pip77
Copy link

pip77 commented Mar 17, 2015

+1

@magmax
Copy link

magmax commented Aug 6, 2015

+1 With templating, this is a must.

@utkarshcmu
Copy link
Collaborator

PR coming very soon...

@costimuraru I have implemented playlist for one variable, now working on multi variable combinations. Implementation should be quick. Selecting different time range may be an upgrade feature on top of this. For this iteration, I am just doing template variable combinations playlist.

@costimuraru
Copy link
Author

That's awesome, @utkarshcmu !

@utkarshcmu
Copy link
Collaborator

Here is the the PR - #2841 and some screenshots:

Go to "Templating" and now you should be able to see the brand new "Playlist" tab:
screen shot 2015-09-29 at 3 14 13 am

Click on Playlist tab and you should see the following screen with all the variables listed.
screen shot 2015-09-29 at 3 14 16 am

I selected 2 of the variables out of 3 and clicked on "Start". (The reason I selected 2 is because I want to play all the combinations of these 2 variables keeping the 3rd one fixed. Please Note: The fixed variables will get their default saved values).
screen shot 2015-09-29 at 3 14 22 am

Now you can see that I kept the first variable constant and a playlist will start with all the possible combinations of 2nd and 3rd variables.
screen shot 2015-09-29 at 3 14 36 am

Please provide feedback and changes if required.

@timgriffiths
Copy link

Awesome @utkarshcmu

@torkelo
Copy link
Member

torkelo commented Sep 29, 2015

Nice work! not sure about having the playlist feature as a tab in the templating settings. There is already a playlist view, Building a playlist for a templated dashboard should be part of that view.

@utkarshcmu
Copy link
Collaborator

Agreed with @torkelo, I will make this a part of the playlist view. That makes more sense. :)

@utkarshcmu
Copy link
Collaborator

Playlist based on template variables can be triggered from the playlist view now. Following steps should be followed to start the playlist:

Click on Playlist:
screen shot 2015-09-30 at 10 59 44 am

You will see the following Playlist view with an additional option of choosing the playlist type:
screen shot 2015-09-30 at 10 59 50 am
Everything works same for the playlists based on dashboards.

Now for playlist based on template variables, you need to select "variables" from the dropdown menu:
screen shot 2015-09-30 at 11 07 37 am

Then you will search for dashboard for which you need to run the playlist based on its template variables and select it:
screen shot 2015-09-30 at 11 00 13 am

Once you select the dashboard, automatically the list of template variables will be show:
screen shot 2015-09-30 at 11 00 16 am

Now the next step is to select the template variables with which you want to run the playlist, and click on Start:
screen shot 2015-09-30 at 11 00 44 am

And here you go with the playlist based on template variables:
screen shot 2015-09-30 at 11 00 51 am
screen shot 2015-09-30 at 11 00 58 am

Let me know what do you guys think about this change in the playlist view.

@torkelo
Copy link
Member

torkelo commented Sep 30, 2015

looks good

@mtanda
Copy link
Collaborator

mtanda commented Nov 8, 2015

+1

@bergquist bergquist added prio/low It's a good idea, but not scheduled for any release and removed prio/critical Highest priority. Must be actively worked on as someone's top priority right now. labels Jan 19, 2016
@evandro-portugal
Copy link

+1, any news about this feature @utkarshcmu ?

@cbozen
Copy link

cbozen commented Sep 17, 2021

+7

@holyslav
Copy link

+8

@tessagold
Copy link

+9

@malcolm061990
Copy link

🤞

@kiloreven
Copy link

kiloreven commented Jul 12, 2022

+11

EDIT: In our case we want to grant multiple teams access to the same dashboard with variables specific to that team (on public displays). Being able to use playlists to do this rather than copying the entire dashboards would save us a lot of time and management overhead :D

@cedricengagor
Copy link

+12

@Mantrain
Copy link

Mantrain commented Jan 4, 2023

+13

How is this still not a thing?

@chrisulbrich
Copy link

+14

I'm interested in this feature, too!

zerok pushed a commit that referenced this issue Feb 28, 2023
"Release: Updated versions in package to 9.4.1"
@Sharded
Copy link

Sharded commented Apr 3, 2023

I really don't mind if the UI is very plain.

You can already add multiple copies of the same dashboard to a playlist, so to make something quick and dirty you'd just need to add a button to those dashboards that have variables. It could then pop up a panel that allows you to set the values you want to choose for each of the variables.

Although ideally it'd be nice to run queries etc, you could get something basic running with a simple line of text - being able to specify 'machinenumber: 5;direction: "up";' would be enough to save a huge amount of time needlessly replicating dashboards that work much better with variables.

@g-clems
Copy link

g-clems commented Apr 8, 2023

+15

@celsolom
Copy link

+1

@RandomUser0815
Copy link

9 years later, and still not available :(

@JohnBolander
Copy link

@ryantxu I saw you worked with playlists last year and I was hoping you could reevaluate the priority and assign this ticket to a milestone given the large interest and time that it's been open. Thank you!

@sourabhsharma-cpi
Copy link

all we need is an option to run playlist by URL - and we are good.

@alegeay
Copy link

alegeay commented Aug 18, 2023

+16

@roewan
Copy link

roewan commented Sep 29, 2023

+17

@yaroze
Copy link

yaroze commented Oct 10, 2023

+18

@Oler-XII
Copy link

+19

@lgarvey
Copy link

lgarvey commented Oct 17, 2023

+20

@cellmechanic
Copy link

please.

@sourcehawk
Copy link

+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40

@fortram
Copy link

fortram commented Feb 15, 2024

+41

@Lanpingner
Copy link

+42

@lgarvey
Copy link

lgarvey commented Feb 16, 2024

+43

@Kamii
Copy link

Kamii commented Mar 7, 2024

+44

@natellium natellium removed the team/grafana-dashboards Dashboards squad label Apr 5, 2024
@grafanabot grafanabot added the team/grafana-dashboards Dashboards squad label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard area/playlist prio/low It's a good idea, but not scheduled for any release team/grafana-dashboards Dashboards squad type/feature-request
Projects
Status: 📝 Backlog
Status: 🗂️ Needs Triage / Escalation
Development

No branches or pull requests