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.

From: [email protected] <[email protected]> on 
behalf of Gil P <[email protected]>
Date: Wednesday, May 3, 2023 at 10:18 AM
To: Prometheus Users <[email protected]>
Subject: [prometheus-users] Aggregations Wrapper
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!
--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9219e215-5d89-4a00-bb74-b424e3911b5fn%40googlegroups.com<https://groups.google.com/d/msgid/prometheus-users/9219e215-5d89-4a00-bb74-b424e3911b5fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/IA1PR07MB9875836C8ABC0C100A348B58F16D9%40IA1PR07MB9875.namprd07.prod.outlook.com.

Reply via email to