Skip to content
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

feat: add exit_code label to execution_done_count #1576

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

atmosx
Copy link
Contributor

@atmosx atmosx commented Sep 9, 2024

The exit_code label adds useful information to the execution_done_count metric. The exit codes are usually 0, 1 or 127, this is a low cardinality metric.

This label will allow us use promQL to perform standard operations like calculate the number of failed vs total jobs.

The `exit_code` label adds useful information to the `execution_done_count` metric.
The exit codes are usually `0`, `1` or `127`, this is a low cardinality metric.

This label will allow us use promQL to perform standard operations like calculate
the number of failed vs total jobs.
@atmosx
Copy link
Contributor Author

atmosx commented Sep 9, 2024

Fixes #1570

vcastellm
vcastellm previously approved these changes Sep 10, 2024
Copy link
Member

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks for the contrib!

@atmosx
Copy link
Contributor Author

atmosx commented Sep 10, 2024

@vcastellm sorry, made a mistake and pushed two commits to this repo. These were meant for another repo to get a working version of the metric with the new label, dropped the additional commits and force-pushed.

@vcastellm vcastellm merged commit a162b3f into distribworks:main Sep 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants