aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-16 21:57:32 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-16 21:57:32 -0700
commit68d1bef23671f353f65d89b73907edf5ce6918fc (patch)
treefa926abe80a732b73e8c0d2b1966aaa522dea684
parent935639b9086b625fc7006874c6ee491293748f1d (diff)
downloadseaweedfs-68d1bef23671f353f65d89b73907edf5ce6918fc.tar.xz
seaweedfs-68d1bef23671f353f65d89b73907edf5ce6918fc.zip
instance format
-rw-r--r--weed/stats/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go
index d487768af..ce0af342d 100644
--- a/weed/stats/metrics.go
+++ b/weed/stats/metrics.go
@@ -113,5 +113,5 @@ func SourceName(port int) string {
if err != nil {
return "unknown"
}
- return fmt.Sprintf("%s_%d", hostname, port)
+ return fmt.Sprintf("%s:%d", hostname, port)
}