Skip to content
Snippets Groups Projects
Unverified Commit 8a68e742 authored by Daniel Nelson's avatar Daniel Nelson
Browse files

Fix optional field types in fluentd input

parent cc63b3b6
No related branches found
No related tags found
No related merge requests found
...@@ -148,15 +148,15 @@ func (h *Fluentd) Gather(acc telegraf.Accumulator) error { ...@@ -148,15 +148,15 @@ func (h *Fluentd) Gather(acc telegraf.Accumulator) error {
} }
if p.BufferQueueLength != nil { if p.BufferQueueLength != nil {
tmpFields["buffer_queue_length"] = p.BufferQueueLength tmpFields["buffer_queue_length"] = *p.BufferQueueLength
} }
if p.RetryCount != nil { if p.RetryCount != nil {
tmpFields["retry_count"] = p.RetryCount tmpFields["retry_count"] = *p.RetryCount
} }
if p.BufferTotalQueuedSize != nil { if p.BufferTotalQueuedSize != nil {
tmpFields["buffer_total_queued_size"] = p.BufferTotalQueuedSize tmpFields["buffer_total_queued_size"] = *p.BufferTotalQueuedSize
} }
if !((p.BufferQueueLength == nil) && (p.RetryCount == nil) && (p.BufferTotalQueuedSize == nil)) { if !((p.BufferQueueLength == nil) && (p.RetryCount == nil) && (p.BufferTotalQueuedSize == nil)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment