Skip to content

A Docker container for an (currently) actual Grafana Webinterface.

License

Notifications You must be signed in to change notification settings

Mitrofanov/docker-grafana

 
 

Repository files navigation

docker-grafana

A Docker container for an (currently) actual Grafana Webinterface build from Source.

this container use phantomjs from Overbryd

A request from me

PLEASE Don't report Bugs for this Container to the Grafana Crew!

They People makes a great Job and i produce also Bugs.

Use the Issue Tracker and give me Feedback!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Current Status

Docker Pulls Image Size Build Status

Build

Your can use the included Makefile.

To build the Container: make build

To remove the builded Docker Image: make clean

Starts the Container with a simple set of environment vars: make start

Starts the Container with Login Shell: make shell

Entering the Container: make exec

Stop (but not kill): make stop

see the History make history

docker-compose

I've put a small docker-compose Example in the current branch.

To start the Example:

docker-compose -f docker-compose_example.yml up --build

to destroy

docker-compose -f docker-compose_example.yml kill
docker-compose -f docker-compose_example.yml down

automatic Dashboard import

Dashboards Templates under rootfs/opt/grafana/dashboards will be automatic imported at start.

Docker Hub

You can find the Container also at DockerHub

supported Environment Vars

Environmental Variable Default Value Description
DATABASE_TYPE sqlite3 supportet Types are mysql and sqlite3
URL_PATH / to change the Path in the URL whe they run behind a proxy (example: /grafana/)
ORGANISATION Docker
MYSQL_HOST - MySQL Host
MYSQL_PORT 3306 MySQL Port
MYSQL_ROOT_USER root MySQL root User
MYSQL_ROOT_PASS - MySQL root password
SQLITE_PATH - set the Storage-Path for a sqlite Database
DATABASE_GRAFANA_PASS grafana the Database Password for Grafana
CARBON_HOST - the carbon Hostname to send internal Grafana metrics, can be identical with GRAPHITE_HOST
CARBON_PORT 2003 the carbon Port
MEMCACHE_HOST - the memcache Hostname to store Sessions
MEMCACHE_PORT 11211 the memcache Port
LDAP - a json with LDAP configurations:
'{
"server":"${LDAP_SERVER}",
"port":"${LDAP_PORT}",
"bind_dn": "${LDAP_BIND_DN}",
"bind_password": "${LDAP_BIND_PASSWORD}",
"base_dn": "${LDAP_BASE_DN}"
"group_dn": "${LDAP_GROUP_DN}",
"search_filter": "${LDAP_SEARCH_FILTER}"
}'

includes

  • grafana plugins
    • grafana-clock-panel
    • grafana-piechart-panel
    • jdbranham-diagram-panel
    • mtanda-histogram-panel
    • btplc-trend-box-panel

Ports

  • 3000: grafana (plain)

About

A Docker container for an (currently) actual Grafana Webinterface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 51.2%
  • JavaScript 39.9%
  • Makefile 6.5%
  • Smarty 2.4%