Add prefix to datadog metrics
This commit is contained in:
parent
32340252b2
commit
85dd45cb81
11 changed files with 90 additions and 34 deletions
|
@ -46,7 +46,7 @@ const (
|
|||
func RegisterStatsd(ctx context.Context, config *types.Statsd) Registry {
|
||||
// just to be sure there is a prefix defined
|
||||
if config.Prefix == "" {
|
||||
config.Prefix = "traefik"
|
||||
config.Prefix = defaultMetricsPrefix
|
||||
}
|
||||
|
||||
statsdClient = statsd.New(config.Prefix+".", kitlog.LoggerFunc(func(keyvals ...interface{}) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue