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

reusing search widget? #1201

Closed
Dieterbe opened this issue Dec 6, 2014 · 8 comments
Closed

reusing search widget? #1201

Dieterbe opened this issue Dec 6, 2014 · 8 comments

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Dec 6, 2014

Grafana has this great feature where you can dynamically generate dashboards using "scripted dashboards". it supports looking at url args so you can specify parameters in the url,
let's say a you specify a servername in the url, to generate a dashboard of that server by expanding the servername into your graphite target strings.

it would be nice if we didn't depend on getting such input via url args though. i would like to build, for example, a page that has a search/filter widget (very similar to the "open dashboard" widget), but populated with all my servernames, so i can select a servername from it and then build the dashboard for that server. If grafana somehow lets me make a page where i can reuse the search widget, then i can populate it by querying graphite/influxdb for all known values of a certain expression

@torkelo
Copy link
Member

torkelo commented Dec 6, 2014

Interesting idea, I like it. For grafana pro (ie backend) I have this strange idea where you can push scripted dashboard that constantly run on the server (a couple of times per day) that spew out dashboards with names and tags that are then saved and are fully indexed and searchable. But I like your idea of having widgets for that can generate links to scripted dashboards based on keys that exists in graphite. would be a mix of the templated dashboard/variables provide but for generating links to scripted dashboards

@Dieterbe
Copy link
Contributor Author

Dieterbe commented Dec 6, 2014

But I like your idea of having widgets for that can generate links to scripted dashboards based on keys that exists in graphite.

to give credit where it's due, http://anatolijd.blogspot.com/2014/07/scripting-grafana-dashboards.html introduced the concept of querying graphite for values, from code within scripted dashboards. But I thought it would be useful to be able to use the search widget to easily narrow down some of those values. (see also the comments there)
But your idea might be simpler. If we automatically generate all dashboards with appropriate names and tags, then that search interface might be all we need. and perhaps a button to force a refresh of the auto-generated dashboards.

@vincentbernat
Copy link

This issue seems the same as #1229. This is not really the search widget that should be reused but the template bar widget which allows to select a value from a list of possible values or from the name of the metrics.

@Dieterbe
Copy link
Contributor Author

no #1229 is about changing the dashboard definition when you change the value of a variable.

@Dieterbe
Copy link
Contributor Author

actually i think you're right, #1229 is basically the same thing, but approached from the different angle

@jjmaestro
Copy link

What would be awesome is to have a pub-sub model.

Say you could create Channels in a dashboard. Then, a widget (or parts of a widget) could publish or subscribe to a channel. For example, a widget with a target picker could publish the target to a channel and then, many queries could subscribe to the channel and then retrieve stuff for that target :)

@mtanda
Copy link
Collaborator

mtanda commented Nov 8, 2015

+1

@torkelo
Copy link
Member

torkelo commented Jan 31, 2017

closing this for now, as the dashboard search is an integral component to the grafana chrome and not part of the dashboard , search widget mentioned in issue could be created as a panel

@torkelo torkelo closed this as completed Jan 31, 2017
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

5 participants