replication: change metrics API#1833
Merged
Merged
Conversation
8 tasks
vadmeste
reviewed
May 29, 2023
Contributor
|
@poornas Instead of trying to do many small corrections here is my proposal: // XferStats holds transfer rate for uploads
type XferStats struct {
// Totals
Count int64 `json:"count"`
Bytes int64 `json:"bytes"`
// Averages - 1 minute?
AvgBytes float64 `json:"avgBytes"`
PeakBytes float64 `json:"peakBytes"`
CurrBytes float64 `json:"currBytes"`
AvgCount float64 `json:"avgCount"`
PeakCount float64 `json:"peakCount"`
CurrCount float64 `json:"currCount"`
}
type NodeQueueStats struct {
Name string `json:"name"`
Uptime int64 `json:"uptime"`
ActiveWorkers int `json:"activeWorkers"`
QueuedCount int `json:"queuedCount"`
QueuedBytes int64 `json:"queuedBytes"`
// Transfer statistics For objects larger/smaller than XXXKB.
Large XferStats `json:"large"`
Small XferStats `json:"small"`
}
type QueueStats struct {
Nodes []NodeQueueStats `json:"nodes"`
}
Still needs more docs. |
for additional info to be passed back.
Contributor
Author
Thanks @klauspost , adopted some of the suggestions - the xfer stats refer to rate/sec and different from the in-queue stats, so kept it separate. |
Contributor
(also some |
harshavardhana
approved these changes
Jun 21, 2023
harshavardhana
requested changes
Jun 21, 2023
harshavardhana
requested changes
Jun 21, 2023
Member
|
@poornas PTAL |
vadmeste
reviewed
Jun 27, 2023
harshavardhana
approved these changes
Jun 28, 2023
poornas
added a commit
to poornas/minio-go
that referenced
this pull request
Jul 19, 2023
continuing from minio#1833
poornas
added a commit
to poornas/minio-go
that referenced
this pull request
Jul 19, 2023
continuing from minio#1833
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
for additional info to be passed back.