metrics
metrics copied to clipboard
MakeFunction waits for all arguments to finish, even when one argument returns an error fast
This can make some queries like
cpu.usage / cpu.total
from -30m to now
take a long time to error, if (say) the limit is 5000 series and there are 3000 of each of these; the first one to be evaluated will completion in about 5 seconds, and the second will be instantly rejected for exceeding the number of allowable series. The overall query will thus take about 5 seconds, even though it could instantly return an error instead (and cancel its request).
This only matters if the query is going to return an error anyway, so optimizing this is not a priority.