mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Updated Prometheus metrics (#11141)
* Add metrics for nodes online and offline * Add cluster capacity metrics * Introduce v2 metrics
This commit is contained in:
@@ -341,7 +341,7 @@ type gcsGateway struct {
|
||||
minio.GatewayUnsupported
|
||||
client *storage.Client
|
||||
httpClient *http.Client
|
||||
metrics *minio.Metrics
|
||||
metrics *minio.BackendMetrics
|
||||
projectID string
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ func gcsParseProjectID(credsFile string) (projectID string, err error) {
|
||||
}
|
||||
|
||||
// GetMetrics returns this gateway's metrics
|
||||
func (l *gcsGateway) GetMetrics(ctx context.Context) (*minio.Metrics, error) {
|
||||
func (l *gcsGateway) GetMetrics(ctx context.Context) (*minio.BackendMetrics, error) {
|
||||
return l.metrics, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user