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

Metrics exporter cache requests that fail with an unrecoverable error #768

Conversation

avilevy18
Copy link
Contributor

Fixes #765

When the metrics exporter fails to create a new metric descriptor any non-recoverable grpc errors will update the cache, preventing further CMD calls.

@avilevy18 avilevy18 requested a review from a team as a code owner November 9, 2023 16:55
@avilevy18 avilevy18 force-pushed the avilevy-cache-nonrecoverable-descriptors branch from 8e7a91b to d7081c2 Compare November 9, 2023 17:12
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #768 (64af3e9) into main (0b578e8) will increase coverage by 0.33%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #768      +/-   ##
==========================================
+ Coverage   69.52%   69.85%   +0.33%     
==========================================
  Files          42       42              
  Lines        4859     4863       +4     
==========================================
+ Hits         3378     3397      +19     
+ Misses       1331     1315      -16     
- Partials      150      151       +1     
Files Coverage Δ
exporter/collector/metrics.go 74.44% <100.00%> (+1.43%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@punya
Copy link
Contributor

punya commented Nov 9, 2023

/gcbrun

Copy link
Contributor

@punya punya left a comment

Choose a reason for hiding this comment

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

Please add some test coverage

@dashpole
Copy link
Contributor

@avilevy18 I'm planning to cut a release later today. If you can add test coverage by then, then we can include it. Let me know if we can help direct you.

@dashpole
Copy link
Contributor

/gcbrun

@dashpole dashpole requested a review from punya November 13, 2023 20:34
@dashpole
Copy link
Contributor

you can run make fieldalignment to fix the error

@dashpole
Copy link
Contributor

/gcbrun

avilevy18 and others added 2 commits November 13, 2023 16:38
Co-authored-by: David Ashpole <dashpole@google.com>
Co-authored-by: David Ashpole <dashpole@google.com>
@dashpole
Copy link
Contributor

/gcbrun

@dashpole dashpole merged commit a8f42c7 into GoogleCloudPlatform:main Nov 13, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants