sanitize * to - in graphite serializer

closes #1110
This commit is contained in:
Bob Zoller 2016-04-27 15:19:22 -07:00 committed by Cameron Sparr
parent 8742ead585
commit 1390c22004
2 changed files with 2 additions and 1 deletions

View File

@ -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. - [#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. - [#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! - [#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 ### Bugfixes

View File

@ -17,7 +17,7 @@ type GraphiteSerializer struct {
Template string Template string
} }
var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", " ", "_", "..", ".") var sanitizedChars = strings.NewReplacer("/", "-", "@", "-", "*", "-", " ", "_", "..", ".")
func (s *GraphiteSerializer) Serialize(metric telegraf.Metric) ([]string, error) { func (s *GraphiteSerializer) Serialize(metric telegraf.Metric) ([]string, error) {
out := []string{} out := []string{}