SMB metrics
The following section lists all the SMB metrics::
SMBGlobalStats
- connect count: Number of connections since startup of parent smbd process
- disconnect count: Number of connections closed since startup
- idle: Describes idling behavior of smbds
- count: Number of times the smbd processes are waiting for events in epoll
- time: Times the smbd process spend in epoll waiting for events
- cpu_user time: The user time determined by the get_rusage system call in seconds
- cpu_system time: The system time determined by the get_rusage system call in seconds
- request count: Number of SMB requests since startup
- push_sec_ctx: Smbds switch between the user and the root
security context; push allows to put the current context onto a stack
- count: Number of time the current security context is pushed onto the stack
- time: The time it takes to put the current security context; this includes all syscalls required to save the current context on the stack
- pop_sec_ctx: Getting the last security context from the stack and restore it
- count: Number of times the current security context is restored from the stack
- time: The time it takes to put the restore the security context from the stack; this includes all syscalls required to get restore the security context from the stack
- set_sec_ctx:
- count: Number of times the security context is set for user
- time: The time it takes to set the security context for user
- set_root_sec_ctx:
- count: Number of times the security context is set for user
- time: The time it takes to set the security context for user
SMB2 metrics
These metrics are available for all SMB2 requests such as create,
read, write, and find:
- op_count: Number of times the corresponding SMB request has been called.
- op_idle
- for notify: Time between notification request and a corresponding notification being sent
- for oplock breaks: Time waiting until an oplock is broken
- for all others the value is always zero
- op_inbytes: Number of bytes received for the corresponding request including protocol headers
- op_outbytes: Number of bytes sent for the corresponding request including protocol headers.
- op_time: The total amount of time spent for all corresponding SMB2 requests.