I have the following query as part of my prometheus alerting rules in my rules.yml:
...In short: I am looking for the time since the last time stamp for specific routes. However, the query is not as important as the part in brackets / bold.
I would prefer to leave out the specific routes and refer to a predefined group
(e.g. route_group_A = "route1|route2|route3...|routex"})
so that the query is readable:
time() - camel_route_last_exchange_completed_timestamp{route="route_group_A"}
Is this possible? If so, how and in which document to define this?
I tried using templating, but got no further.
Thanks in advance!
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5859aa5c-63af-4ce0-9c7b-e6e107075996n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f1334f4a-822f-40d7-b7b0-d82ff5e6c508n%40googlegroups.com.