diff --git a/client/graphite/client.go b/client/graphite/client.go index 95a6869..a741f40 100644 --- a/client/graphite/client.go +++ b/client/graphite/client.go @@ -76,7 +76,9 @@ func NewClient(cfg *config.Config, logger log.Logger) *Client { format = paths.Format{Type: paths.FormatCarbonTags} } - format.FilteredTags = strings.Split(cfg.Graphite.FilteredTags, ",") + if cfg.Graphite.FilteredTags != "" { + format.FilteredTags = strings.Split(cfg.Graphite.FilteredTags, ",") + } } return &Client{