Open fyp711 opened 3 months ago
I do not think we should implement this.
It is a bit of an anti-pattern in metrics, and if you really feel you should conditionally store metrics you can perform that filtering at the collection stage rather than during emission.
Maybe I misunderstand the request. It looks like a feature request to add when clauses to realtime metrics.
I will submit a fix soon
A fix to do what?
@Joibel See this link https://github.com/argoproj/argo-workflows/pull/13441
A fix to do what?
@Joibel If the node is not fulfilled, real-time metrics should be computed and emitted
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
What happened? When I use the realtime metrics in templates level. The realtime metrics not emit in every template execution.
Here is a part of my workflow template
What did you expect to happen?
I think the realtime metrics need to be emitted as timely as possible. Look like above metrics configuration, i need when
{{duration}} > 100
, than emit the metrics. But Currently, it only supports sending after the nodeFulfilled
.Version(s)
main
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container