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

avg RTT in mountstats metrics #2550

Open
sreejith-vk opened this issue Dec 15, 2022 · 7 comments
Open

avg RTT in mountstats metrics #2550

sreejith-vk opened this issue Dec 15, 2022 · 7 comments

Comments

@sreejith-vk
Copy link

sreejith-vk commented Dec 15, 2022

Host operating system: output of uname -a

uname -a

Linux<> 4.12.14-150100.197.117-default #1 SMP Sat Jul 9 11:46:36 UTC 2022 (8d500b6) x86_64 x86_64 x86_64 GNU/Linux

mountstats metrics provide a lot of statistics. The statistics can only be guessed based on the name. I could not find any documentation on the metric and how the statistics can be interpreted.

For example, the nfsiostat command provides me following data :

 nfsiostat 1  1 <mountpoint>

<mountdevice> mounted on <mountpoint>

           ops/s       rpc bklog
          12.140           0.000

read:              ops/s            kB/s           kB/op         retrans    avg RTT (ms)   avg exe (ms)
                   0.687         135.679         197.518        0 (0.0%)          9.235          9.876
write:             ops/s            kB/s           kB/op         retrans    avg RTT (ms)    avg exe (ms)
                   1.713          67.570          39.446        0 (0.0%)           3.700           3.767

I am trying to figure out if avg RTT can be analysed using node exporter.

avg RTT (ms) - This is the duration from the time that client's kernel sends the RPC request until the time it receives the reply.

When I look at mountstats metrics I could find a few metrics related:

node_mountstats_nfs_operations_major_timeouts_total{export="<MASKED>",mountaddr="<MASKED>",operation="READ",protocol="tcp"} 0
node_mountstats_nfs_operations_queue_time_seconds_total{export="MASKED",mountaddr="MASKED",operation="READ",protocol="tcp"} 120.876
node_mountstats_nfs_operations_request_time_seconds_total{export="MASKED",mountaddr="MASKED",operation="READ",protocol="tcp"} 1935.914
node_mountstats_nfs_operations_response_time_seconds_total{export="MASKED",mountaddr="MASKED",operation="READ",protocol="tcp"} 1810.259

Do we already have avg RTT?
As this is handy information for troubleshooting, can we add this information if it's feasible?

@sreejith-vk sreejith-vk changed the title Documentation request for mountstats metrics avg RTT in mountstats metrics Dec 15, 2022
@discordianfish
Copy link
Member

Seems like a reasonable request. As usual, parsing should go into procfs.

@ksankeerth
Copy link

Hi @discordianfish,
Hope you're well!
Can I send a PR for this? Will you be able to review?

Thanks!

@discordianfish
Copy link
Member

@ksankeerth yes! Feel free to assign the PR to me

@ksankeerth
Copy link

@ksankeerth yes! Feel free to assign the PR to me

I opened a PR in procfs. prometheus/procfs#487 Please check. Once it's merged, I'll send a PR to node_exporter.

Thanks

@KelvinTanJF
Copy link

Hi, can I check what is the progress on enabling the nfsiostats metric such as retrans, avg RTT and avg exe in node exporter please?

@ksankeerth
Copy link

@KelvinTanJF, PR for procfs got merged recently prometheus/procfs#487. I think, PR for this node_exporter can be merged after review.

@KelvinTanJF
Copy link

Hi @ksankeerth, noted with thanks. Can I check with you what is the targeted release date please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants