Skip to content

unknown metric type return while using header 'Accept: application/openmetrics-text' #5722

@GoneLikeAir

Description

@GoneLikeAir

Describe the bug
When I try to get metric from loki, I found that there are some metric with 'unknown' type.
image

To Reproduce
Steps to reproduce the behavior:
Using postman to reproduce:

  1. Modify header: Accept: application/openmetrics-text
  2. send request to ip:3100/metrics
    image

Expected behavior
Expected all the metric types are correct(one of guage, counter, summary, histogram).

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: helm
  • Version: 2.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleA stale issue or PR that will automatically be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions