Skip to content

Commit 9dbbde3

Browse files
author
zhangye
committed
Merge branch 'debug' into 'master'
modify hostname format See merge request !39
2 parents af4adac + 01ee6d4 commit 9dbbde3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.12
1+
0.7.12a

utils/utils.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ func SendMemCap(cpumemmap map[string]types.CPUAndMem, tag string) {
144144
data[node] = float64(cpuandmem.MemCap)
145145
}
146146
host := os.Getenv("HOSTNAME")
147-
err := g.Statsd.Send(data, host, tag)
147+
clean_host := strings.Replace(host, ".", "-", -1)
148+
err := g.Statsd.Send(data, clean_host, tag)
148149
if err != nil {
149150
log.Errorf("Error occured while sending data to statsd: %v", err)
150151
}

0 commit comments

Comments
 (0)