Public | Automated Build

Last pushed: 6 months ago
Short Description
Docker Image with Telegraf (StatsD), InfluxDB and Grafana
Full Description

Docker Image with Telegraf (StatsD), InfluxDB and Grafana

:facepunch: Battle-tested


Warning, breaking change: upgrade from version 1.0.x of this image is not supported, all persisted data in volumes will be lost if you delete the container.

  • Docker Image: 2.0.0
  • Ubuntu: 16.04
  • InfluxDB: 1.2
  • Telegraf (StatsD): 1.2
  • Grafana: 4.1.1

Quick Start

To start the container the first time launch:

docker run -d \
  --name docker-statsd-influxdb-grafana \
  -p 3003:3003 \
  -p 3004:8083 \
  -p 8086:8086 \
  -p 22022:22 \
  -p 8125:8125/udp \

You can replace latest with the desired version listed in changelog file.

To stop the container launch:

docker stop docker-statsd-influxdb-grafana

To start the container again launch:

docker start docker-statsd-influxdb-grafana

Mapped Ports

Host        Container        Service

3003        3003            grafana
3004        8083            influxdb-admin
8086        8086            influxdb
8125        8125            statsd
22022        22                sshd


ssh root@localhost -p 22022

Password: root


Open http://localhost:3003

Username: root
Password: root

Add data source on Grafana

  1. Using the wizard click on Add data source
  2. Choose a name for the source and flag it as Default
  3. Choose InfluxDB as type
  4. Choose direct as access
  5. Fill remaining fields as follows and click on Add without altering other fields
Url: http://localhost:8086
Database:    telegraf
User: telegraf
Password:    telegraf

Basic auth and credentials must be left unflagged. Proxy is not required.

Now you are ready to add your first dashboard and launch some query on database.


Web Interface

Open http://localhost:3004

Username: root
Password: root
Port: 8086

InfluxDB Shell (CLI)

  1. Establish a ssh connection with the container
  2. Launch influx to open InfluxDB Shell (CLI)
Docker Pull Command

Comments (6)
3 months ago

Any chance of a version that will run on a raspberry pi 3? :-)

4 months ago

Ok, found it, the docker must be started with elevated privileges.
Sorry, I am used to higher levels of security...

4 months ago

Actually, the daemon /etc/init.d/influxdb cannot start:

root@samuelebistoletti-docker-statsd-influxdb-grafana1:~# /etc/init.d/influxdb status
influxdb process is not running [ FAILED ]
root@samuelebistoletti-docker-statsd-influxdb-grafana1:~# /etc/init.d/influxdb start
/etc/init.d/influxdb: line 114: ulimit: open files: cannot modify limit: Operation not permitted
Unable to set ulimit to 65536 [ FAILED ]

Any suggestion?

4 months ago


any chance to get influxd automatically started at the creation of the docker? I had to search why I could not access the influxdb web UI and when trying to start influx via ssh CLI, I got this:

root@samuelebistoletti-docker-statsd-influxdb-grafana1:~# influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: getsockopt: connection refused
Please check your connection settings and ensure 'influxd' is running.
I had to use "influxd run" in order to be able to continue...

6 months ago

I released version 2.0.0 of this Docker image a few minutes ago. I included Grafana 4.1.1, you can find the full changelog here:

6 months ago

Hi, any chance you can create a new image based on grafana 4.1.1 release? I tried to build an image based on your dockerfile but seems to be be dependent on folders on the host machine.