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

feat(monitoring-exporter): add disableCreateMetricDescriptors option to skip checking for metric descriptor existence #623

Merged
merged 5 commits into from
Sep 22, 2023

Conversation

sethrwebster
Copy link
Contributor

@sethrwebster sethrwebster commented Sep 19, 2023

When set, this flag causes the client to skip checking if metric descriptors exist and begin sending metrics immediately. This can be useful when starting a large number of clients simultaneously to keep them from getting rate limited by the Google API.

Fixes #621

Merge all new changes from the official Google repository.
This change creates an option to skip checking if metric descriptors exist before
sending metrics. Skipping the metric descriptor check can prevent the clients from
getting rate limited by Google when a large number are all started at the same time.
@sethrwebster sethrwebster requested a review from a team as a code owner September 19, 2023 15:15
@aabmass
Copy link
Contributor

aabmass commented Sep 20, 2023

/gcbrun

@sethrwebster sethrwebster changed the title Issue 621: Add an option to skip checking for metric descriptor existence feat(monitoring-exporter): Add disableCreateMetricDescriptors option to skip checking for metric descriptor existence Sep 20, 2023
@sethrwebster sethrwebster changed the title feat(monitoring-exporter): Add disableCreateMetricDescriptors option to skip checking for metric descriptor existence feat(monitoring-exporter): add disableCreateMetricDescriptors option to skip checking for metric descriptor existence Sep 20, 2023
@aabmass
Copy link
Contributor

aabmass commented Sep 21, 2023

/gcbrun

@aabmass
Copy link
Contributor

aabmass commented Sep 21, 2023

/gcbrun

@aabmass
Copy link
Contributor

aabmass commented Sep 21, 2023

CI is broken, I'll fix it

@aabmass
Copy link
Contributor

aabmass commented Sep 21, 2023

I fixed the build, can you merge main in? Should be good to go then

@aabmass
Copy link
Contributor

aabmass commented Sep 22, 2023

/gcbrun

@aabmass aabmass enabled auto-merge (squash) September 22, 2023 19:56
@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Merging #623 (6539955) into main (b4758ac) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 6539955 differs from pull request most recent head 291ef96. Consider uploading reports for the commit 291ef96 to get more accurate results

@@           Coverage Diff           @@
##             main     #623   +/-   ##
=======================================
  Coverage   97.68%   97.69%           
=======================================
  Files          18       18           
  Lines         691      693    +2     
  Branches      127      129    +2     
=======================================
+ Hits          675      677    +2     
  Misses         16       16           
Files Changed Coverage Δ
...emetry-cloud-monitoring-exporter/src/monitoring.ts 95.74% <100.00%> (+0.09%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@aabmass aabmass merged commit 666a6d4 into GoogleCloudPlatform:main Sep 22, 2023
16 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
Development

Successfully merging this pull request may close these issues.

Need to block checking if metric descriptors exist to prevent rate limiting by Google
2 participants