Remove pid from stats. (#2182)

This commit is contained in:
Jacob Hoffman-Andrews 2016-09-16 10:56:45 -07:00 committed by Roland Bracewell Shoemaker
parent 87fee12d6c
commit 68f8b686af
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ func (fba FBAdapter) BumpHistogram(_ string, _ float64) {
// Statter implements the statsd.Statter interface but
// appends the name of the host the process is running on
// and its PID to the end of every stat name
// to the end of every stat name
type Statter struct {
suffix string
s statsd.Statter
@ -101,7 +101,7 @@ func NewStatter(addr, prefix string) (Statter, error) {
if err != nil {
return Statter{}, err
}
suffix := fmt.Sprintf(".%s.%d", host, os.Getpid())
suffix := fmt.Sprintf(".%s", host)
s, err := statsd.NewClient(addr, prefix)
if err != nil {
return Statter{}, err