[AMLII-2110] Fix Path Errors in Integrations Launcher #30032
+61
−42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes a path error where the integrations launcher would append a path to an already complete file path because of confusion in joining the file name and file path.
Motivation
Bug found in QA
Describe how to test/QA your changes
custom_checkvalue.py
:and a configuration for it in
conf.d
like socustom_checkvalue.yaml
:logs_config.integrations_logs_files_max_size
to a size of your choice (default is 10 MB, but you can set it to something like 1 MB for this case)/opt/datadog-agent/run/integrations/{integration_id}.log
logs_config.integrations_logs_files_max_size
, keep writing data to the file, the agent should delete it and recreate it again.Note: if you're not getting logs, ensure there is more than 20% space available on your machine or otherwise set the
logs_config.integrations_logs_disk_ratio
to a higher value (default 0.80).Possible Drawbacks / Trade-offs
Additional Notes