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

in_calyptia_fleet: log info about config pulled from API #9892

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

nuclearpidgeon
Copy link
Contributor

When working with large numbers of unattended servers, it is very useful to know for sure when they have pulled what version of fleet config. Currently the only way that the pull of a new version can be known is by second-hand inference of the "changing to config dir" log messages, which aren't a reliable source for this anyway as they are always logged on Fluentbit startup.

Testing

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

Documentation

Documentation not required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

@nuclearpidgeon
Copy link
Contributor Author

@pwhelan FYI (given you seem to be the main name in the git blame for this fleet input plugin...)

Also set local timestamp to -1 on startup as otherwise it could end up
being read as an uninitialised value

Signed-off-by: Stewart Webb <[email protected]>
@pwhelan
Copy link
Contributor

pwhelan commented Jan 30, 2025

@pwhelan FYI (given you seem to be the main name in the git blame for this fleet input plugin...)

Indeed I am.

Copy link
Contributor

@pwhelan pwhelan left a comment

Choose a reason for hiding this comment

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

LGTM

@pwhelan pwhelan merged commit 4c4f8c0 into fluent:master Jan 30, 2025
49 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants