Easily Install InfluxDB, Telegraf, & Grafana with Docker

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ค. 2024
  • In this video, you'll learn how easy it is to get the Telegraf, InfluxDB 2.0, and Grafana or the TIG Stack up and running using Docker Compose.
    ☛ GitHub Repository: github.com/huntabyte/tig-stack
    🛠 Resources Mentioned In This Video 🛠
    ▹InfluxDB CLI Setup: docs.influxdata.com/influxdb/...
    ▹Grafana Dashboards: grafana.com/grafana/dashboards/
    ▹Telegraf Documentation: docs.influxdata.com/telegraf/...
    __________________________________________
    ⚙ My Setup Equipment ⚙
    ► hbyt.us/setup
    (Affiliate links may be included in this description. I may receive a small commission at no cost to you.)
    __________________________________________
    ♦ GitHub: hbyt.us/github
    ♦ Twitter: hbyt.us/twitter
    __________________________________________
    #grafana #influxdb #telegraf #influxdb2.0
    00:00 - Intro
    00:08 - Customize Configurations
    06:25 - Launch the Stack
    07:05 - Verify InfluxDB Configurations
    08:24 - Setup Grafana Data Source
    09:56 - Create Grafana Dashboard
    10:25 - Querying InfluxDB from Grafana
    11:45 - Customize Grafana Panel
    13:16 - Adding Multiple Queries
    13:30 - Conclusion
    __________________________________________
    Attributions:
    NicoAsbach, CC BY-SA 4.0 (creativecommons.org/licenses/..., via Wikimedia Commons
    Linux Screenshots from USA, CC BY 2.0 (creativecommons.org/licenses/..., via Wikimedia Commons
    Joel Kennedy (commons.wikimedia.org/wiki/Fi..., Public domain, via Wikimedia Commons

ความคิดเห็น • 73

  • @Huntabyte
    @Huntabyte  2 ปีที่แล้ว +12

    Hey everyone, I took a different approach to editing this video compared to my others. I'd greatly appreciate any feedback on how I can improve. Thanks a ton for watching!

  • @xhros
    @xhros ปีที่แล้ว +1

    By far the easiest method to getting set up. Easy and straight to the point. THANK YOU!!

  • @fredaker8353
    @fredaker8353 9 วันที่ผ่านมา

    Great video. You have made this as painless as possible.

  • @TheSHELMSY
    @TheSHELMSY 6 หลายเดือนก่อน

    Exactly what I was looking for. I am new to the TIG stack and want to deploy this in my home lab. Chanel is definitely underrated.

  • @liammullane4352
    @liammullane4352 ปีที่แล้ว +1

    Wow this is a great video, very easy to follow, just set up my 1st TIG Stack on my laptop with the help of this video, Very well explained, I love his "Straight to the point" style

  • @SkysimAir
    @SkysimAir ปีที่แล้ว +8

    Now, that's what I call an almost perfect video! Very well explained, contains bookmarks, straight to the point, no uneccessary blabbering and an example repo is provided. THANKS A LOT!!

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      Thanks for the kind words! I try to create content in the same style I prefer to consume, I'm glad you enjoy this format.

  • @itspaulinamac
    @itspaulinamac 2 ปีที่แล้ว +2

    Wow, an informative video with so much great detail! Thank you!

  • @JAV1117
    @JAV1117 2 ปีที่แล้ว +1

    Very easy to follow, love the new edit! Thanks Hunter!

    • @Huntabyte
      @Huntabyte  2 ปีที่แล้ว

      Thanks Joe, appreciate the feedback!

  • @MrAvalanches
    @MrAvalanches ปีที่แล้ว +1

    Dude you killed this video! Awesome work. I tried to recreate it through portainer instead cus I wanted the gui control but ended up ditching it and opting for your setup instead and just used the compose file. The install was seamless! Very nicely explained man. Thanks!

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      I'm glad to hear that, thanks a ton for your feedback and kind words!

  • @romainjouhameau2764
    @romainjouhameau2764 ปีที่แล้ว +1

    Worked like a charm, thanks a lot!

  • @andreacazzaniga8488
    @andreacazzaniga8488 ปีที่แล้ว +1

    very well said and done, straight to the point. thanks

  • @ManfredGatto
    @ManfredGatto ปีที่แล้ว +1

    very nice video! everything compiled in few minutes - you can always pause if required, files worked without problems (although there are hardcoded port numbers instead of DOCKER_INFLUXDB_INIT_PORT variable in docker-compose.yml and telegraf.conf from your Git when compared to the video). Nevertheless great work! Thanks for the effort!

  • @efohelp1130
    @efohelp1130 ปีที่แล้ว

    Wow! First time user of InfluxDB, Telegraf, Grafana, and Docker and It worked. Now to my next challenge to connect Home Assistant Data to those products. Thank you so much. I SUBSCRIBE!!!

  • @eyalsolomon1682
    @eyalsolomon1682 ปีที่แล้ว +2

    Great one !
    very detailed, well-paced and overall good attention to details
    Thanks ! (new subsriber)

  • @acraine
    @acraine 9 หลายเดือนก่อน

    This was really excellent -- thanks!

  • @fernandapassos3699
    @fernandapassos3699 8 หลายเดือนก่อน

    Thank you so so so so much! You have no ideia how much you helped me!!!

  • @mattbass4807
    @mattbass4807 ปีที่แล้ว +1

    Amazing video dude loved it thanks so much!! I would love to see how to connect InfluxDB to a portforward local host port

  • @EightBitShift
    @EightBitShift ปีที่แล้ว

    Worked for docker on a raspberry pi, thanks.

  • @sunnydaysMB
    @sunnydaysMB ปีที่แล้ว +1

    Thank you a lot, perfect tutorial 💙

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      You're welcome, thank you!

  • @LILLJE
    @LILLJE ปีที่แล้ว +1

    dang this was a good, big thanks!

  • @Blackjac
    @Blackjac ปีที่แล้ว +1

    Brilliant video. Thank you so much

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว +1

      You’re welcome!

    • @Blackjac
      @Blackjac ปีที่แล้ว

      @@Huntabyte What would be the most effective way to access the docker environment containing all of the data in influxdb on another device? Currently, I have it on the laptop but want to transfer the data to a PC. Any thoughts on how I would achieve this? Thanks.

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว +1

      @@Blackjac If it's going to be on a local network, then you can access that local devices IP with the respective port (i.e. 192.168.4.20:3000)

    • @Blackjac
      @Blackjac ปีที่แล้ว

      @@Huntabyte would it be easier if I set this up through the influxdb cloud? Would this be possible instead installing it locally? Thanks

  • @rohanthakur1618
    @rohanthakur1618 ปีที่แล้ว +2

    @huntabyte , i am getting 401 error while accessing influxDB following the steps mentioned above. Any pointers what i might be doing wrong?

  • @pingulainen
    @pingulainen ปีที่แล้ว

    Best explanaition I found. But still I can not connect . Error reading influxDB. But no 401 permission denied atleast as other examples I followed.
    EDIT: some hiccup while I was pasting the token into the env file, so grabbed a faulty one. Now everything works as a charm! THANK YOU!

  • @tieuthapnhat5621
    @tieuthapnhat5621 ปีที่แล้ว +1

    Great! Tkanks

  • @GabrievanZanten
    @GabrievanZanten ปีที่แล้ว +1

    Lost a few hours trying to get grafana:latest and influxdb:latest to work, but couldn't get them connected. Used your video and compose file and it worked instantly. Thanks! (Now I'm afraid to upgrade either one of them)

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      Check the release notes to see what breaking changes were released if any! If I have time in the coming weeks I will look into it and update the repo!

    • @GabrievanZanten
      @GabrievanZanten ปีที่แล้ว

      @@Huntabyte For me the biggest change when installing both Grafana and influxdb latest versions, is that the box "Access: Server (default)" is no longer shown in the grafana interface when connecting to influxdb. Not sure if that makes the difference.

  • @ducsue751
    @ducsue751 9 หลายเดือนก่อน

    Hi. Is it possible to change the default database folders to an external one? /mnt/storage/influxdb

  • @boriskontorovich
    @boriskontorovich 10 หลายเดือนก่อน

    How do you make sure that data source information in grafana is preserved when you stop the container?

  • @FranciscoGonzalez-br2td
    @FranciscoGonzalez-br2td 4 หลายเดือนก่อน

    I want to be able to separate the telegraf.conf file into multiple ones using the telegraf.d folder for easier manipulation. How would I do that in this setup? I have added extra .conf files in that folder but nothing reflects in influddb. Do you know any of that?

  • @adeliocastro6797
    @adeliocastro6797 9 หลายเดือนก่อน

    Obrigado...

  • @ashrafhelal9354
    @ashrafhelal9354 ปีที่แล้ว

    what is the metric for cisco/ network speed/ network connectivity/ ping ?

  • @sudo-user
    @sudo-user ปีที่แล้ว

    Hi. I have installed influxdb using docker compose. Now I need to create another user in influxdb but its not possible in influxdb UI. I need to install influxdb cli in order to do that. I am using a linux server to run the docker-compose file. do I need to install influxd cli in linux server or can I install on my windows machine too

  • @gabrielebraghin6476
    @gabrielebraghin6476 ปีที่แล้ว

    If i want to get an input from a Python script, using Telegraf "only" to transfer data from the Iot to InfluxDb...how can i do that?

  • @robertATC1
    @robertATC1 2 หลายเดือนก่อน +1

    Greetings, I have a problem here. I'm getting these errors from InfluxDB: ./entrypoint.sh: line 100: id: command not found ./entrypoint.sh: line 102: mkdir: command not found. I'm new and don't know how to solve it, I would appreciate any help.

  • @ashrafhelal9354
    @ashrafhelal9354 ปีที่แล้ว

    hey, what is the first step. clone to repo. how to do that?

  • @soblo191
    @soblo191 ปีที่แล้ว

    My InfluxDB container keeps failing and restardting, any advice?

  • @jiristodulka5459
    @jiristodulka5459 ปีที่แล้ว

    Hello, wondering if you have any experience pulling from Unifi controllers via Telegraf? I understand unPoller may better for this task but my aim is to use Telegraf/. The issue I face are the MIB files. How would you install them in your approach?

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      Hi, unfortunately I do not have experience with that. Do they support telemetry or strictly SNMP?

  • @ashrafhelal9354
    @ashrafhelal9354 ปีที่แล้ว

    how did you open the code from linux?

  • @anupamakumar675
    @anupamakumar675 ปีที่แล้ว +3

    I am not able to login to influxdb at localhost:8086 - why is that?

    • @ilducedimas
      @ilducedimas ปีที่แล้ว +1

      same

    • @ilducedimas
      @ilducedimas ปีที่แล้ว +1

      flush all the volumes in docker and try again

    • @tuncaykilic7099
      @tuncaykilic7099 ปีที่แล้ว

      @@ilducedimas how?

    • @user-vv4xs4sv9c
      @user-vv4xs4sv9c 2 หลายเดือนก่อน

      thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!@@ilducedimas

  • @ZA26
    @ZA26 ปีที่แล้ว

    I don't understand how to install Telegraf. I am using the image from Home Assistant webpage. How do I install this Telegraf?

  • @manprinsen8150
    @manprinsen8150 ปีที่แล้ว

    Hi!
    How do I change the telegraf config file the setup?
    E.g. let’s say I want to add a new plugin.

    • @Huntabyte
      @Huntabyte  ปีที่แล้ว

      Hey there! You can edit it inside of the 'telegraf.conf' file within the 'telegraf' directory. That file is mounted to the telegraf container. If you run into problems after changing, you may need to restart the telegraf service for the changes to take effect.

  • @maciejzieja5347
    @maciejzieja5347 ปีที่แล้ว +2

    Hi, i have such a problem what could i do? I cannot even login via my browser. I have no idea what went wrong, i change password and username and cannot get authorization. [agent] Error writing to outputs.influxdb_v2: failed to write metric (401 Unauthorized): unauthorized: unauthorized access

    • @anupamakumar675
      @anupamakumar675 ปีที่แล้ว

      me too hope he will answer

    • @ilducedimas
      @ilducedimas ปีที่แล้ว

      flush all the volumes in docker and try again

  • @CrazyDiam0nd1
    @CrazyDiam0nd1 3 หลายเดือนก่อน

    Error reading InfluxDB
    Debian, Ubuntu and various VM's
    Been trying this for 2 days now and cannot get past this stage, very frustrating. The token is 100% correct.
    Also having to use Flux query language as using influxQL does not give me the same options shown in the video.
    All I want to do is monitor IPMI metrics.

  • @ashrafhelal9354
    @ashrafhelal9354 ปีที่แล้ว

    this command docker-compose up -d doesn't work. error "sudo docker-compose: command not found" I'm in the folder tig.

    • @johnthoithi5052
      @johnthoithi5052 5 หลายเดือนก่อน

      use this "docker compose up -d"

  • @zuowang5185
    @zuowang5185 ปีที่แล้ว

    7:38 my bucket says "no tag keys found". I have the inputs set in telegraf.conf

    • @zuowang5185
      @zuowang5185 ปีที่แล้ว

      my hostname wasn't set correctly

  • @dma98
    @dma98 ปีที่แล้ว

    Ah how simple you make it look 😅

  • @ajajaaukka
    @ajajaaukka 10 หลายเดือนก่อน

    Hey, I tried updating the telegraf.conf file when adding a new plugin, but I did not see any changes in the InfluxDB browser UI. I even tried restarting the docker container several times, deleting the containers, re-cloning the whole thing and trying again but still all I see is the default system metrics. Even the bucket name doesn't change when trying to change it to something else than 'telegraf' to which I set it in the first run. What may I be doing wrong here?

    • @ajajaaukka
      @ajajaaukka 10 หลายเดือนก่อน +1

      Ok - problem fixed, I had to not only delete the containers but also everything related to the tig-stack from "Images" and "Volumes" in Docker Desktop. 👍 Now my updates seem to work

  • @anupamakumar675
    @anupamakumar675 ปีที่แล้ว +2

    2022-10-04T00:09:51Z E! [agent] Error writing to outputs.influxdb_v2: failed to write metric (401 Unauthorized): unauthorized: unauthorized access

    • @SebastianSastre
      @SebastianSastre ปีที่แล้ว

      I've just installed and I've seen the same. Any clue on a solution?

    • @esmaeilalkhazmi
      @esmaeilalkhazmi 7 หลายเดือนก่อน

      same