Public | Automated Build

Last pushed: 4 months ago
Short Description
Influx and Grafana
Full Description

InfluxDB & Grafana

Dockerfile which starts an an InfluxDB instance and a Grafana dashboard.

Initial Database

By default a database called grafana is created in Influx to store the grafana configuration. If you want to setup additional databases, use the environment variable PRE_CREATE_DB (separated with ;):

docker run -d -p 80:80 -p 8083:8083 -p 8086:8086 -e PRE_CREATE_DB=foo;bar hpehl/influx-grafana

Environment Variables

Here's a list of all environment variables which are processed by the docker image:

  • INFLUXDB_INIT_USER: User for InfluxDB. Defaults to "root".
  • INFLUXDB_INIT_PWD: Password for the InfluxDB user. Defaults to "root".
  • PRE_CREATE_DB: Initial databases for InfluxDB (do not include grafana as initial database as it's created by default).
Docker Pull Command
Source Repository

Comments (2)
2 years ago

Sorry I didn't mean to the source Dockerfile, I'm trying to warn about the influxdb version installed in the docker fs layer stored in the docker hub.

2 years ago

Hi this Dockerfile seems to install influxdb 0.8

$ curl -i -G 'http://localhost:8086/db/mydb/series'
HTTP/1.1 401 Unauthorized
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 2592000
Content-Type: text/plain
Www-Authenticate: Basic realm="influxdb"
X-Influxdb-Version: InfluxDB v0.8.8 (git: afde71e) (leveldb: 1.15)
Date: Thu, 25 Jun 2015 09:41:24 GMT
Content-Length: 34

I'm commenting it only because the http api of the current influxdb is completly different from the 1.8 version