mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-07-12 16:03:30 +08:00
grafana display
This commit is contained in:
@@ -11,6 +11,10 @@ func (h *S3Handler) recordBackendOperation(b *bucket.BucketInfo, category bucket
|
||||
if b == nil {
|
||||
return
|
||||
}
|
||||
|
||||
if h.metrics != nil {
|
||||
h.metrics.RecordBackendOperation(b.Config.Name, string(category))
|
||||
}
|
||||
if disabled := b.RecordOperation(category); disabled {
|
||||
log.Printf("Bucket %s disabled after exceeding %s-type operation limit", b.Config.Name, category)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user