05 Dec 2022 10:17 PM - edited 05 Dec 2022 10:18 PM
Hi,
I'm trying to create an alert (metric event) based on the average value of a builtin metric (eg: builtin:containers.cpu.usageMilliCores) in last X days using metric selector.
How can time be passed into metric selector?
See there is an equivalent of &from=now-5m in metric selector like in the API call below.
Solved! Go to Solution.
07 Dec 2022 05:18 PM
We ended up using a combination of api/v2/metrics and /api/v2/events/ingest to check the data and alert.