rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.17k stars 445 forks source link

Incorrect graph for node_disk_io_now #58

Closed candlerb closed 3 years ago

candlerb commented 4 years ago

In the panel "Disk Detail" is a graph "Disk IOs Current In Progress". The query it uses is:

irate(node_disk_io_now{instance=~"$node:$port",job=~"$job"}[5m])

However, node_disk_io_now is not a counter, it's a gauge:

# HELP node_disk_io_now The number of I/Os currently in progress.
# TYPE node_disk_io_now gauge

The io_now value is field 9 documented here:

Field  9 -- # of I/Os currently in progress
    The only field that should go to zero. Incremented as requests are
    given to appropriate struct request_queue and decremented as they finish.

Therefore I believe the irate(...) wrapper needs to be removed. This is already an instantaneous snapshot of the outstanding I/O requests.

rfrail3 commented 4 years ago

Thanks for pointing the issue, it's is fixed now.

candlerb commented 3 years ago

I just checked the latest install of 1860 (node-exporter-full_rev23.json), and the panel Storage Disk > Instantaneous Queue Size still shows:

rate(node_disk_io_now{instance="$node",job="$job"}[$__rate_interval])

I believe it should be instead:

node_disk_io_now{instance="$node",job="$job"}

In addition:

The corrected panel would look like this:

image

This shows the number of active requests is either 0 or 1 at each sample time, which is correct.

candlerb commented 3 years ago

(Aside: I can prepare a PR for this, but I have other graphs I want to check first)

candlerb commented 3 years ago

Since I'm running Grafana 8.0.5, and the dashboard is for 7.3.7, the diffs turned out to be rather large, especially because large chunks of indentation have changed due to a change in panels/targets layout.

Probably best just to apply the two changes by hand:

-              "expr": "rate(node_disk_io_now{instance=\"$node\",job=\"$job\"}[$__rate_interval])",
+          "expr": "node_disk_io_now{instance=\"$node\",job=\"$job\"}",
...
-              "format": "iops",
+          "format": "none",
rfrail3 commented 3 years ago

It was a regression on d52e0ec13cbd5bc916eedf6170f1ee99e914d889 Let me fix and check the other changes that you reported over the current dashboard.

Thanks Brian,