Giter Site home page Giter Site logo

alekece / tig-stack Goto Github PK

View Code? Open in Web Editor NEW
82.0 7.0 46.0 366 KB

TIG stack (Telegraf/InfluxDB/Grafana) wrapped in docker

License: MIT License

Dockerfile 21.75% Shell 78.25%
telegraf influxdb grafana grafana-influxdb docker docker-compose monitoring grafana-plugins database

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.

tig-stack's People

Contributors

alekece avatar eravin-ns1 avatar youcann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tig-stack's Issues

grafana:latest

Hi,

I've tried to run this with grafana/grafana:latest or grafana/grafana:6.6.2 in the Dockerfile but get a lot of errors there.

I'm running this on a raspberry pi 4 - any reason why your script falls over?

Regards
Koen

telegraf run.sh permissions

When I run the docker compose up -d command to start up the stack I get a set of permission errors generated by the run.sh script for telegraf.

These are related to the sed command to replace the values and the mount command.

I added a bit of debugging and it appears that the script is being run by the telegraf user.

Bit weird.

Docker Compose version v2.6.0

Feature Request

Any chance of adding IPMITOOL to be able to scrape devices using IPMI?

apt-get: not found

docker-compose up -d throws error:

Step 1/12 : FROM grafana/grafana:latest
latest: Pulling from grafana/grafana
9d48c3bd43c5: Pull complete
4842084dac50: Pull complete
7cbaa73b9ead: Pull complete
9a7207a7a1b5: Pull complete
6bb6df97bf66: Pull complete
e9c24addd21e: Pull complete
21ae065ef1d6: Pull complete
Digest: sha256:830c3b7ee82fd9ba8ce860361a368565bdc98dd26cc8342dd1bc5ce75886f9a3
Status: Downloaded newer image for grafana/grafana:latest
 ---> 808a15f85914
Step 2/12 : LABEL author="Alexis Le Provost <[email protected]>"
 ---> Running in 587d211fe87c
Removing intermediate container 587d211fe87c
 ---> c30db9250518
Step 3/12 : LABEL version="1.0.0"
 ---> Running in 24a17551fe86
Removing intermediate container 24a17551fe86
 ---> 481b602792cb
Step 4/12 : LABEL description="Grafana docker image"
 ---> Running in 2ac486d67dd6
Removing intermediate container 2ac486d67dd6
 ---> 54c82b1968ef
Step 5/12 : USER root
 ---> Running in 334992bfd2f5
Removing intermediate container 334992bfd2f5
 ---> ba443e282c48
Step 6/12 : RUN apt-get -q update &&    DEBIAN_FRONTEND="noninteractive" apt-get -q upgrade -y -o Dpkg::Options::="--force-confnew" --no-install-recommends &&    DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends curl gosu &&    apt-get -q autoremove &&    apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin
 ---> Running in 3288024e9dd1
/bin/sh: apt-get: not found
ERROR: Service 'grafana' failed to build: The command '/bin/sh -c apt-get -q update &&    DEBIAN_FRONTEND="noninteractive" apt-get -q upgrade -y -o Dpkg::Options::="--force-confnew" --no-install-recommends &&    DEBIAN_FRONTEND="noninteractive" apt-get -q install -y -o Dpkg::Options::="--force-confnew" --no-install-recommends curl gosu &&    apt-get -q autoremove &&    apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin' returned a non-zero code: 127

grafana version is failing to retrieve old unsupported debian files

Hey ! just a heads up, current set version is failing to retrieve old repo files as shown below:

#0 3.293 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
#0 3.294 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
#0 3.294 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
#0 3.295 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.2.132 80]
#0 3.296 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found
#0 3.297 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found
#0 3.297 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get -q update &&    DEBIAN_FRONTEND=\"noninteractive\" apt-get -q upgrade -y -o Dpkg::Options::=\"--force-confnew\" --no-install-recommends &&    DEBIAN_FRONTEND=\"noninteractive\" apt-get -q install -y -o Dpkg::Options::=\"--force-confnew\" --no-install-recommends curl gosu &&    apt-get -q autoremove &&    apt-get -q clean -y && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin" did not complete successfully: exit code: 100

I was able to solve the issue by just updating the grafana tag under the Dockerfile for grafana with:

FROM grafana/grafana:9.5.6-ubuntu

cheers !

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.