Skip to content

Commit

Permalink
Update discoverer.go
Browse files Browse the repository at this point in the history
Fixes a bug that prevents prometheus from reading the output file, due to the presence of spaces in network names (fixes issue promhippie#142)
  • Loading branch information
mrik974-gig committed Oct 28, 2022
1 parent 7e2c405 commit b44b039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/action/discoverer.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func normalizeLabel(val string) string {
"-": "_",
".": "_",
",": "_",
" ": "_",
}

for original, replaced := range replaces {
Expand Down

0 comments on commit b44b039

Please sign in to comment.