-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Haproxy input missing lots of fields #2318
Comments
I agree that it should change, but I'd rather not break current users of the plugin there was a contributor who made a couple attempts already but it needs to not break backwards compatibility, since this is a widely used plugin: #2193 |
I can change the behavior to a whitelist type thing, where all fields are passed through unchanged with a few exceptions. Do we want a flag to be able to turn this off? I personally would rather it not muck with the column names, but a flag to enable breaking compatibility feels a little weird. |
Should we start keeping a list of things to change for telegraf 2.0? A list of all the things that would clean up telegraf, but would cause breakage for existing configs or output data? |
yes, that is probably a good idea, I've created an issue to track potential breaking changes here: #2320 |
Directions
Bug report
Relevant telegraf.conf:
System info:
[Include Telegraf version, operating system name, and other relevant details]
telegraf current master
CentOS/7
Haproxy 1.7.2
Steps to reproduce:
telegraf -test
Expected behavior:
See all the metrics as exported by haproxy present
Actual behavior:
Many of the metrics missing. In fact more metrics are missing than are present. Specifically the missing ones are:
Additionally some of the haproxy metrics are renamed ("act" -> "active_servers") while most others are not. The inconsistency makes the metrics hard to work with. I think it would be better to leave the field names as what haproxy calls them.
Additional info:
The plugin is also using a hard-coded list of column positions. If the columns in the CSV output ever changed in any way (additions, removals, or ordering), the plugin would break. It would be much safer, and future proof (and have prevented issues like the one this ticket is opened for) if the CSV headers were parsed & used.
The text was updated successfully, but these errors were encountered: