-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add more filters in panel title #20
Comments
I think this would work, but I'm not 100% sure on how to best do this for the user as far as the syntax for the commands. I'm presuming |
@stephenyeargin It's actually not working. I was saying |
(Sorry, meant "could work" ... would definitely require some work to do it.) |
I'm slightly against this, mostly because the syntax for Hubot just would get more and more difficult to parse and remember. Perhaps you instead could use the number of the graph on the dashboard to show the graph you want? |
Spit-balling some thoughts: So if I understand the goal, it is to return more than one graph panel in a particular dashboard matching on a string. I agree with @Tenzer that there's a need to keep the syntax as easy to follow as possible -- It's already a bit of a challenge to handle templating and panel declarations as it is. Perhaps a compromise would be to have a command that could fuzzy search through the entirety of your Grafana install for a particular panel title. Ideally, this would be exposed via an API in Grafana (I don't believe any such thing exists yet). The search results would give you the dashboard and numeric key for normal lookup. From there, you could save it in with |
Hello, the goal is not to play wih multiple graf but allow to have more Of course it should be able to return one or multiple graphs acccording the Le sam. 24 oct. 2015 06:38, Stephen Yeargin notifications@github.com a
|
So there is this: http://docs.grafana.org/reference/http_api/#search-dashboards We could implement a Search Dashboards
Status Codes:
Example Request:
Example Response:
|
That makes sense, but does it limit to dashboard only ? |
Related to #20 There is an API endpoint that accepts a query string to search available dashboards. Rather than re-invent the wheel, this adds two new calls to leverage that endpoint. This prevents a user from haivng to always use `hubot graf list` to get the entire list of the dashboards in order to query one of them. - `hubot graf search <term>` will translate to `/api/search/?query=<term>` and return dashboards that have titles that match specified term - `hubot graf list <tag>` will translate to `/api/search/?tag=<tag>` and return dashboards that match the specified tag
It appears that it will only search the dashboard (for now). Perhaps in the future it will be able to match on more than the Dashboard title when the API supports it (returning individual panel indexes). I've opened #22 that will leverage that endpoint a bit better. |
We implemented a search feature not too long after this was opened. I believe we tackled the easier feature and left the more complex notation for searching individual panels out. Calling this closed, but can be filed as a new, specific request for how you would want to interact with the bot. |
Hello,
hubot graf db graphite-carbon-metrics:cpu - Get only the panels containing "cpu" (case insensitive) in the title
A great improvement could be to search for
cpu&memory
orcpu&<text>
My use case here, is that I have a row with a panel for each host. I would like to be able to display this panel but only for a host (as I don't use host var for this dashboard)
What do you think about this ?
Thanks
The text was updated successfully, but these errors were encountered: