-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing smbclient collector (#1408)
Co-authored-by: Bob Allegretti <ballegre@gmail.com> Co-authored-by: Jan-Otto Kröpke <github@jkroepke.de> Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de>
- Loading branch information
1 parent
9bf84fb
commit be25d79
Showing
7 changed files
with
525 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# smbclient collector | ||
The smbclient collector collects metrics from MS SmbClient hosts through perflib | ||
||| | ||
-|- | ||
Metric name prefix | `windows_smbclient` | ||
Classes | [Win32_PerfRawData_SMB](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-smb/)<br/> | ||
Enabled by default? | No | ||
|
||
## Flags | ||
|
||
### `--collectors.smbclient.list` | ||
Lists the Perflib Objects that are queried for data along with the perlfib object id | ||
|
||
### `--collectors.smbclient.enabled` | ||
Comma-separated list of collectors to use, for example: `--collectors.smbclient.enabled=ServerShares`. Matching is case-sensitive. Depending on the smb protocol version not all performance counters may be available. Use `--collectors.smbclient.list` to obtain a list of supported collectors. | ||
|
||
## Metrics | ||
Name | Description | Type | Labels | ||
-----|-------------|------|------- | ||
`windows_smbclient_data_queue_seconds_total` | Seconds requests waited on queue on this share | counter | `server`, `share`| | ||
`windows_smbclient_read_queue_seconds_total` | Seconds read requests waited on queue on this share | counter | `server`, `share`| | ||
`windows_smbclient_write_queue_seconds_total` | Seconds write requests waited on queue on this share | counter | `server`, `share`| | ||
`windows_smbclient_request_seconds_total` | Seconds waiting for requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_stalls_total` | The number of requests delayed based on insufficient credits on this share | counter | `server`, `share`| | ||
`windows_smbclient_requests_queued` | The point in time (current) number of requests outstanding on this share | counter | `server`, `share`| | ||
`windows_smbclient_data_bytes_total` | The bytes read or written on this share | counter | `server`, `share`| | ||
`windows_smbclient_requests_total` | The requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_metadata_requests_total` | The metadata requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_read_bytes_via_smbdirect_total` | The bytes read from this share via RDMA direct placement | TBD | `server`, `share`| | ||
`windows_smbclient_read_bytes_total` | The bytes read on this share | counter | `server`, `share`| | ||
`windows_smbclient_read_requests_via_smbdirect_total` | The read requests on this share via RDMA direct placement | TBD | `server`, `share`| | ||
`windows_smbclient_read_requests_total` | The read requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_turbo_io_reads_total` | The read requests that go through Turbo I/O | TBD | `server`, `share`| | ||
`windows_smbclient_turbo_io_writes_total` | The write requests that go through Turbo I/O | TBD | `server`, `share`| | ||
`windows_smbclient_write_bytes_via_smbdirect_total` | The written bytes to this share via RDMA direct placement | TBD | `server`, `share`| | ||
`windows_smbclient_write_bytes_total` | The bytes written on this share | counter | `server`, `share`| | ||
`windows_smbclient_write_requests_via_smbdirect_total` | The write requests to this share via RDMA direct placement | TBD | `server`, `share`| | ||
`windows_smbclient_write_requests_total` | The write requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_read_seconds_total` | Seconds waiting for read requests on this share | counter | `server`, `share`| | ||
`windows_smbclient_write_seconds_total` | Seconds waiting for write requests on this share | counter | `server`, `share`| | ||
## Useful queries | ||
``` | ||
# Average request queue length (includes read and write). | ||
irate(windows_smbclient_data_queue_seconds_total) | ||
# Request latency milliseconds (includes read and write). | ||
irate(windows_smbclient_request_seconds_total) / irate(windows_smbclient_requests_total) * 1000 | ||
``` | ||
## Alerting examples | ||
_This collector does not yet have alerting examples, we would appreciate your help adding them!_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.