Comments on How to Install TIG Stack (Telegraf, InfluxDB, and Grafana) on Ubuntu 18.04 LTS
In this tutorial, I will show you how to install and configure the TIG Stack (Telegraf, InfluxDB, and Grafana) using a single Ubuntu 18.04 Server. We will be using the TIG Stack for monitoring the system loads such as Network, RAM Memory, Uptime etc.
22 Comment(s)
Comments
Hi! This works wonderfully, however the 'net' test command for telegraf returns 'Error: no inputs found, did you provide a valid configuration file?'. How can I resolve this issue? Thanks again for the wonderful guide!
Hello,
Your website is very helpful and one of the best website in open source ,,,but i need install telegraf , grafana and influxdb in docker and visulise graf so if possible please upload process..
thanks
Grafana has moved their repository... here's there notes.
https://packagecloud.io/grafana/stable
http://docs.grafana.org/installation/debian/
APT Repository
Create a file /etc/apt/sources.list.d/grafana.list and add the following to it.
deb https://packages.grafana.com/oss/deb stable mainThere is a separate repository if you want beta releases.
deb https://packages.grafana.com/oss/deb beta mainUse the above line even if you are on Ubuntu or another Debian version. Then add our gpg key. This allows you to install signed packages.
curl https://packages.grafana.com/gpg.key | sudo apt-key add -This is Awesome :)
Thanks man! Impeccable setup following this guide.
Dear thanks for this nice tut....
Only i do have 1 problem..
Influx is running, only i not using the the port 8088 and 8086
1 problem i cannot find the config file taht is influx is using:
<code> influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2019-06-10 09:43:06 CEST; 524ms ago Docs: https://docs.influxdata.com/influxdb/ Main PID: 19337 (influxd) CGroup: /system.slice/influxdb.service ??19337 /usr/bin/influxd -config /etc/influxdb/influxdb.conf</code>
And:
<code>
pi@odroid:~$ influxFailed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refusedPlease check your connection settings and ensure 'influxd' is running.pi@odroid:~$</code>
So i hope you can help me..
hi
tnx for your article. I have a problem, when I change the telegraf.conf file , I should drop influx database and create a new database to see the change in grafana. Do you have any solution?
tnx
cd /etc/telegraf/mv telegraf.conf telegraf.conf.default2nd command shows cd /etc/telegraf/ mv telegraf.conf telegraf.conf.default error "mv: cannot move 'telegraf.conf' to 'telegraf.conf.default': Permission denied" How to resolve it.
Put "sudo" at the start of the command.
Repo moved.
sudo curl https://packages.grafana.com/gpg.key | apt-key add -echo 'deb https://packages.grafana.com/oss/deb stable main' > /etc/apt/sources.list.d/grafana.list
OK, I'm a bit confused here. You say to create a new telegraf.conf file by doing
vim telegraf.confand pasting in the config you provide, followed immediately by
telegraf config -input-filter cpu:mem:disk:swap:system -output-filter influxdb > telegraf.confwhich overwrites that config.
Why?
STEP 6 - Firstpart/steps must be:
sudo curl https://packages.grafana.com/gpg.key | sudo apt-key add -
echo 'deb https://packages.grafana.com/oss/deb beta main' > /etc/apt/sources.list.d/grafana.list
Nice one trevor, thx
Thanks a lot. Really helpful
I've just got one thing to say really... Which is WOW! and thank you for your time and effort.
Regards,
J
Hello
I encounter two problem with your: telegraf config -input-filter cpu:mem:disk:swap:system -output-filter influxdb > telegraf.conf
The first is that when you launch it: bash: telegraf.conf: Permission denied So I made a chmod 777 telegraf.conf
Once the chmod done, I relaunch the command and there it overwrites the telegraf.conf file with a completely new one and does not take at all into account what was in the modified telegraf.conf. Can you help me please?
In Raspberry Pi perfect. Thanks.
Excellent, very clear article!
Only comments to add - Rather than use the mentioned links to install Grafana, I went to the Grafana website and got the repository link, which gave a more recent version I think. Also, in Grafana, when doing the Add Data Source, it is essential to mention the hostname/URL (even if the form shows you the same in a greyed 'default value' format). Else you get a 502 error on testing the data source.
Thanks for this nice article and its great that TIG stack works almost 'out of the box' - Hope more solutions deploy and get set up so quickly, without any hassle!
I installed influxdb as your instruction and everything looks the same as your instruction.
But after I type in influx command, it did not show the command line, instead it shows available commands.
The influx cli version is 2.0.0, is it the reason that I cannot see the command line?
If that is the reason, how can I install the older version of the cli.
Thank you in advance.
Hello,
thanks!
i know it's an old article, but i saw this and i was trying to implement it, just i'm having trouble getting the data from NH, hai by any chance a guide on how to implement the script on telegraf?