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

impl(GCS+gRPC): histogram buckets for gRPC metrics #14135

Merged
merged 1 commit into from
May 10, 2024

Conversation

coryan
Copy link
Contributor

@coryan coryan commented May 6, 2024

The gRPC metrics include histograms, but the default buckets are not
very useful.

Part of the work for #13998


This change is Reviewable

@coryan coryan force-pushed the impl-GCS+gRPC-histograms branch from 21b2145 to b2babdb Compare May 6, 2024 17:32
@coryan coryan changed the title Impl-GCS+gRPC-histograms impl(GCS+gRPC): histogram buckets for gRPC metrics May 6, 2024
@coryan coryan marked this pull request as ready for review May 6, 2024 17:57
@coryan coryan requested review from a team as code owners May 6, 2024 17:57
Copy link

codecov bot commented May 6, 2024

Codecov Report

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

Project coverage is 93.79%. Comparing base (09e9933) to head (02c20be).
Report is 1 commits behind head on main.

Files Patch % Lines
.../cloud/storage/internal/grpc/metrics_histograms.cc 93.10% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14135      +/-   ##
==========================================
+ Coverage   93.23%   93.79%   +0.55%     
==========================================
  Files        2206     2295      +89     
  Lines      192051   202878   +10827     
==========================================
+ Hits       179065   190293   +11228     
+ Misses      12986    12585     -401     

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

The gRPC metrics include histograms, but the default buckets are not
very useful.
@coryan
Copy link
Contributor Author

coryan commented May 8, 2024

@frankyn can you take a look? You probably have the most context here.

Copy link
Member

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

I'll do the same in Java. I think this is fine.

std::vector<double> MakeSizeHistogramBoundaries() {
auto constexpr kKiB = std::int64_t{1024};
auto constexpr kMiB = 1024 * kKiB;
auto constexpr kGiB = 1024 * kMiB;
Copy link
Member

Choose a reason for hiding this comment

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

k represents constant if iiuc https://stackoverflow.com/questions/5016622/where-does-the-k-prefix-for-constants-come-from; doesn't matter just got confused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@coryan coryan merged commit e7d3944 into googleapis:main May 10, 2024
63 checks passed
@coryan coryan deleted the impl-GCS+gRPC-histograms branch May 10, 2024 15:26
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.

2 participants