• Bildschirmfoto 2019-09-27 um 16.13.05.png
    Bildschirmfoto 2019-09-27 um 16.13.05.png

Netdata to InfluxDB exporter

  • GitHub
  • Zero-config, no need to modify netdata settings
  • Uses the Netdata V1 API to pull data (dashboard_url + '/api')
  • Periodically writes data to InfluxDB

Showcase

Demo Page

Screenshot

Quickstart

Install InfluxDB, Netdata and Grafana using Docker Compose in under a minute!

Console:

# Create workspace
mkdir netdata; cd netdata

# Get docker-compose config
wget https://raw.githubusercontent.com/terorie/netdata-influx/master/quickstart/docker-compose.yml

# Start services
docker-compose up -d

# Create netdata database
curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE netdata"

Grafana:

  • Visit http://<your_ip>:3000
  • Login with admin:admin
  • Add InfluxDB datasource
    • URL: http://influxdb:8086
    • Details > Database: netdata
  • Import dashboard with ID 10922 (help)

Exporter Configuration

To change settings or add more charts, use these config variables

varmeaningdefault
$NI_LOG_TIMESTAMPSInclude timestamps in log"true"
$NI_INFLUX_ADDRInflux URL
$NI_INFLUX_DBInflux database
$NI_REFRESH_RATENetdata polling rate"10s"
$NI_NETDATANetdata API URL
$NI_HOST_TAGInflux host tag (recommended)$NI_NETDATA
$NI_CHARTSSpace-separated list of charts to monitorsystem.cpu system.net system.pgpgio
$NI_POINTSNumber of points to fetch (0 for all)0
Get this dashboard:
10922