Skip to content

Commit

Permalink
Merge pull request #398 from nmlc/master
Browse files Browse the repository at this point in the history
Fix handling of metrics prefix flag
  • Loading branch information
jamiealquiza committed May 10, 2022
2 parents 0052781 + 59845a0 commit 6abbf42
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 6abbf42

Please sign in to comment.