Do i have any possibility to “manipulate” the values of a metric exept using math operators, [any]_over_time, any funktion that is combining / grouping values…
For example like - if a metric-value > 0 then set metric-value 1
I just ended up that i was able to filter and only passing values > 0
With a bit of manipulation, you can return 0 or 1.
sgn(metric{label="value"}) / 2 + 0.5 # returns 0 or 1
If you think about it, that second query is like an “if” statement determining if the value is greater than 0. You can be clever and generalize this, if needed, by shifting the trend up or down.