Skip to content

promql: "metric might not be a counter" warning fires wrongly for histograms (both classic and native) #12945

@beorn7

Description

@beorn7

What did you do?

See screenshot for a native and a classic histogram:

image

What did you expect to see?

Both expressions are fine, no info annotation should happen.

What did you see instead? Under which circumstances?

An info annotation is shown, false positive.

System information

No response

Prometheus version

prometheus, version 2.47.0 (branch: main, revision: 83891135c6585fc2e9990824c9d12478acfe6b10)
  build user:       beorn@gigafips
  build date:       20230919-16:30:08
  go version:       go1.20.4
  platform:         linux/amd64
  tags:             netgo,builtinassets,stringlabels

Prometheus configuration file

No response

Alertmanager version

No response

Alertmanager configuration file

No response

Logs

No response

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