Netdata with InfluxDB backend

In this article we will see how to install and configure Netdata with InfluxDB backend

Netdata is a popular Monitoring tool  which does realtime performance and health monitoring of your servers and applications. It is fast and efficient, you can see the metrics in almost realtime. It is designed to permanently run on all systems, it uses very low cpu and memory resources.

netdata-influxdb

One disadvantage with Netdata is that, it is not centralized. Unlike traditional monitoring tools , Netdata run on the machines and save metrics there itself. So if the machine is down we cannot see the data. Also, if the disk fails, we might not retrieve historical metrics.

Fortunately, Netdata supports archival of metrics data to popular TimeSeries datastores , like influxdb, Prometheus, Graphite etc.

Installing Netdata

Netdata installation steps are Documented here in another post. Please go though it.

Install Influxdb

Install InfluxDB on Centos & RedHat

On Centos , InfluxDB can be installed using YUM

1. Enable Influxdb repository

Open the file in vi editor

Add following line to the file

 

Once repository is added to the yum configuration, you can install and start the InfluxDB service by running:

Install InfluxDB on Debian/Ubuntu

On Ubuntu/Debian, we can install InfluxDB using apt-get utility

Install InfluxDB on Ubuntu

Add the InfluxDB repository using below commands

Then Install and start InfluxDB using

Install InfluxDB on Debian

Add the InfluxDB repository using below commands

Then Install and start InfluxDB using

Once InfluxDB started, you can connect to it and check the Data available in it.

You can see that no databases are created yet.

Now let us configure Netdata with influxdb backend
Open netdata configuration file /etc/netdata/netdata.conf

Configuration variables are self explanatory. InfluxDB is listening on UDP port “25836” , so we are configuring Netdata to send metrics to following end point

Once done, restart Netdata using

After this you should be able to see the metrics inside InfluxDB. To check this, we connect to InfluxDB again

You can see that a new database named “telegraf” was created and system metrics are stored in that database. Now we can visualize this metrics data using Grafana or InfluxDB UI.

I have created a video on how to add and visualize InfluxDB data using Grafana

 

Please let me know if you face any issue ????

 

6 thoughts on “Netdata with InfluxDB backend

  • September 27, 2017 at 8:56 am
    Permalink

    i am getting error while sending data to influxdb. netdata and influxdb both are on same host. Beckend configuration is as below

    Reply
    • May 3, 2017 at 7:19 am
      Permalink

      Can you paste error message here? Also, please make sure influxdb is listening on port 25836. use following command

      Reply
    • September 3, 2017 at 6:09 am
      Permalink

      telegraf is not needed, netdata can send metrics directly to Influx

      Reply
  • November 13, 2017 at 5:06 pm
    Permalink

    Why is it showing 5 CPUs usage.

    Reply
    • April 26, 2017 at 9:02 am
      Permalink

      Hi Luvpreet,

      Reply

Leave a Reply to Luvpreet Cancel reply

Your email address will not be published. Required fields are marked *