Skip to content

Commit

Permalink
do not print user-defined labels in the internal file .stat (#4478)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Mar 11, 2024
1 parent 8634b3a commit 657691b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vfs/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func collectMetrics(registry *prometheus.Registry) []byte {
for _, m := range mf.Metric {
var name = *mf.Name
for _, l := range m.Label {
if *l.Name != "mp" && *l.Name != "vol_name" {
if (name == "juicefs_object_request_durations_histogram_seconds" || name == "juicefs_object_request_data_bytes") && *l.Name == "method" {
name += "_" + *l.Value
}
}
Expand Down

0 comments on commit 657691b

Please sign in to comment.