Someone with more extensive knowledge might know differently, but in the absence of that, I would say that what you're proposing isn't how labels are meant to be used.A label is exactly was its name implies. It's a string. You can parse them with regex, manipulate them in simple ways, etc, but not "calculate" against them.Certainly you can (and should) order or filter by them though, but the value of the metric itself is what you should generally be after.If you can explain what you are trying to capture/track/monitor, maybe someone would be willing to suggest some alternatives, barring nobody proposing a way to calculate against a label's value.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ae64dbd2-6adc-4870-9ca4-27754fccab7e%40googlegroups.com.