Code Monkey home page Code Monkey logo

tig-stack's Introduction

TIG stack (Telegraf/InfluxDB/Grafana)

Telegraf is a plugin-driven server agent for collecting and reporting metrics.
InfluxDB handle massive amounts of time-stamped information.
Grafana is an open platform for beautiful analytics and monitoring.

System dashboard Docker dashboard

Requirements

As docker images, TIG stack needs:

  • docker v18.* at least
  • docker-compose v1.2* at least

To be installed on your machine.

How to use it?

.env to the root directory exposes environment variables:

  • TELEGRAF_HOST - agent hostname
  • INFLUXDB_HOST - database hostname
  • INFLUXDB_PORT - database port
  • INFLUXDB_DATABASE - database name
  • INFLUXDB_ADMIN_USER - admin user
  • INFLUXDB_ADMIN_PASSWORD - admin password
  • GRAFANA_PORT - monitoring port
  • GRAFANA_USER - monitoring user
  • GRAFANA_PASSWORD - monitoring password
  • GRAFANA_PLUGINS_ENABLED - enable monitoring plugins
  • GRAFANA_PLUGINS - monitoring plugins list (fetch all available plugins if empty)

Modify it according to your needs and build your custom TIG stack:

$ docker compose up -d

Known issues

  • docker compose command fails for non-root user

    1. Create the docker group if not exists:
    $ sudo groupadd docker
    1. Add your user to the docker group:
    $ sudo usermod -aG docker $USER
    1. Reboot your machine

Then access graphana at http://localhost:3000 (or replace the default port with your GRAPHANA_PORT's value).

License

Copyright © 2020 Alexis Le Provost. See LICENSE for details.

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.