Björn Rabenstein
Björn Rabenstein
> It is possible to pass multiple value-timestamp pairs of the same metric name and same labels to Prometheus. While that's true, it's not a behavior covered by the specification...
There are better ways of a tolerant comparison. We already have https://github.com/prometheus/prometheus/blob/main/promql/test.go#L637 in the Prometheus code base. Perhaps that's easy enough to just copy over here.
Or depend on https://github.com/beorn7/floats :o)
Yeah, the dependency was meant as a joke. I think the technique implemented in https://github.com/prometheus/prometheus/blob/main/promql/test.go#L637 (or in a slightly more general form in https://github.com/beorn7/floats ) works better that the approach...
> I renamed "ε" to "epsilon". I love the ε, but I am well aware that I'm a small minority here. (Insert lament about decline of classical education…)
> I copied over the float32 variant of things. I think it is overwhelmingly likely that we'll never use the float32 here. I would prefer to remove this variant. It's...
Thanks, @samjewell. As you might have guessed from our personal communication, this touches two areas I have been thinking a bit about in the past, but never refined my thoughts...
In the stated example, this was for performance reasons, but not because of a proven performance gain, rather to prevent every reader to think about it again ("Is this optimized...
As discussed elsewhere, while "timezone" in the context of the TZ database indeed refers to a location (e.g. "Australia/Sydney"), the general understanding of "timezone" is more ambiguous. In many other...
I think it should be possible to create a silence for an empty label, which is equivalent to an non-existing label, or in other words, it gives you a straightforward...