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

Add file based dashboards to the dashboard search and list. #960

Closed
oprietop opened this issue Oct 20, 2014 · 9 comments
Closed

Add file based dashboards to the dashboard search and list. #960

oprietop opened this issue Oct 20, 2014 · 9 comments
Milestone

Comments

@oprietop
Copy link

If I'm not mistaken it seems file based bashboards can only be reached using their direct URL on the browser. While i don't have any grudge to ES i think it should be neat to be able add the dashboards on app/dashboards to the dashboard lists. They could be treated as a diferent entity than the ES ones with a different color and it would allow to keep a searchable set of fixed/immutable dashboards plus the ES ones if wanted.

@edasque
Copy link

edasque commented Oct 20, 2014

I was never clear on whether this is possible today or not. Either way It would be interesting for us especially if the path is configurable

@oprietop
Copy link
Author

For example I've been playing around and thanks to templating and cohesive metrics paths i can deal with all my current working infraestructure with only 4 dashboards, no need of maintenance thanks to the nature of templating.
For my current purposes I don't really feel i need a backend at all so i'll just be manually keeping a text pane with the links for the file based dashboards on the default one.

@torkelo
Copy link
Member

torkelo commented Oct 22, 2014

@oprietop if you have any idea for how to do this without a backend, please share :)

@oprietop
Copy link
Author

Heh, that's my fault for not reading the current design choices or digging a bit into the code.

Maybe we could try to export/import all current dashboards at once and be able to use that file to feed the app. That process could also feed fill the dasboard list itself.

To be honest I don't know if it's actually worth it, as i stated anyone can do fine just maintaining a custom default dashboards with hyperlinks.

@Oded-B
Copy link

Oded-B commented Oct 30, 2014

I think it would be possible by using an index file, the file will be maintained by a script or manually.
This will allow users to keep dashboard files in s version control system with this workflow:

  1. Edit graph
  2. Export json
  3. Push to version control system
  4. A hook deploys the dashboard to the server and updates the index file.

It will be the simplest way to achieve a truly safe multi user editing mechanism.

@edasque
Copy link

edasque commented Oct 30, 2014

@Oded-B, we do the following. Through a webhook on our fork of Grafana, we check a specific directory for dashboard json files, we compare these with the ones available in ES and upload or delete as necessary.

What this method doesn't provide is for a way for us to test changes to local filesystem stored dashboard (found in that directory I mentioned above).

However it works well for us, adding source control, blame, history to our Grafana dashboards

@Oded-B
Copy link

Oded-B commented Oct 31, 2014

@edasque and it doesn't remove the ES dependency :)
But its better than working directly on ES with no history/backup, I'l consider building something similar.

@edasque
Copy link

edasque commented Oct 31, 2014

Let me know if you need some code to get you started, I might be able to contribute it

@torkelo torkelo added this to the 2.1 milestone May 11, 2015
torkelo added a commit that referenced this issue May 12, 2015
torkelo added a commit that referenced this issue May 13, 2015
…g to move stuff out of models package, extend search support searching different types of entities and different types of dashboards, #960
@torkelo
Copy link
Member

torkelo commented May 13, 2015

[dashboards.json]
enabled = true
path = /var/lib/grafana/dashboards

The path will be scanned every minute and a index built, dashboards will be available and searchable in the dashboard search and dashboard list panel. They cannot be saved / updated from the UI, this feature is only for static dashboards that are automatically generated to edited outside Grafana.

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

4 participants