Skip to content

fix spanner metrics regression #2329

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

vroldanbet
Copy link
Contributor

recent changes mean client-side spanner metrics
are no longer exposed the prometheus scrape endpoint.

The SDK has deprecated OpenCensus support, which was wired into the prometheus endpoint, in favour of OpenTelemetry. This was reflected in a recent SpiceDB change, which made the otel approach the default, and as a consequence all prometheus metrics disappeared.

This commit adds the prometheus exporter as a OpenTelemetry MetricsResolver, to add some the metrics back. The naming convention has changed, and I'm not aware of a way around that.

Also client-side latency metrics are not supported via the opentelemetry integration. See https://cloud.google.com/spanner/docs/capture-custom-metrics-opentelemetry#capture-client-round-trip-latency Instead they now have to be manually instrumented.

@github-actions github-actions bot added area/datastore Affects the storage system area/dependencies Affects dependencies labels Apr 15, 2025
recent changes mean client-side spanner metrics
are no longer exposed the prometheus scrape endpoint.

The SDK has deprecated OpenCensus support, which was
wired into the prometheus endpoint, in favour of OpenTelemetry.
This was reflected in a recent SpiceDB change, which made the otel
approach the default, and as a consequence all prometheus metrics
disappeared.

This commit adds the prometheus exporter as a OpenTelemetry MetricsResolver,
to add some the metrics back. The naming convention has changed, and I'm not aware
of a way around that.

Also client-side latency metrics are not supported via the opentelemetry integration.
See https://cloud.google.com/spanner/docs/capture-custom-metrics-opentelemetry#capture-client-round-trip-latency
Instead they now have to be manually instrumented.
@vroldanbet vroldanbet force-pushed the spanner-metrics-regression branch from 3c7cba0 to 8e8dc92 Compare April 15, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datastore Affects the storage system area/dependencies Affects dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant