Skip to content

After update to 1.8 version and when using the ASP .Net Core Prometheus exporter and /metrics end point I get error on Prometheus some times.  #5506

@jnormen

Description

@jnormen

Bug Report

List of all OpenTelemetry NuGet
packages
and version that you are
using (e.g. OpenTelemetry 1.0.2):

Metrics I use:
.AddMeter("Microsoft.AspNetCore.Hosting",
"Microsoft.AspNetCore.Routing",
"Microsoft.AspNetCore.Diagnostics",
"Microsoft.AspNetCore.Server.Kestrel",
"Polly",
"MassTransit"

Symptom

PrometheusTargetMissing ***** (http monitor/prometheus critical)[FIRING:3]

With info:
A Prometheus target has disappeared. An exporter might be crashed.

The text mention:
"expected equal, got INVALID"

When I revert to version 1.7 the problem stops with the same meters on.

Same error in beta and rc1 version of 1.8 exporter. Not a valid output.

What did you see instead?

I get alarm from Prometheus with:
description = A Prometheus target has disappeared. An exporter might be crashed. VALUE = 0 LABELS =

Reproduce

Use 1.8 version of Open Telemetry and the 1.8 rc1 of the Prometheus asp.net core exporter

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