Docker Image with Telegraf (StatsD), InfluxDB and Grafana
👊 Battle-tested
Versions
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 \
samuelebistoletti/docker-statsd-influxdb-grafana:latest
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
ssh root@localhost -p 22022
Password: root
Grafana
Username: root
Password: root
Add data source on Grafana
- Using the wizard click on
Add data source
- Choose a
name
for the source and flag it asDefault
- Choose
InfluxDB
astype
- Choose
direct
asaccess
- 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.
InfluxDB
Web Interface
Username: root
Password: root
Port: 8086
InfluxDB Shell (CLI)
- Establish a ssh connection with the container
- Launch
influx
to open InfluxDB Shell (CLI)