Add logger webhook metrics in metrics-v3 (#19515)

endpoint: /minio/metrics/v3/cluster/webhook
metrics:
- failed_messages (counter)
- online (gauge)
- queue_length (gauge)
- total_messages (counter)
This commit is contained in:
Shireesh Anjal
2024-05-14 12:57:33 +05:30
committed by GitHub
parent 3c5f2d8916
commit 3bab4822f3
4 changed files with 88 additions and 5 deletions

View File

@@ -42,6 +42,14 @@ These are metrics about the minio process and the node.
|----------|----------------------------------------|
| `/audit` | Metrics related to audit functionality |
### Logger webhook metrics
These are metrics about the minio logger webhooks
| Path | Description |
|-------------------|------------------------------------|
| `/logger/webhook` | Metrics related to logger webhooks |
### System metrics
These are metrics about the minio process and the node.
@@ -286,3 +294,11 @@ The standard metrics group for GoCollector is not shown below.
| `minio_cluster_iam_since_last_sync_millis` | `counter` | Time (in milliseconds) since last successful IAM data sync | |
| `minio_cluster_iam_sync_failures` | `counter` | Number of failed IAM data syncs since server start | |
| `minio_cluster_iam_sync_successes` | `counter` | Number of successful IAM data syncs since server start | |
### `/logger/webhook`
| Name | Type | Help | Labels |
|-----------------------------------------|-----------|----------------------------------------------|------------------------|
| `minio_logger_webhook_failed_messages` | `counter` | Number of messages that failed to send | `server,name,endpoint` |
| `minio_logger_webhook_queue_length` | `gauge` | Webhook queue length | `server,name,endpoint` |
| `minio_logger_webhook_total_message` | `counter` | Total number of messages sent to this target | `server,name,endpoint` |