prometheus-community / prometheus-community/stackdriver_exporter

Getting error message has label dimensions inconsistent with previously collected metrics in the same metric family

Open
#27 4 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

Executing stackdriver_exporter as:

stackdriver_exporter --google.project-id=myproject --monitoring.metrics-type-prefixes=serviceruntime.googleapis.com/api/request_count

Then running

curl localhost:9255/metrics

Gives me

An error has occurred during metrics collection:

2 error(s) occurred:

  • collected metric stackdriver_consumed_api_serviceruntime_googleapis_com_api_request_count label:<name:"grpc_status_code" value:"0" > label:<name:"location" value:"us-central1" > label:<name:"method" value:"google.api.servicecontrol.v1.ServiceController.Check" > label:<name:"project_id" value:"myproject" > label:<name:"protocol" value:"" > label:<name:"response_code" value:"200" > label:<name:"response_code_class" value:"2xx" > label:<name:"service" value:"servicecontrol.googleapis.com" > label:<name:"unit" value:"1" > label:<name:"version" value:"v1" > gauge:<value:2 > has label dimensions inconsistent with previously collected metrics in the same metric family

  • collected metric stackdriver_consumed_api_serviceruntime_googleapis_com_api_request_count label:<name:"grpc_status_code" value:"0" > label:<name:"location" value:"us-central1" > label:<name:"method" value:"google.api.servicecontrol.v1.ServiceController.Report" > label:<name:"project_id" value:"myproject" > label:<name:"protocol" value:"" > label:<name:"response_code" value:"200" > label:<name:"response_code_class" value:"2xx" > label:<name:"service" value:"servicecontrol.googleapis.com" > label:<name:"unit" value:"1" > label:<name:"version" value:"v1" > gauge:<value:1 > has label dimensions inconsistent with previously collected metrics in the same metric family

Is there any way to use stackdriver_exporter to grab those metrics?

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 by reproducing the issue with the stackdriver_exporter command and the curl localhost:9255/metrics scrape shown in the report. Inspect the metric collection path that emits the inconsistent-label error; done means the requested metrics can be scraped consistently or the limitation and supported configuration are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, google-cloud
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.