Aggregations Wrapper

16 views
Skip to first unread message

Gil P

unread,
May 3, 2023, 10:18:02 AM5/3/23
to Prometheus Users
Hi everyone, I am new to Prometheus. I need to obtain both max and average of a query result. I am wondering about the penalty of sending the same query again (is there is a caching mechanism similarly to elasticsearch?). I was wondering about a wrapper for several aggregations at the same time on a series; however, since it does not seem to be present yet, I was wondering if it would be bad design as it seems to be far less clean that most queries I have seen so far. I'd appreciate any insights!

Thanks!

Michael Kogelman

unread,
May 4, 2023, 9:16:06 AM5/4/23
to Prometheus Users, gil...@gmail.com

If it’s something you’re going to use often, look into a recording rule which will calculate your expression as its own metric on the fly.

--
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/9219e215-5d89-4a00-bb74-b424e3911b5fn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages