Open
Description
Is your feature request related to a problem? Please describe.
The Agent looks on a list of paths for the integrations that is going to execute . During this iteration it tries each of it and if the binary is not in one of the paths prints a log message like this until it successfully found it:
time="2022-07-14T14:07:12Z" level=debug msg="Integration name not found. Trying another folder, if any." component=integrations.Executables folder=/var/db/newrelic-infra/custom-integrations integration_name=nri-kafka
time="2022-07-14T14:07:12Z" level=debug msg="Error looking for integration executables in folder. Trying another folder, if any." component=integrations.Executables error="open /var/db/newrelic-infra/custom-integrations/bin: no such file or direct
ory" folder=/var/db/newrelic-infra/custom-integrations/bin integration_name=nri-kafka
This logs bring confusion when troubleshooting other errors of the integration
some examples:
- https://newrelic.slack.com/archives/CP2EWSX7C/p1657806295377329
- https://issues.newrelic.com/browse/NR-33167
Feature Description
The goal would be to reduce the confusion and noise when looking at the Agent logs. Perhaps some actions can be taken for this:
- Move the path
/var/db/newrelic-infra/newrelic-integrations/bin
to the top of the list so its found on the first iteration which should be the expected one (on Linux). - Move them to
trace