prometheus-community / prometheus-community/stackdriver_exporter

Truncated CloudSQL queries breaks metrics format

Open
#359 0 comments 0 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

I'm seeing some truncated queries on this metric causing collection failures. The issue appears to be with the querystring label being too long or truncated.

stackdriver_cloudsql_instance_database_cloudsql_googleapis_com_database_postgresql_insights_perquery_latencies_count

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

The report identifies failures while collecting the CloudSQL per-query latency metric when its querystring label is long or truncated. Start by reproducing collection of the named metric and tracing how CloudSQL query labels are formatted; done means collection succeeds for truncated queries and a regression test covers the affected metric format.

Written by the indexing model from the issue text.

Assessment

Tech stack
gcp, go, postgresql, prometheus
Domain
cloud, databases, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.