Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #15 from mlamina/metric-name-fix
Browse files Browse the repository at this point in the history
Add replacement of '/' with '_' for metric names
  • Loading branch information
SqiSch authored Dec 14, 2016
2 parents 0a26b40 + 7867423 commit 06decfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func convertOutput(result [][]string) (metrics []metric, err error) {
res[0] = strings.Replace(res[0], "-", "_", -1)
res[0] = strings.Replace(res[0], ".", "_", -1)
res[0] = strings.Replace(res[0], "+", "p", -1)
res[0] = strings.Replace(res[0], "/", "_", -1)
res[0] = strings.Replace(res[0], "%", "pct", -1)

value, err = convertValue(res[1], res[2])
Expand Down

0 comments on commit 06decfb

Please sign in to comment.