Skip to content

Missing Instance ID with exportSpannerClientMetrics #2760

@joshbautista

Description

@joshbautista

Current Behavior

We're testing v0.42.2 having upgraded from v0.37.0, and we're now receiving the following warning:

[WARNING] (com.google.cloud.spanner.SpannerCloudMonitoringExporter exportSpannerClientMetrics): Metric data has missing instanceId. Skipping export.

We haven't made any changes to our PGAdapter setup aside from bumping versions.

Context (Environment)

  • Running PGAdapter 0.42.2 as a sidecar in GKE
  • PGAdapter configured with 1 vCPU and 2GB Memory limits (actual CPU use hovers at ~ 100mCPU)
  • PGAdapter executed with the following args:
- args:
  - -p
  - <REDACTED>
  - -i
  - <REDACTED>
  - -d
  - <REDACTED>
  - -enable_otel
  - -otel_trace_ratio=0.05

Environment Variables:
JDK_JAVA_OPTIONS = "-Xmx1600M -Xms1600M -XshowSettings:vm" 

Looks like v0.42.2 is using libraries-bom 26.52.0, which uses google-cloud-spanner 6.83.0 and we're hitting this check that was introduced in 6.81.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions