Skip to content

mongodb_ss_metrics_query_multiPlanner_histograms_sbeNumReads_count was collected before with the same name and label values #1179

@David2011Hernandez

Description

@David2011Hernandez

Describe the bug
Since we upgraded mongodb to version 8.0.15-noble (from 8.0.12-noble) we have received many errors like

level=ERROR source=http_error_logger.go:47 msg="error gathering metrics:" error="[from Gatherer #2] collected metric \"mongodb_ss_metrics_query_multiPlanner_histograms_sbeNumReads_count\" .... counter:{value:0}} was collected before with the same name and label values

To Reproduce
Steps to reproduce the behavior:

  1. what parameters are being passed to mongodb_exporter
image: percona/mongodb_exporter:0.47.1
command:
    - --collect-all
    - --collector.profile-time-ts
    # This interval must be synchronized with the Prometheus scrape interval
    - 15

  1. describe steps to reproduce the issue
    I have tried touse a local setup for mongodb replicaset but was not able to reproduce the issue mainly cause i was not able to upload documents i guess

Expected behavior
No errors collecting this metric.

Logs

time=2025-10-07T05:13:56.968Z level=ERROR source=http_error_logger.go:47 msg="error gathering metrics:" error="[from Gatherer #2] collected metric \"mongodb_ss_metrics_query_multiPlanner_histograms_sbeNumReads_count\" { label:{name:\"cl_id\"  value:\"id.value\"}  label:{name:\"cl_role\"  value:\"\"}  label:{name:\"rs_nm\"  value:\"rs-value\"}  label:{name:\"rs_state\"  value:\"1\"}  counter:{value:0}} was collected before with the same name and label values" total_errors=100 error_no=90,

Environment

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions