-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add mountstats collector for detailed NFS statistics #367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woot
Awesome. @SuperQ, do you want me to tack more changes onto this PR, or make a new one for the additional stats? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, just the confusion about the "items in queue" metrics, if they are Gauges or Counters. (If the latter, the help string should be reworded, something like "total number of items added to the queue" or something.)
|
||
NFSTransportBacklogQueueTotal: prometheus.NewDesc( | ||
prometheus.BuildFQName(Namespace, subsystem, "transport_backlog_queue_total"), | ||
"Number of items in the RPC backlog queue.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like it could go down, i.e. it should be a Gauge?
|
||
NFSTransportSendingQueueTotal: prometheus.NewDesc( | ||
prometheus.BuildFQName(Namespace, subsystem, "transport_sending_queue_total"), | ||
"Number of items in the RPC transmission sending queue.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, help string suggests a Gauge.
|
||
NFSTransportPendingQueueTotal: prometheus.NewDesc( | ||
prometheus.BuildFQName(Namespace, subsystem, "transport_pending_queue_total"), | ||
"Number of items in the RPC transmission pending queue.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
@beorn7 good call. According the docs I followed while parsing these stats:
Based on these descriptions, I believe your suggestion of "total number of items added to the queue" will be adequate. |
@beorn7 Updated. Please take a look at your convenience. |
In lack of more qualified reviewers, I'll approve and merge. |
First pass at a
mountstats
collector for detailed NFS statistics. There are ~25 more statistics I can currently add but I wanted to check in my work before doing a bunch more.Fixes #366 .