Skip to content

Docker image with Influxdb, Grafana, and Telegraf

License

Notifications You must be signed in to change notification settings

dcsg/docker-influxdb-grafana-telegraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image with InfluxDB, Telegraf and Grafana

The purpose of this docker image is to provide an image for Debian and arm32v7 (Raspberry Pi).

Description Value
OS debian | arm32v7
InfluxDB 1.6.4
Telegraf 1.8.2
Grafana 5.3.2

Quick Start

Raspberry Pi (arm32v7)

Start the container by running the following command:

docker run -d \
  --name influxdb-grafana \
  --restart unless-stopped \
  -p 3003:3003 \
  -p 8086:8086 \
  -v /path/for/influxdb:/var/lib/influxdb \
  -v /path/for/grafana:/var/lib/grafana \
  -e "GF_SECURITY_ADMIN_USER=<YOU_USERNAME_HERE>" \
  -e "GF_SECURITY_ADMIN_PASSWORD=<YOU_PASSWORD_HERE>" \
  dcsg/influxdb-grafana-telegraf:arm32v7-1.0.2

Debian

Start the container by running the following command:

docker run -d \
  --name influxdb-grafana \
  --restart unless-stopped \
  -p 3003:3003 \
  -p 8086:8086 \
  -v /path/for/influxdb:/var/lib/influxdb \
  -v /path/for/grafana:/var/lib/grafana \
  -e "GF_SECURITY_ADMIN_USER=<YOU_USERNAME_HERE>" \
  -e "GF_SECURITY_ADMIN_PASSWORD=<YOU_PASSWORD_HERE>" \
  dcsg/influxdb-grafana-telegraf:debian-1.0.2

To stop the container launch:

docker stop influxdb-grafana

To start the container again launch:

docker start influxdb-grafana

Mapped Ports

Host Container Service
3003 3003 grafana
8086 8086 influxdb

SSH

docker exec -it influxdb-grafana bash

Grafana

Open http://localhost:3003

Username: <User defined in Environment Variable>
Password: <Password defined in Environment Variable>

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. Fill URL with http://localhost:8086
  5. Choose Server (Default) as access
  6. Fill the database and the remaining fields and click Save & Test.

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

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

InfluxDB Shell (CLI)

docker exec -it influxdb-grafana influx

About

Docker image with Influxdb, Grafana, and Telegraf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published