prometheus-community / prometheus-community/stackdriver_exporter

Duplicate time series causes 503 on /metrics endpoint

Open
#450 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
295
Forks
117
Avg merge
9d 14h
Merged PRs (30d)
7

Description

Problem: StackDriver still has issues dealing with duplicate time series, which results in an internal error that bubbles up on the /metrics endpoint with a 503 response code.

Expected: Duplicate time series are properly handled internally, and requests to /metrics will always return metrics in valid Prometheus format.

Sample error returned to Prometheus agent:

An error has occurred while serving metrics:\n\n[from Gatherer #2] collected metric "stackdriver_vpn_tunnel_vpn_googleapis_com_vpn_tunnel_gateway_ip_version" { label:{name:"gateway_ip_version" value:"ipv4"} label:{name:"project_id" value:"foobar-network"} label:{name:"region" value:"europe-west1"} label:{name:"tunnel_id" value:"REGION:1100/PROJECT:<REDACTED>/VPN_TUNNEL:<REDACTED>"} label:{name:"unit" value:""} gauge:{value:1} timestamp_ms:1753891144410} was collected before with the same name and label values

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with collectors/monitoring_collector.go, especially lines 262-274, and trace how duplicate StackDriver time series reach the /metrics handler. Verify the change against the reported duplicate metric and confirm that /metrics returns valid Prometheus-format metrics instead of a 503.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, google-cloud, prometheus
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.