-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.7](backport #34456) Report FQDN on host.name enabled by a feature …
…flag (#34860) * Report FQDN on host.name enabled by a feature flag (#34456) * wip * wip * wip * something is broken * debug logs * avoid panics * wip broken * wip - perhaps fixed double configuring features * using triggers to know what changed * it works, but the agent-client is sending feature changes every time * debug logs * more debug logs * wip * it works * remove debug logs * fix after rebase * update elastic-agent-client and make notice * license headres * Add TODO for Winlogbeat FQDN implementation * Removing unnecesary code * Use RWMutex for greater read efficiency * Move mutex inside struct * Better error handling * Temporarily updating dependency * Always store FQDN in Beat info * Set hostname in monitoring registries after FQDN config has been evaluated * Pass down FQDN flag from add_host_metadata processor * Better error handling * Add temporary notice override * Changing log level * Update dependency on elastic-agent-system-metrics * Running go mod tidy * Update elastic-agent-system-metrics dependency version * Add feature flags configuration section to reference yml * Bump up version of elastic-agent-client depdendency * Updating reference file * Updating reference files * Move feature flags setting into same method where log level setting is handled * Updating docs * Adding CHANGELOG entry * Remove replace directive for go-sysinfo * Running go mod tidy * Remove replace directive for elastic-agent-client dependency * Remove personal repos from overrides.json * Updating NOTICE * Bump up version for elastic-agent-client dependency * Update NOTICE * Removing noisy debug logging * Removing commented out code that's not needed * Fixing error message * Make default flag setting more explicit * Adding config with no features to unit test * Add helper method to beat.Info for returning FQDN-aware hostname * Adding license header to test file * Remove use of errors package * Check error from data.Put * Expire add_host_metadata cache immediately on FQDN feature flag value change * Fix casing in error message * Have callback registration function accept ID * Fixing go formatting * Account for feature flags in TestManagerV2 test * Update logging for unit changes * Remove TODO from wineventlog code * Updating dependency * Include shared file in docs * Bumping dependency on elastic-agent-client * Include features config in diagnostics output * Update comment * Updating NOTICE * Re-formatting * Running make update --------- Co-authored-by: Shaunak Kashyap <[email protected]> (cherry picked from commit faf4c11) # Conflicts: # go.mod # go.sum * Remove conflict markers * Updating NOTICE.txt * Fixing dependency versions * Fix CHANGELOG --------- Co-authored-by: Anderson Queiroz <[email protected]> Co-authored-by: Shaunak Kashyap <[email protected]>
- Loading branch information
1 parent
be8e3e7
commit 1cf2db5
Showing
41 changed files
with
881 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.