Skip to content

Commit

Permalink
Merge branch 'debug' into 'master'
Browse files Browse the repository at this point in the history
modify hostname format

See merge request !39
  • Loading branch information
zhangye committed Dec 17, 2016
2 parents af4adac + 01ee6d4 commit 9dbbde3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.12
0.7.12a
3 changes: 2 additions & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ func SendMemCap(cpumemmap map[string]types.CPUAndMem, tag string) {
data[node] = float64(cpuandmem.MemCap)
}
host := os.Getenv("HOSTNAME")
err := g.Statsd.Send(data, host, tag)
clean_host := strings.Replace(host, ".", "-", -1)
err := g.Statsd.Send(data, clean_host, tag)
if err != nil {
log.Errorf("Error occured while sending data to statsd: %v", err)
}
Expand Down

0 comments on commit 9dbbde3

Please sign in to comment.