switch from warning to debug when upstream labels are empty by pdabelf5 · Pull Request #724 · nginx/nginx-prometheus-exporter (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation3 Commits2 Checks14 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

pdabelf5

Proposed changes

Turn down logging when upstream labels are empty.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

j1m-ryan

@codecov Codecov

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 3.87%. Comparing base (15b84c1) to head (b64d93e).

Files Patch % Lines
collector/nginx_plus.go 0.00% 7 Missing ⚠️

Additional details and impacted files

@@ Coverage Diff @@ ## main #724 +/- ##

Coverage 3.87% 3.87%

Files 5 5
Lines 1316 1316

Hits 51 51
Misses 1265 1265

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jjngx

@pdabelf5

@pdabelf5

kate-osborn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

vepatel

oseoin

pdabelf5 added a commit that referenced this pull request

May 29, 2024

@pdabelf5

pdabelf5 added a commit that referenced this pull request

May 29, 2024

@pdabelf5

This was referenced

Jun 2, 2024

@vepatel vepatel linked an issue

Jun 4, 2024

that may beclosed by this pull request

@reddyblokesh

@pdabelf5 @oseoin @j1m-ryan this issue is still not resolved and we are getting level=debug ts=2024-06-17T07:28:09.172Z caller=nginx_plus.go:849 msg="wrong number of labels for upstream peer, empty labels will be used instead" upstream=tritonExternalSelfHosted-dev peer expected=1 got=0

can you please look into this at earliest since this is serious performance degradation for nginx-plus users .

lucacome added a commit that referenced this pull request

Jul 17, 2024

@lucacome

lucacome added a commit that referenced this pull request

Jul 24, 2024

@lucacome

lucacome added a commit that referenced this pull request

Jul 24, 2024

@lucacome

Reviewers

@oseoin oseoin oseoin approved these changes

@j1m-ryan j1m-ryan j1m-ryan approved these changes

@kate-osborn kate-osborn kate-osborn approved these changes

@vepatel vepatel vepatel approved these changes

@jjngx jjngx jjngx approved these changes

Labels

enhancement

Pull requests for new features/feature enhancements