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.
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:
_bucketwith alelabel are part of a histogram.*_totalare counters. We could make this a configurable regexp list, so users can tweak it to its needs.