Skip to content

feat(bigtable): add handling of longupdown metrics aka gauge#13871

Merged
sushanb merged 1 commit intogoogleapis:mainfrom
sushanb:guage_m
Feb 20, 2026
Merged

feat(bigtable): add handling of longupdown metrics aka gauge#13871
sushanb merged 1 commit intogoogleapis:mainfrom
sushanb:guage_m

Conversation

@sushanb
Copy link
Contributor

@sushanb sushanb commented Feb 19, 2026

Same as googleapis/java-bigtable#2719 for subchannel/open_connections

@sushanb sushanb requested review from a team, bhshkh and igorbernstein2 February 19, 2026 22:40
@sushanb sushanb requested review from a team as code owners February 19, 2026 22:40
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Feb 19, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively adds support for gauge metrics (represented as non-monotonic sums) in the monitoring exporter. The changes correctly identify these metrics and adjust their time intervals by setting the start time equal to the end time, which aligns with the requirements of the Cloud Monitoring API for GAUGE metric kinds. The refactoring of toNonemptyTimeIntervalpb to toTimeIntervalPb is a welcome improvement for clarity, and it also includes a beneficial fix for calculating cumulative metric intervals. The accompanying test changes, including a new test for gauge intervals, are thorough and ensure the new logic is well-covered. Overall, this is a solid contribution that enhances the metrics exporting capabilities.

@sushanb sushanb merged commit 519ed9b into googleapis:main Feb 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants