Coder Social home page Coder Social logo

razorblade446 / docker-telegraf-influxdb-grafana Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artlov/docker-telegraf-influxdb-grafana

0.0 1.0 0.0 82 KB

Docker Image with Telegraf, InfluxDB and Grafana

License: MIT License

Dockerfile 20.45% Shell 79.55%

docker-telegraf-influxdb-grafana's Introduction

Docker Image with Telegraf, InfluxDB and Grafana

This is a Docker image based on the Docker Image with Telegraf (StatsD), InfluxDB and Grafana from Samuele Bistoletti and Docker Image with InfluxDB and Grafana from Phil Hawthorne. The main purpose of this image is to be used to show data from a Domoticz installation and Synology NAS, which hosted this image.

The main points of this image are:

  • Persistence is supported via mounting volumes to a Docker container.
  • Grafana will store its data in SQLite files instead of a MySQL table on the container, so MySQL is not installed.
  • Added snmp packages and Synology NAS MIBS.

Versions

  • Ubuntu: 18.04
  • InfluxDB: 1.7.9
  • Chronograf: 1.7.17
  • Telegraf: 1.13.2-1
  • Grafana: 6.6.0

Quick Start

To start the container the first time launch:

docker run --ulimit nofile=66000:66000 -d \
  --name docker-telegraf-influxdb-grafana \
  -p 3003:3003 \
  -p 3004:3004 \
  -p 8086:8086 \
  -p 22022:22 \
  -p 8125:8125/udp \
  -v /path/for/influxdb:/var/lib/influxdb \
  -v /path/for/grafana:/var/lib/grafana \
  artlov/docker-telegraf-influxdb-grafana:latest

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

To stop the container launch:

docker stop docker-telegraf-influxdb-grafana

To start the container again launch:

docker start docker-telegraf-influxdb-grafana

Mapped Ports

Host		Container	Service

3003		3003		grafana
3004		8888		influxdb-admin (chronograf)
8086		8086		influxdb
8125		8125		telegraf
22022		22		sshd

SSH

ssh root@localhost -p 22022

By default root password login disabled. If ssh connection needed, please configure key authentication.

Access from docker host:

docker exec -it <container id> bash

Grafana

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.

InfluxDB

Chronograf Web Interface

Open http://localhost:3004

InfluxDB Connection:

Username: root
Password: root
Port: 8086

InfluxDB Shell (CLI)

  1. Establish a ssh or docker exec connection with the container
  2. Launch influx to open InfluxDB Shell (CLI)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.