GithubHelp home page GithubHelp logo

sokharev / tig-stack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matisku/tig-stack

0.0 2.0 1.0 130 KB

Telegraf, InfluxDB, Grafana Docker Monitoring

License: MIT License

Shell 57.57% JavaScript 42.43%

tig-stack's Introduction

Telegraf InfluxDB Grafana Stack

What is inside TIG Stack

  • Telegraf+Statsd - Gathers cpu,mem,net,docker data and sends it to InfluxDB,statsd installed and 8125 udp port exposed
  • InfluxDB + volume data - Stores data from Telegraf
  • Grafana + volume data - Includes one Dashboard (there will be more!) for docker monitoring.

How to use it?

TIG stack is created for Rancher. If you are not fammiliar with rancher, please read some docs, because it is really great Docker Orchestration Tool.
To use it add custom rancher-catalog to the Rancher configuration, and within only one click, you are able to monitor your Docker Instance automatically!

What if I don't want to use Rancher?

You can obviously use this stack without Rancher. Just grab docker-compose.yml file amd start your stack as usual.

$ mkdir tig-stack
$ cd tig-stack
$ curl -OL https://raw.githubusercontent.com/matisku/tig-stack/master/docker-compose.yml
$ docker-compose up -d

Environment

Grafana

GF_INSTALL_PLUGINS - In default all plugins are installed
GF_SECURITY_ADMIN_USER - Admin Username. Default: admin
GF_SECURITY_ADMIN_PASSWORD- Admin User Password. Default:admin
GF_SECURITY_SECRET_KEY - Secret key. Default: grafana
GF_USERS_ALLOW_SIGN_UP - Allow singup to Grafana. Default: "true"
GF_USERS_ALLOW_ORG_CREATE - Allow user create new Orgs. Default: "true"
GF_AUTH_ANONYMOUS_ENABLED - Anonymus autthorization enabled. Default: "true"
GF_AUTH_ANONYMOUS_ORG_NAME - Anonymus defaul Org Name. Default: grafana
GF_DASHBOARDS_JSON_ENABLED - Dashboards as JSON enabled. Default: "true"
GF_DASHBOARDS_JSON_PATH - Path where JSON Dashboards are stored. Default: /opt/grafana

InfluxDB

INFLUX_DATABASE - IndluxDB Database Name. Default: "telegraf"
INLFUX_ADMIN_USER - IndluxDB Admin Username. Default: "grafana"
INFLUX_ADMIN_PASS - InfluxDB Admin Password. Default: "grafana"

Telegraf

HOST_NAME - Telegraf Default Hostane. Default: "telegraf"
INFLUXDB_HOST - IndluxDB Database Host. Default: "influxdb"
INFLUXDB_PORT - InfluxDB Default Port. Default: "8086"
DATABASE - InfluxDB Database where telegraf stores data. Default: "telegraf"

Sokharev : Telegraf using docker prebuilt image but telegraf.conf used from this checkout thus we can configure telegraf without rebuilding image

How to use 2:

  1. git checkout and cd to tig-stack folder
  2. change telegraf/telegraf.template.conf whatever you want ( or just leave unchanged )
  3. do git pull
  4. docker-compose down
  5. docker-compose up -d
  6. live.die.repeat

some help here https://github.com/influxdata/telegraf/tree/master/plugins/inputs/statsd

test it with : echo "deploys.test.myservice:1|c" | nc -w 1 -u graphite.example.com 8125

Ports

Grafana: 3000 InfluxDB: 8083, 8086

License

Copyright © 2016 Mateusz Trojak. See LICENSE for details.

TODO

  • Add more Grafs

Metadata

tig-stack's People

Contributors

matisku avatar sokharev avatar

Watchers

 avatar  avatar

Forkers

tomasinouk

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.