Skip to content

Commit

Permalink
Make aggregator_id a key:value tag
Browse files Browse the repository at this point in the history
This enables additional ways to group metrics in Datadog
  • Loading branch information
ash2k committed Jul 5, 2016
1 parent 3268550 commit 250dbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsd/statsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ type agrFactory struct {
func (af *agrFactory) Create() Aggregator {
tags := make(types.Tags, 0, len(af.defaultTags)+1)
tags = append(tags, af.defaultTags...)
tags = append(tags, fmt.Sprintf("aggregator_%d", af.workerNumber))
tags = append(tags, fmt.Sprintf("aggregator_id:%d", af.workerNumber))
af.workerNumber++
return NewAggregator(af.percentThresholds, af.flushInterval, af.expiryInterval, tags)
}
Expand Down

0 comments on commit 250dbb9

Please sign in to comment.