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

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

Open
gsanchezgavier opened this issue Jul 15, 2022 · 0 comments
Labels
logging priority/short-term Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sustain triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@gsanchezgavier
Copy link
Contributor

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
@gsanchezgavier gsanchezgavier changed the title Reduce logs regarding Agent failing to find integration binary Reduce logs "noise" regarding Agent failing to find integration binary Jul 15, 2022
@josemore josemore added priority/short-term Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sustain labels Jul 20, 2022
@davidgit davidgit added triage/accepted Indicates an issue or PR is ready to be actively worked on. logging labels Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging priority/short-term Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sustain triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants