Replies: 1 comment 1 reply
-
I have the same issue, the docs are not clear enough with interval and count or I’m missing something |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm wondering if it's possible to configure Analysis to evaluate if a metric gets under a certain threshold and "ignore" the interval of measurement. Just looking at a query until the condition is true.
For my use case, which might be illegitimate use of blue/green deployment, I'm trying to perform rollout with the use of AnalysisTemplate which is based on a Prometheus metric.
As far as I understand, I can configure an
interval
of time during which the rollout is in progress. At the end of this interval, configured in the AnalysisTemplate, Rollouts checks if thesuccessCondition: result[0] <= 0.5
is met.If the value returned from my prom query is, in my case below or eq to 0.5, it's successful and new version gets promoted otherwise, it's fail.
If it is below at the beginning of the rollout but ends up above 0.5 after the interval duration, it fails.
Hopefully I'm understanding this right. From the tests that I've made, this is what I understood.
Now what if I want to ignore this interval of time, "running forever" and check every X min, until the successCondition is met. Would that be possible ?
I've tried to search for this kind of configuration but wasn't really successful. Maybe I'm twisting the purpose of this resource too much.
Also, I'm not sure I understand the
interval
andcount
parameters correctly. I find spec definition not so explicit about this. Maybe this is why I'm struggling here.Any help would be much appreciated :)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions