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

feat(outputs.mqtt): Add client trace logging, resolve MQTT5 reconnect login #15429

Merged
merged 6 commits into from
Jun 6, 2024

Conversation

powersj
Copy link
Contributor

@powersj powersj commented May 30, 2024

Summary

This adds a more generic MQTT client trace logging that also applies to the output. It adds logging when using the MQTT5 client. Additionally, with the help of this logging it resolves an issue where the reconnect attempts on the MQTT5 client where the username and password were destroyed and unable to be re-used later on.

Checklist

  • No AI generated code was used in this PR

Related issues

fixes: #15418

@powersj powersj self-assigned this May 30, 2024
@telegraf-tiger telegraf-tiger bot added area/mqtt feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins labels May 30, 2024
@influxdata influxdata deleted a comment from telegraf-tiger bot Jun 5, 2024
@powersj powersj marked this pull request as ready for review June 5, 2024 16:05
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jun 5, 2024
@powersj powersj assigned DStrand1 and srebhan and unassigned powersj Jun 5, 2024
@powersj powersj changed the title feat(outputs.mqtt): Add client trace logging feat(outputs.mqtt): Add client trace logging, resolve MQTT5 reconnect login Jun 5, 2024
@DStrand1 DStrand1 removed their assignment Jun 5, 2024
@srebhan srebhan merged commit f0c7258 into influxdata:master Jun 6, 2024
27 checks passed
@github-actions github-actions bot added this to the v1.31.0 milestone Jun 6, 2024
powersj added a commit to powersj/telegraf that referenced this pull request Jul 26, 2024
In influxdata#15429, I added trace logging to the mqtt outputs for v3 and v5. I
removed trace logging settings from the input, moving it to the common
code. However, the input does not even use the common code *facepalm*.
This restores the trace option for the input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mqtt feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[outputs.mqtt] (Windows Service) Fails to reconnect after network disconnect
3 participants