zottelbeyer / QNAP-collectdinfluxdbgrafana

A simple to use Grafana Dashboard for your QNAP NAS
67 stars 7 forks source link

QNAP Collectd Influxdb Grafana Container and Dashboard

Dashboard Image

Prerequisites

Getting started:

ssh admin@[YOURNASIP]
cd /share/Container
wget https://github.com/zottelbeyer/QNAP-collectdinfluxdbgrafana/archive/master.zip
unzip master.zip
cd QNAP-collectdinfluxdbgrafana-master
    docker compose up -d

Updating

Requires a git installation with access to the location of your cloned directory.

# Stop the Containers and remove old images.
docker compose down --rmi all
# get updates from git repo (with another machine if necessary)
git pull
# rebuild the stack
docker compose up -d --build

Modifying

A Note on Security

This repo is not yet optimized to be secure. Use at your own risk and DO NOT EXPOSE IT TO THE INTERNET!

Dashboard

The Dasboard itself can be found at https://grafana.com/grafana/dashboards/11968 or in the folder /grafana/QNAP-collectd-external.json

Troubleshooting

If your Dashboard doesn't show any data proceed in these steps:

  1. Restart your collectd container
    # ssh into your NAS
    docker restart qnap-collectd
  2. Check influxdb is getting data from collectd
    # ssh into your NAS
    docker exec -it influxdb /bin/bash
    influx
    > use collectd
    > show series
    # should return lots of entries
  3. Check the connection between Grafana and InfluxDB
    Open your browser to http://[YOURNASIP]:3000/datasources/edit/1/
    Run the built in Connection test
  4. Open an Issue including the results

Testing

This setup has been tested on my TS-832X with 8 Disks and a NVMe SSD Cache. Let me know if this config works for you.

Known Issues/ToDo

Sources Utilized: