Add cluster scanner metrics in metrics-v3 (#19517)

endpoint: /minio/metrics/v3/cluster/scanner
metrics:
 - bucket_scans_finished (counter)
 - bucket_scans_started (counter)
 - directories_scanned (counter)
 - last_activity_nano_seconds (gauge)
 - objects_scanned (counter)
 - versions_scanned (counter)
This commit is contained in:
Shireesh Anjal
2024-05-25 00:59:25 +05:30
committed by GitHub
parent 443c93c634
commit a591e06ae5
3 changed files with 99 additions and 0 deletions

View File

@@ -58,6 +58,14 @@ These are metrics about the minio notification functionality
|----------|------------------------------------------------------|
| `/notification` | Metrics related to notification functionality |
### Scanner metrics
These are metrics about the minio scanner
| Path | Description |
|------------|--------------------------------------|
| `/scanner` | Metrics related to the MinIO scanner |
### System metrics
These are metrics about the minio process and the node.
@@ -358,3 +366,14 @@ The standard metrics group for GoCollector is not shown below.
| `minio_notification_events_errors_total` | `counter` | Events that were failed to be sent to the targets | `server` |
| `minio_notification_events_sent_total` | `counter` | Total number of events sent to the targets | `server` |
| `minio_notification_events_skipped_total` | `counter` | Events that were skipped to be sent to the targets due to the in-memory queue being full | `server` |
### `/scanner`
| Name | Type | Help | Labels |
|--------------------------------------------|-----------|------------------------------------------------------------|----------|
| `minio_scanner_bucket_scans_finished` | `counter` | Total number of bucket scans finished since server start | `server` |
| `minio_scanner_bucket_scans_started` | `counter` | Total number of bucket scans started since server start | `server` |
| `minio_scanner_directories_scanned` | `counter` | Total number of directories scanned since server start | `server` |
| `minio_scanner_last_activity_seconds` | `gauge` | Time elapsed (in seconds) since last scan activity | `server` |
| `minio_scanner_objects_scanned` | `counter` | Total number of unique objects scanned since server start | `server` |
| `minio_scanner_versions_scanned` | `counter` | Total number of object versions scanned since server start | `server` |