Skip to content

Commit

Permalink
fix the bug of the name change for the 'juicefs_object_request_data_b…
Browse files Browse the repository at this point in the history
…ytes' metric (#3853)
  • Loading branch information
zhijian-pro authored Jun 26, 2023
1 parent e61f6a2 commit 9f1863f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/vfs/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func collectMetrics(registry *prometheus.Registry) []byte {
continue
}
for _, m := range mf.Metric {
var name = *mf.Name
for _, l := range m.Label {
if *l.Name != "mp" && *l.Name != "vol_name" {
name += "_" + *l.Value
Expand Down

0 comments on commit 9f1863f

Please sign in to comment.