|
@ -335,6 +335,22 @@ var ( |
|
|
Name: "bucket_traffic_sent_bytes_total", |
|
|
Name: "bucket_traffic_sent_bytes_total", |
|
|
Help: "Total number of bytes sent from an S3 bucket to clients.", |
|
|
Help: "Total number of bytes sent from an S3 bucket to clients.", |
|
|
}, []string{"bucket"}) |
|
|
}, []string{"bucket"}) |
|
|
|
|
|
|
|
|
|
|
|
S3DeletedObjectsCounter = prometheus.NewCounterVec( |
|
|
|
|
|
prometheus.CounterOpts{ |
|
|
|
|
|
Namespace: Namespace, |
|
|
|
|
|
Subsystem: "s3", |
|
|
|
|
|
Name: "deleted_objects", |
|
|
|
|
|
Help: "Number of objects deleted in each bucket.", |
|
|
|
|
|
}, []string{"bucket"}) |
|
|
|
|
|
|
|
|
|
|
|
S3UploadedObjectsCounter = prometheus.NewCounterVec( |
|
|
|
|
|
prometheus.CounterOpts{ |
|
|
|
|
|
Namespace: Namespace, |
|
|
|
|
|
Subsystem: "s3", |
|
|
|
|
|
Name: "uploaded_objects", |
|
|
|
|
|
Help: "Number of objects uploaded in each bucket.", |
|
|
|
|
|
}, []string{"bucket"}) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
@ -380,6 +396,8 @@ func init() { |
|
|
Gather.MustRegister(S3TimeToFirstByteHistogram) |
|
|
Gather.MustRegister(S3TimeToFirstByteHistogram) |
|
|
Gather.MustRegister(S3BucketTrafficReceivedBytesCounter) |
|
|
Gather.MustRegister(S3BucketTrafficReceivedBytesCounter) |
|
|
Gather.MustRegister(S3BucketTrafficSentBytesCounter) |
|
|
Gather.MustRegister(S3BucketTrafficSentBytesCounter) |
|
|
|
|
|
Gather.MustRegister(S3DeletedObjectsCounter) |
|
|
|
|
|
Gather.MustRegister(S3UploadedObjectsCounter) |
|
|
|
|
|
|
|
|
go bucketMetricTTLControl() |
|
|
go bucketMetricTTLControl() |
|
|
} |
|
|
} |
|
|