Skip to content

Annotations for incompatible native histogram operations with binary operators have confusing message #14669

@charleskorn

Description

@charleskorn

What did you do?

I performed the following queries:

series_with_exponential_native_histograms + series_with_custom_buckets_native_histograms

series_with_custom_buckets_native_histograms_layout_1 + series_with_custom_buckets_native_histograms_layout_2

As the names suggest, these series contained native histograms with exponential and custom buckets.

What did you expect to see?

Warnings that either include the appropriate metric names, or don't mention metric names at all.

For example, the first case could return a warning like PromQL warning: vector contains a mix of histograms with exponential and custom buckets schemas for binary operation (1:1).

What did you see instead? Under which circumstances?

The first query result included the warning PromQL warning: vector contains a mix of histograms with exponential and custom buckets schemas for metric name "" (1:1).

The second query result included the warning PromQL warning: vector contains histograms with incompatible custom buckets for metric name "" (1:1).

System information

No response

Prometheus version

No response

Prometheus configuration file

No response

Alertmanager version

No response

Alertmanager configuration file

No response

Logs

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions