Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fluentd plugin sends float pointers instead of real values #3217

Closed
frielp opened this issue Sep 11, 2017 · 1 comment
Closed

Fluentd plugin sends float pointers instead of real values #3217

frielp opened this issue Sep 11, 2017 · 1 comment
Labels
bug unexpected problem or unintended behavior
Milestone

Comments

@frielp
Copy link

frielp commented Sep 11, 2017

Bug report

When using the new fluentd plugin to send queue metrics to Influx the buffer_total_queued_size, buffer_queue_length and retry_count are sending the float pointer memory address like "0xc420045418" instead of the real underlying values like "12345".

Relevant telegraf.conf:

[[inputs.fluentd]]
#   ## This plugin reads information exposed by fluentd (using /api/plugins.json endpoint).
#   ##
#   ## Endpoint:
#   ## - only one URI is allowed
#   ## - https is not supported
  endpoint = "http://localhost:24220/api/plugins.json"
#
#   ## Define which plugins have to be excluded (based on "type" field - e.g. monitor_agent)
#   exclude = [
#         "monitor_agent",
#         "dummy",
#   ]
  exclude = [
    "monitor_agent"
  ]

System info:

Telegraf 1.4.0
OS: Ubuntu 16.04.2

Steps to reproduce:

  1. Enable the fluentd plugin
  2. Start telegraf

Expected behavior:

stdout results:

fluentd,plugin_type=secure_forward,plugin_id=object:15c28ac,plugin_category=output,retry_count=1,buffer_total_queued_size=9652,buffer_queue_length=0 1505163950000000000

Actual behavior:

stdout results:

fluentd,plugin_type=secure_forward,plugin_id=object:15c28ac,plugin_category=output,buffer_queue_length="0xc4202a81a8",retry_count="0xc4202a81c8",buffer_total_queued_size="0xc4202a81b8" 1505165500000000000

Additional info:

This code appears to fix the issue: BattleCry-Studios@debd409

@danielnelson danielnelson added this to the 1.4.1 milestone Sep 11, 2017
@danielnelson danielnelson added the bug unexpected problem or unintended behavior label Sep 11, 2017
@danielnelson
Copy link
Contributor

8a68e74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants