stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
6.05k stars 1.73k forks source link

Storage Load N/A #292

Open jpcapone opened 10 months ago

jpcapone commented 10 months ago

I have been reading through the posts regarding the Storage Load query but I am not smart enough to glean how to fix it. I am sure that N/A is the value because I am using mount points. When I use the queries I found as a way to resolve the issue I get errors.

Currently this is the query: (node_filesystem_size{fstype="aufs",mountpoint="/"} - node_filesystem_free{fstype="aufs",mountpoint="/"}) / node_filesystem_size{fstype="aufs",mountpoint="/"} * 100

Can anyone help a brother out with some pointers as to how I can fix this?

Arterias1 commented 10 months ago

I ran into the same issue, my fstype is ext4 (check yours by running the query node_filesystem_free_bytes alone to see results)

so I adapted my query like this

(node_filesystem_size_bytes{fstype="ext4"} - node_filesystem_free_bytes{fstype="ext4"}) / node_filesystem_size_bytes{fstype="ext4"} * 100

jpcapone commented 10 months ago

Ok its getting there. When I plug in your query I get this image any ideas? I know this is coming down to coding and formatting but again, not that smart!

Arterias1 commented 10 months ago

Means the query returned two items, you may use filter in Tranformation Data tab to select the one you want to display. Use "Filter By Name".

Here what I have on my side, only one item was returned, you may tick or untick on your side image

jpcapone commented 10 months ago

COOOOLLLL. Thanks man!