The current implementation of rate assumes that counters are cumulative, whereas histogram entries are treated as containing deltas. We need to add proper support for temporality of counters and histograms, in line with Otel.
While temporality can be part of the time series definition, we can expect different hosts to use different temporalities for the same metric name. In that respect, temporality needs to be somehow tracked (either per doc or through mappings) and used at query time to calculate aggregates correctly.