Skip to content

Commit

Permalink
Fix error sending empty tag value in azure monitor output (influxdata…
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquati authored and Max Eshleman committed Feb 13, 2019
1 parent 1c77ec8 commit b973833
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/outputs/azure_monitor/azure_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ func hashIDWithTagKeysOnly(m telegraf.Metric) uint64 {
h.Write([]byte(m.Name()))
h.Write([]byte("\n"))
for _, tag := range m.TagList() {
if tag.Key == "" || tag.Value == "" {
continue
}

h.Write([]byte(tag.Key))
h.Write([]byte("\n"))
}
Expand Down

0 comments on commit b973833

Please sign in to comment.