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

fix(inputs/nginx_plus_api): swallow 404 error reporting #6015

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

goller
Copy link
Contributor

@goller goller commented Jun 19, 2019

Closes #5807

Currently, this plugin tries a set of hardcoded paths. Not all paths are enabled in a standard NGINX configuration.
This PR skips any API resource paths that do not exist.

However, the correct way would be to get the paths from NGINX itself at /api, /api/4, etc rather than have a set
of hardcoded paths.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Closes #5807

Currently, this plugin tries a set of hardcoded paths.  Not all paths are enabled in a standard NGINX configuration.
This PR skips any API resource paths that do not exist.

However, the correct way would be to get the paths from NGINX itself at /api, /api/4, etc rather than have a set
of hardcoded paths.
@danielnelson danielnelson added this to the 1.11.1 milestone Jun 19, 2019
@danielnelson danielnelson added the fix pr to fix corresponding bug label Jun 19, 2019
@danielnelson danielnelson merged commit 104db7c into master Jun 19, 2019
@danielnelson danielnelson deleted the fix/nginx-api-404 branch June 19, 2019 21:28
danielnelson pushed a commit that referenced this pull request Jun 19, 2019
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input plugin nginx_plus_api http request throws "404 Not Found" error
2 participants