Skip to content

Conversation

@enocom
Copy link
Member

@enocom enocom commented Nov 11, 2025

This commit makes a single metric client for use across multiple metric recorders to avoid wasted resources with multiple clients.

Note: the exporter closes the client on shutdown. The dialer already calls shutdown on all exporters. So there is no need to close the client in the dialer.

Fixes #674

This commit makes a single metric client for use across multiple metric
recorders to avoid wasted resources with multiple clients.

Note: the exporter closes the client on shutdown. The dialer already
calls shutdown on all exporters. So there is no need to close the client
in the dialer.

Fixes #674
@enocom enocom requested a review from a team as a code owner November 11, 2025 17:19
@enocom enocom merged commit b433baf into main Nov 11, 2025
16 checks passed
@enocom enocom deleted the single-metric-client branch November 11, 2025 18:28
panavenue added a commit to GoogleCloudPlatform/cloud-sql-go-connector that referenced this pull request Nov 17, 2025
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.

Create a single Cloud Monitoring client in the built-in metrics

3 participants