Hi,

On 3/14/20 4:32 PM, Yagyansh S. Kumar wrote:
> Hi. In my prometheus.yml file all the targets necessarily have 2 labels
> viz "cluster" and "node".
[...]
> 
> Now, for a particular node value(Let it be A which belongs to X cluster)
> I want this threshold to be 2*NumberofCores. How can I do this?

You could use this pattern:
https://www.robustperception.io/using-time-series-as-alert-thresholds

With a slight variation -- you would not specify the actual threshold in
your "threshold metric". Instead, you would use it as a factor in your
query. If it's absent, you could default to 1.

Kind regards,
Christian

-- 
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/b01f9c6a-9b2c-aa8c-d93b-9c51dbff9f01%40hoffmann-christian.info.

Reply via email to