diff --git a/plugins/parsers/graphite/parser.go b/plugins/parsers/graphite/parser.go index d371274df974e..4a3c21df98495 100644 --- a/plugins/parsers/graphite/parser.go +++ b/plugins/parsers/graphite/parser.go @@ -57,38 +57,34 @@ func NewGraphiteParser( defaultTemplate, _ := NewTemplate("measurement*", nil, p.Separator) matcher.AddDefaultTemplate(defaultTemplate) + tmplts := parsedTemplates{} for _, pattern := range p.Templates { - template := pattern - filter := "" + tmplt := parsedTemplate{} + tmplt.template = pattern // Format is [filter]