项目作者: entelo

项目描述 :
Alpine docker image with telegraf (statsd), influxdb and grafana.
高级语言: Shell
项目地址: git://github.com/entelo/docker-statsd-influxdb-grafana.git
创建时间: 2017-04-04T19:57:58Z
项目社区:https://github.com/entelo/docker-statsd-influxdb-grafana

开源协议:MIT License

下载


Alpine Docker Image with Telegraf (StatsD), InfluxDB and Grafana

Versions

  • Alpine: 3.5
  • Telegraf (StatsD): 1.2.1
  • InfluxDB: 1.2.2
  • Grafana: 4.2.0

Quick Start

To start the container the first time launch:

  1. docker run -d \
  2. --name docker-statsd-influxdb-grafana \
  3. -p 3000:3000 \
  4. -p 8083:8083 \
  5. -p 8086:8086 \
  6. -p 8125:8125/udp \
  7. entelo/docker-statsd-influxdb-grafana:latest

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

To stop the container launch:

  1. docker stop docker-statsd-influxdb-grafana

To start the container again launch:

  1. docker start docker-statsd-influxdb-grafana

Ports

  1. Container Service
  2. 3000 grafana
  3. 8083 influxdb-admin
  4. 8086 influxdb
  5. 8125 statsd

Grafana

Open http://localhost:3000

  1. Username: admin
  2. Password: admin

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
  1. Url: http://localhost:8086
  2. Database: telegraf
  3. User: <empty>
  4. Password: <empty>

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

Open http://localhost:8083 and use database telegraf.

InfluxDB Shell (CLI)

Run influx in the container to open InfluxDB Shell (CLI)