Skip to content

Prometheus metric handler is exposing 500 server error #1087

@geet

Description

@geet

I have instrumented custom prometheus metrics from my application. I have configured prometheus to scrape the target. I have started seeing 500 error in the prometheus and due to that the scrape failed. I tried to manually hit the /metrics endpoint in my application and got the error saying

<metric> [label_values] was collected before with the same name and label values

It works initially but after a few minutes I start seeing the error.

I don't think it should be considered a duplicate metric but if the metric with same label and values are added,then it should increase the count.

go client version: github.com/prometheus/client_golang v1.12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions