Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
/ netdata-influx Public archive

Netdata ➡️ InfluxDB metrics exporter & Grafana dashboard

License

Notifications You must be signed in to change notification settings

riptl/netdata-influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netdata to InfluxDB exporter

Showcase

Screenshot

Quickstart

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

GitHub Container Registry

A pre-built lightweight Docker image is available here:

ghcr.io/terorie/netdata-influx

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 -i -XPOST 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, or with auth http://user:pass@influxdb:8086
    • Details > Database: netdata
  • Import dashboard with ID 10922 (help)

Exporter Configuration

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

var meaning default
$NI_LOG_TIMESTAMPS Include timestamps in log "true"
$NI_INFLUX_ADDR Influx URL
$NI_INFLUX_DB Influx database
$NI_REFRESH_RATE Netdata polling rate "10s"
$NI_NETDATA Netdata API URL
$NI_HOST_TAG Influx host tag (recommended) $NI_NETDATA
$NI_CHARTS Space-separated list of charts to monitor system.cpu system.net system.pgpgio
$NI_POINTS Number of points to fetch (0 for all) 0