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 otherpirate committed Mar 15, 2019
1 parent 3764ddf commit 4b44d08
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 4b44d08

Please sign in to comment.