Replies: 1 comment
-
I think this is more a Prometheus question instead of Rollouts question. why not use the rate/increase/delta functions of prometheus ? This way you check if the rate is 0 (no new errors were added) or > 1 (new errors were present). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have read the Analysis docs, but most of the
failureCondition
andsuccessCondition
examples uses conditions likeresult[0] >= 7
orresult == 'true'
. What I want to achieve is that something like:I have a Prometheus metric called:
myapp_critical_errors
. Let's assume its current value at time t is7
. After I roll out the app, I expect this value not to increase. So this is where I have to check previous value:The following case means something gone wrong in the deployment and Argo CD should roll back.
I have to tell to Argo CD something like: "in current deployment, myapp_critical_errors metric's value is 7, if this value increases after next deployment, you have to roll back the deployment"
Q: How can I create the conditions in
AnalysisTemplate
to reproduce the following above case?Beta Was this translation helpful? Give feedback.
All reactions