Skip to content

Commit

Permalink
Fix handling of metrics prefix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlc committed Apr 4, 2022
1 parent 253ecbd commit 59845a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafkazk/zookeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ func (z *ZKHandler) getPath(p string) string {
}

func (z *ZKHandler) getMetricsPath(p string) string {
if z.Prefix != "" {
if z.MetricsPrefix != "" {
return fmt.Sprintf("/%s/%s", z.MetricsPrefix, strings.TrimLeft(p, "/"))
}

Expand Down

0 comments on commit 59845a0

Please sign in to comment.