Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect graph for node_disk_io_now #58

Closed
candlerb opened this issue Jun 22, 2020 · 5 comments
Closed

Incorrect graph for node_disk_io_now #58

candlerb opened this issue Jun 22, 2020 · 5 comments

Comments

@candlerb
Copy link

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
Copy link
Collaborator

rfrail3 commented Jun 24, 2020

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

@candlerb
Copy link
Author

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 Y axis units are currently set to I/O ops/sec (iops); I think this should be Misc > none. The metric is the queue depth, so it's "number of outstanding requests", which is dimensionless and definitely not a rate of any kind.
  • The Y axis label is set to "I/Os". This is acceptable, as it can be interpreted as "number of I/Os", rather than "I/Os per second". Maybe "Outstanding requests" would be better, but I don't mind too strongly.

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
Copy link
Author

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

@candlerb
Copy link
Author

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
Copy link
Collaborator

rfrail3 commented Jul 22, 2021

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

Thanks Brian,

@rfrail3 rfrail3 reopened this Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants