Added support for asap-planner-rs to infer query repetitions and config from Prometheus query log#254
Conversation
…ig from Prometheus query log
|
What if the query log shows variable query intervals and frequencies of a query expression, what will be the precompute decision? |
Good question @zzylol . Right now, it takes the median of query inter-arrival times so it will depend on the exact inter-arrival times. It will NOT try to derive multiple frequency repetitions. I think for such a case, we can add a warning if the inter-arrival times are very different from each other. I don't think we need to support that case right now? |
makes sense. |
…ccept-prometheus-query-log-as-input
Earlier, the user had to supply a configuration to
asap-planner-rswhich had a list of PromQL queries and their frequency of repetition. To make ASAPQuery easier to use, this PR modifiesasap-planner-rsto infer queries and their repetition intervals from a Prometheus query log (https://prometheus.io/docs/guides/query-log/)