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
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!
By far the easiest method to getting set up. Easy and straight to the point. THANK YOU!!
Great video. You have made this as painless as possible.
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.
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
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!!
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.
Wow, an informative video with so much great detail! Thank you!
Very easy to follow, love the new edit! Thanks Hunter!
Thanks Joe, appreciate the feedback!
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!
I'm glad to hear that, thanks a ton for your feedback and kind words!
Worked like a charm, thanks a lot!
very well said and done, straight to the point. thanks
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!
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!!!
Great one !
very detailed, well-paced and overall good attention to details
Thanks ! (new subsriber)
Thank you!
This was really excellent -- thanks!
Thank you so so so so much! You have no ideia how much you helped me!!!
Amazing video dude loved it thanks so much!! I would love to see how to connect InfluxDB to a portforward local host port
Worked for docker on a raspberry pi, thanks.
Thank you a lot, perfect tutorial 💙
You're welcome, thank you!
dang this was a good, big thanks!
Brilliant video. Thank you so much
You’re welcome!
@@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.
@@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)
@@Huntabyte would it be easier if I set this up through the influxdb cloud? Would this be possible instead installing it locally? Thanks
@huntabyte , i am getting 401 error while accessing influxDB following the steps mentioned above. Any pointers what i might be doing wrong?
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!
Great! Tkanks
Thank you!
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)
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!
@@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.
Hi. Is it possible to change the default database folders to an external one? /mnt/storage/influxdb
How do you make sure that data source information in grafana is preserved when you stop the container?
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?
Obrigado...
what is the metric for cisco/ network speed/ network connectivity/ ping ?
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
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?
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.
hey, what is the first step. clone to repo. how to do that?
My InfluxDB container keeps failing and restardting, any advice?
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?
Hi, unfortunately I do not have experience with that. Do they support telemetry or strictly SNMP?
how did you open the code from linux?
I am not able to login to influxdb at localhost:8086 - why is that?
same
flush all the volumes in docker and try again
@@ilducedimas how?
thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!@@ilducedimas
I don't understand how to install Telegraf. I am using the image from Home Assistant webpage. How do I install this Telegraf?
Hi!
How do I change the telegraf config file the setup?
E.g. let’s say I want to add a new plugin.
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.
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
me too hope he will answer
flush all the volumes in docker and try again
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.
this command docker-compose up -d doesn't work. error "sudo docker-compose: command not found" I'm in the folder tig.
use this "docker compose up -d"
7:38 my bucket says "no tag keys found". I have the inputs set in telegraf.conf
my hostname wasn't set correctly
Ah how simple you make it look 😅
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?
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
2022-10-04T00:09:51Z E! [agent] Error writing to outputs.influxdb_v2: failed to write metric (401 Unauthorized): unauthorized: unauthorized access
I've just installed and I've seen the same. Any clue on a solution?
same