From 1390c2200440f83bbcd900d720e9148a19a07c57 Mon Sep 17 00:00:00 2001 From: Bob Zoller Date: Wed, 27 Apr 2016 15:19:22 -0700 Subject: [PATCH] sanitize * to - in graphite serializer closes #1110 --- CHANGELOG.md | 1 + plugins/serializers/graphite/graphite.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1d309f82..d66e4dd3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ based on _prefix_ in addition to globs. This means that a filter like - [#1096](https://github.com/influxdata/telegraf/pull/1096): Performance refactor of running output buffers. - [#967](https://github.com/influxdata/telegraf/issues/967): Buffer logging improvements. - [#1107](https://github.com/influxdata/telegraf/issues/1107): Support lustre2 job stats. Thanks @hanleyja! +- [#1110](https://github.com/influxdata/telegraf/pull/1110): Sanitize * to - in graphite serializer. Thanks @goodeggs! ### Bugfixes diff --git a/plugins/serializers/graphite/graphite.go b/plugins/serializers/graphite/graphite.go index 6484d3fee..bf2e75579 100644 --- a/plugins/serializers/graphite/graphite.go +++ b/plugins/serializers/graphite/graphite.go @@ -17,7 +17,7 @@ type GraphiteSerializer struct { Template string } -var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", " ", "_", "..", ".") +var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", "*", "-", " ", "_", "..", ".") func (s *GraphiteSerializer) Serialize(metric telegraf.Metric) ([]string, error) { out := []string{}