mirror of
https://github.com/minio/minio.git
synced 2025-12-06 07:42:32 -05:00
Add Support for Cache and S3 related metrics in Prometheus endpoint (#8591)
This PR adds support below metrics - Cache Hit Count - Cache Miss Count - Data served from Cache (in Bytes) - Bytes received from AWS S3 - Bytes sent to AWS S3 - Number of requests sent to AWS S3 Fixes #8549
This commit is contained in:
committed by
Harshavardhana
parent
d2dc964cb5
commit
3df7285c3c
@@ -37,7 +37,7 @@ func filterMatchingPrefix(entries []string, prefixEntry string) []string {
|
||||
if start == end {
|
||||
break
|
||||
}
|
||||
if hasPrefix(entries[start], prefixEntry) {
|
||||
if HasPrefix(entries[start], prefixEntry) {
|
||||
break
|
||||
}
|
||||
start++
|
||||
@@ -46,7 +46,7 @@ func filterMatchingPrefix(entries []string, prefixEntry string) []string {
|
||||
if start == end {
|
||||
break
|
||||
}
|
||||
if hasPrefix(entries[end-1], prefixEntry) {
|
||||
if HasPrefix(entries[end-1], prefixEntry) {
|
||||
break
|
||||
}
|
||||
end--
|
||||
@@ -95,7 +95,7 @@ func doTreeWalk(ctx context.Context, bucket, prefixDir, entryPrefixMatch, marker
|
||||
|
||||
for i, entry := range entries {
|
||||
pentry := pathJoin(prefixDir, entry)
|
||||
isDir := hasSuffix(pentry, SlashSeparator)
|
||||
isDir := HasSuffix(pentry, SlashSeparator)
|
||||
|
||||
if i == 0 && markerDir == entry {
|
||||
if !recursive {
|
||||
|
||||
Reference in New Issue
Block a user