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)

Add comment

Please register in our forum first to comment.

Comments

By: Chris Kozma

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!

By: Mayur Patel

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 

 

By: MattG

Grafana has moved their repository... here's there notes.

https://packagecloud.io/grafana/stable

By: bubee

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 main

There is a separate repository if you want beta releases.

deb https://packages.grafana.com/oss/deb beta main

Use 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 -

By: shoab

This is Awesome :)

By: Hugo

Thanks man! Impeccable setup following this guide. 

By: Dombo71

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..

 

By: naeimeh

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

By: Asad Ali

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.

By: Jon

Put "sudo" at the start of the command.

By: Ty

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

By: Jon

OK, I'm a bit confused here.  You say to create a new telegraf.conf file by doing 

vim telegraf.conf

and pasting in the config you provide, followed immediately by 

telegraf config -input-filter cpu:mem:disk:swap:system -output-filter influxdb > telegraf.conf

which overwrites that config.  

Why?

By: Trebbor38

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

By: Matt

Nice one trevor, thx

By: george raveen

Thanks a lot. Really helpful

By: Jamie Brindle

 I've just got one thing to say really... Which is WOW! and thank you for your time and effort.

Regards,

 

J

By: Kestouf

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?

By: Ailesdek

In Raspberry Pi perfect. Thanks.

By: Arun John

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!

By: chun

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.

By: k

Hello,

thanks!

By: Manuel

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?