Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

remove directory prefix when writing metric names #743

Merged
merged 2 commits into from
Oct 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/mt-whisper-importer-reader/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func processFromChan(files chan string, wg *sync.WaitGroup) {
// generate the metric name based on the file name and given prefix
func getMetricName(file string) string {
// remove all leading '/' from file name
file = strings.TrimPrefix(file, *whisperDirectory)
for file[0] == '/' {
file = file[1:]
}
Expand Down