-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to substitute parameters for metric #8207
Labels
Comments
@dpadhiar can you take a look? |
@motybz Hi, could you provide the workflow YAML so we may reproduce the bug? Thank you. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
The issue appears in 3.4.4. apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: test-runner
namespace: test
spec:
entrypoint: main
podGC:
strategy: OnWorkflowSuccess
serviceAccountName: operate-workflow-sa
templates:
- name: main
steps:
- - continueOn:
error: true
failed: true
name: runTest
template: run-test
- container:
name: runner
image: alpine
args:
- exit 1
command:
- sh
- -c
metrics:
prometheus:
- counter:
value: "1"
help: Count of runs by exit code
labels:
- key: exit_code
value: '{{exitCode}}'
name: runs_exit_status_counter
name: run-test
retryStrategy:
limit: "1" workflow-controller log:
When exit code is |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I have repro the issue and will work on a fix for this. |
This was referenced Feb 6, 2023
This comment was marked as resolved.
This comment was marked as resolved.
terrytangyuan
pushed a commit
that referenced
this issue
Mar 27, 2023
(#10489) Signed-off-by: Jiacheng Xu <[email protected]> Co-authored-by: Saravanan Balasubramanian <[email protected]>
terrytangyuan
pushed a commit
that referenced
this issue
Mar 29, 2023
(#10489) Signed-off-by: Jiacheng Xu <[email protected]> Co-authored-by: Saravanan Balasubramanian <[email protected]>
JPZ13
pushed a commit
to pipekit/argo-workflows
that referenced
this issue
Jul 4, 2023
…8207 argoproj#10463 (argoproj#10489) Signed-off-by: Jiacheng Xu <[email protected]> Co-authored-by: Saravanan Balasubramanian <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all, thank you for a great framework!
Summary
We are using Argo 3.2.9
We are exporting metrics to Prometheus and it seems that part of the variables is not resolved.
The problematic metrics are {{exitCode}} and {{resourcesDuration.cpu}}
The errors are:
unable to substitute parameters for metric 'step_result_counter': failed to resolve {{exitCode}}
unable to substitute parameters for metric 'cpu_duration_gauge': failed to resolve {{resourcesDuration.cpu}}
Diagnostics
Not working metric
Not working metrics
Working metric
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: