Skip to content

Commit

Permalink
Apply Harsha suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis Elleuch authored and harshavardhana committed Jan 25, 2022
1 parent 7a16cfb commit 5a72c0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/metrics-v2.go
Expand Up @@ -1605,7 +1605,7 @@ func getLocalStorageMetrics() *MetricsGroup {

func getLocalXLStorageMetrics() *MetricsGroup {
mg := &MetricsGroup{
cacheInterval: 10 * time.Second,
cacheInterval: 3 * time.Second,
}
mg.RegisterRead(func(ctx context.Context) (metrics []Metric) {
objLayer := newObjectLayerFn()
Expand All @@ -1622,7 +1622,7 @@ func getLocalXLStorageMetrics() *MetricsGroup {
metrics = append(metrics, Metric{
Description: getNodeDiskAPILatencyMD(),
Value: float64(val / 1000),
VariableLabels: map[string]string{"disk": disk.DrivePath, "api": "xl." + apiName},
VariableLabels: map[string]string{"disk": disk.DrivePath, "api": "storage." + apiName},
})
}
}
Expand Down

0 comments on commit 5a72c0b

Please sign in to comment.