Grafana

Q'center app, Helpdesk app
Post Reply
zerocrash
New here
Posts: 4
Joined: Tue Mar 08, 2016 1:26 am

Grafana

Post by zerocrash »

Hi,

Did someone manage to create a nice Grafana Dashboard with QNAP system stats like cpu, hdd, memory, processes, etc?
To be more precise, did someone manage to pull all that data via SNMP and Telegraf into InfluxDB?

A few Dashboard examples:
https://denlab.io/setup-a-wicked-grafan ... -anything/
https://grafana.com/dashboards/1109
https://grafana.com/dashboards/1727
EsEnZeT
Getting the hang of things
Posts: 58
Joined: Sun Sep 30, 2018 2:43 am

Re: Grafana

Post by EsEnZeT »

zerocrash wrote:Hi,

Did someone manage to create a nice Grafana Dashboard with QNAP system stats like cpu, hdd, memory, processes, etc?
To be more precise, did someone manage to pull all that data via SNMP and Telegraf into InfluxDB?

A few Dashboard examples:
https://denlab.io/setup-a-wicked-grafan ... -anything/
https://grafana.com/dashboards/1109
https://grafana.com/dashboards/1727

https://www.dev-eth0.de/blog/2016/12/06 ... _snmp.html
zerocrash
New here
Posts: 4
Joined: Tue Mar 08, 2016 1:26 am

Re: Grafana

Post by zerocrash »

EsEnZeT wrote:
zerocrash wrote:Hi,

Did someone manage to create a nice Grafana Dashboard with QNAP system stats like cpu, hdd, memory, processes, etc?
To be more precise, did someone manage to pull all that data via SNMP and Telegraf into InfluxDB?

A few Dashboard examples:
https://denlab.io/setup-a-wicked-grafan ... -anything/
https://grafana.com/dashboards/1109
https://grafana.com/dashboards/1727

https://www.dev-eth0.de/blog/2016/12/06 ... _snmp.html
Thanks, yes, that works, I have gone through that one last week but that one is only for the network traffic and I am not getting other system info, like cpu, ram, hdd's

If you have that running can you share your config file?
EsEnZeT
Getting the hang of things
Posts: 58
Joined: Sun Sep 30, 2018 2:43 am

Re: Grafana

Post by EsEnZeT »

zerocrash wrote:
EsEnZeT wrote:
zerocrash wrote:Hi,

Did someone manage to create a nice Grafana Dashboard with QNAP system stats like cpu, hdd, memory, processes, etc?
To be more precise, did someone manage to pull all that data via SNMP and Telegraf into InfluxDB?

A few Dashboard examples:
https://denlab.io/setup-a-wicked-grafan ... -anything/
https://grafana.com/dashboards/1109
https://grafana.com/dashboards/1727

https://www.dev-eth0.de/blog/2016/12/06 ... _snmp.html
Thanks, yes, that works, I have gone through that one last week but that one is only for the network traffic and I am not getting other system info, like cpu, ram, hdd's

If you have that running can you share your config file?
Unfortunately I don't have it running because of lack of time, sorry :roll:
pombeirp
Starting out
Posts: 26
Joined: Thu Aug 27, 2015 2:10 am

Re: Grafana

Post by pombeirp »

I have created one https://gitlab.com/pedropombeiro/qnapexporter/ recently:

Image

Along with the dashboard, I created my own small Go program to scrape the QNAP/UPS, as I found the nodeexporter app to consume too much CPU for regular usage. This program is so small and quick that you won't notice it's there. It exposes an HTTP server with some endpoints, including a summary one.

Additionally, it also exposes any UPS connected to the NAS:

Image

It has the unique feature that it allows receiving QNAP notifications as Grafana alerts, so you can easily see on the dashboard what caused a spike in CPU or network (e.g. an app install, disk scan, etc.)
dawsonkm
Getting the hang of things
Posts: 62
Joined: Sun May 01, 2016 9:20 am
Location: New Jersey, USA

Re: Grafana

Post by dawsonkm »

Looks nice pombeirp. Good job
TS-431X2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5 Using 10GBE
TS-431X2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5 Using 10GBE
TS-431P2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5
TS-431P2 QTS 4.4.3.1439 - Static Vol 4 x 8TB Hdd Raid 5
TVS-1282T QTS 4.5.4.2012- Static Vol 8 x 16TB Hdd Raid 6, Static Vol 4 X 8TB SSD Raid 5 Using 10GBE
syncthing
Know my way around
Posts: 136
Joined: Mon Aug 13, 2018 4:58 pm

Re: Grafana

Post by syncthing »

looks nice
how can I download the latest qnapexporter executable
on the release page I can download the source code packages but not the qnapexporter link as it is password protected
pombeirp
Starting out
Posts: 26
Joined: Thu Aug 27, 2015 2:10 am

Re: Grafana

Post by pombeirp »

You probably need to create a GitLab account. The project is already public, so there isn't much else I can do. I've attached the latest executable, in any case.
You do not have the required permissions to view the files attached to this post.
syncthing
Know my way around
Posts: 136
Joined: Mon Aug 13, 2018 4:58 pm

Re: Grafana

Post by syncthing »

that's possible, didn't register and was just curious why I only can download the source code
In the meantime I just downloaded from here and finally setup grafana etc for testing purposes
the dashboard is really nice

only problems on my NAS:
the % cpu usage is completely wrong shown - always 99%
and only the first volume is shown

I guess right know I don't have the knowledge to find out why
User avatar
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

Re: Grafana

Post by peelos »

This looks great, are you still maintaining it? Looks like it has potential to enable additional notifications to services such as telegram aswell.. Has anyone tried that?
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
Post Reply

Return to “NAS Management”