Skip to content

Reduce logs "noise" regarding Agent failing to find integration binary #1315

Open
@gsanchezgavier

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:

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

Metadata

Assignees

No one assigned

    Labels

    loggingpriority/short-termMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sustaintriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions