Skip to content

Fix RabbitMQ regression in #9383#9443

Merged
sspaink merged 19 commits intoinfluxdata:masterfrom
HRI-EU:fix_rabbitmq
Jun 29, 2021
Merged

Fix RabbitMQ regression in #9383#9443
sspaink merged 19 commits intoinfluxdata:masterfrom
HRI-EU:fix_rabbitmq

Conversation

@srebhan
Copy link
Copy Markdown
Member

@srebhan srebhan commented Jun 28, 2021

Required for all PRs:

  • Updated associated README.md.
  • Wrote appropriate unit tests.

resolves #9383

This resolves the wrong types for _avg metrics. Those errors went unnoticed before checking the return types (#8992) and returned invalid values (all zero) if the server responded with as floating-point formatted number by chance.
This PR furthermore tries to handle missing plugins (e.g. federation) more gracefully providing the server sent error to the user. To avoid those errors altogether, a (backward-compatible) metric-filter is introduced such that the user can disable erroneous metrics.

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Jun 28, 2021
@srebhan srebhan added regression something that used to work, but is now broken area/rabbitmq labels Jun 28, 2021
Copy link
Copy Markdown
Contributor

@akrantz01 akrantz01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. I just left some comments on some of the type conversion for Memory.Total.

@srebhan srebhan requested a review from akrantz01 June 29, 2021 06:54
@srebhan
Copy link
Copy Markdown
Member Author

srebhan commented Jun 29, 2021

@akrantz01 thanks for review. I changed the code according to your suggestions except for the map[string]interface{} part, which does not work otherwise.

@sspaink sspaink merged commit e2ab218 into influxdata:master Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/rabbitmq fix pr to fix corresponding bug regression something that used to work, but is now broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RabbitMQ Input Plugin v1.19.0 unmarshal errors

3 participants