Skip to content

Infer types in Prometheus remote_write API #17675

@exekias

Description

@exekias

Describe the enhancement:

We introduced different type behavior (use_types, rate_counters) when using Prometheus collector in 7.7. It would be nice to offer something similar for metrics coming through remote_write, for consistency and users profit.

Remote write API schema is typeless so we would need some heuristics to detect the original type where needed. For instance:

  • Metrics ending up in _bucket with a le label are part of a histogram.
  • Metrics matching *_total are counters. We could make this a configurable regexp list, so users can tweak it to its needs.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions