mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
prometheus: Fix internode stats (#17594)
Internode calculation was done inside S3 handlers, fix it by moving it to internode handlers. Remove admin stats since it is not used.
This commit is contained in:
+4
-4
@@ -2018,20 +2018,20 @@ func getNetworkMetrics() *MetricsGroup {
|
||||
})
|
||||
metrics = append(metrics, Metric{
|
||||
Description: getInterNodeSentBytesMD(),
|
||||
Value: float64(connStats.TotalOutputBytes),
|
||||
Value: float64(connStats.internodeOutputBytes),
|
||||
})
|
||||
metrics = append(metrics, Metric{
|
||||
Description: getInterNodeReceivedBytesMD(),
|
||||
Value: float64(connStats.TotalInputBytes),
|
||||
Value: float64(connStats.internodeInputBytes),
|
||||
})
|
||||
}
|
||||
metrics = append(metrics, Metric{
|
||||
Description: getS3SentBytesMD(),
|
||||
Value: float64(connStats.S3OutputBytes),
|
||||
Value: float64(connStats.s3OutputBytes),
|
||||
})
|
||||
metrics = append(metrics, Metric{
|
||||
Description: getS3ReceivedBytesMD(),
|
||||
Value: float64(connStats.S3InputBytes),
|
||||
Value: float64(connStats.s3InputBytes),
|
||||
})
|
||||
return
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user