Add tags option to datadog telemetry

Expose an global tags option in telemetry config for dogstatsd, for
purposes of distinguishing between multiple nomad cluster metrics.
This commit is contained in:
Mahmood Ali
2018-02-06 11:21:15 -05:00
parent c4d8ebeb4f
commit abfae77545
6 changed files with 15 additions and 0 deletions

View File

@@ -748,6 +748,7 @@ func (c *Command) setupTelemetry(config *Config) (*metrics.InmemSink, error) {
if err != nil {
return inm, err
}
sink.SetTags(telConfig.DataDogTags)
fanout = append(fanout, sink)
}