-
Notifications
You must be signed in to change notification settings - Fork 377
[Feature request] Add dashboard import by environment variable #74
Comments
Also, the option to import a dashboard from file (say, in a mounted volume) would be useful. That way initial configurations can be checked into source control. |
Hi, one option would be to update the run.sh to do it. Here is a script that I am using, which I mount into the official container and call by overriding --entrypoint:
Hope it helps. |
Is the environment variable now available to import the dashboard? |
using script taken from grafana/grafana-docker#74
Since Grafana 5.0 it's possible to provision dashboards from file, read about it here. Automatic import directly from grafana.net is still not available but might perhaps be a useful extension to provisioning. |
@xlson It would be nice to have automatic import from grafana.net, it would be awesome! |
This feature depends on grafana/grafana#10786 |
Moved to grafana/grafana#12895 |
One important feature in containers is the automation of initial configuration. In the grafana docker image this possibility is missing.
One container that runs this image is not useful without an initial manual configuration. This wouldn't be a problem if we don't count with the volatility of containers.
Adding the option of automatically import dashboards by environment variables would be a huge improvement.
For example:
Which would import the dashboards available in grafana.net with these ids. If when they are imported the references to the datasources already exist in the container it would use them directly. If not, the first time, it should show the option of which datasources to use.
The text was updated successfully, but these errors were encountered: