Skip to content

frontporch/docker-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana

Acknowledgements

This container is based on the existing official Grafana Docker container. This container adds a layer on top of the Grafana container, which takes care of the bootstrapping for datasources and dashboards.

Description

Self-bootstrapping Grafana instance in a Docker container.

Setup

The container exposes /etc/grafana, where an external volume can be mounted with pre-existing dashboards and datasources to be added to Grafana via API. The external volume must also have a grafana config file present at the root of the mapped volume.

Dashboards

Iterates over all .json files in /etc/grafana/dashboards/ and posts each via curl with Basic Auth to the grafana API.

The bootstrapping script handles part of the conversion from Grafana 'templates' to what the dashboard API expects. The script wraps the json files provided in {"overwrite": true, "dasboard": ${JSON} }, but does not handle dynamic template inputs like templatized datasources.

Datasources

Iterates over all .json files in /etc/grafana/datasources/ and posts each via curl with Basic Auth to the grafana API.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages