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

need cumulative counters #58

Open
srl295 opened this issue Feb 27, 2023 · 2 comments
Open

need cumulative counters #58

srl295 opened this issue Feb 27, 2023 · 2 comments

Comments

@srl295
Copy link

srl295 commented Feb 27, 2023

SO this is what I wanted to query: rate(count(github_workflow_run_status)[30m])

but it doesn't work, maybe because count() is an aggregate function(?). Probably better would be if there's an inbuilt cumulative counter for workflows of different status:

github_workflow_run_status_total{state="success"} - incremented on success
github_workflow_run_status_total{state="started"} - incremented when job is started (or if an otherwise-unknown job is seen)
github_workflow_run_status_total{state="error"}- incremented on err
github_workflow_run_status_total{state="queued"} - incremented when job is queued, not decremented when it leaves the queue
github_workflow_run_status_total{state="in_progress"} - incremented when job is in progress, NOT decremented when it completes

If jobs go from error/success back to started, then let them start incrementing again.

@AmitBaranes
Copy link

@srl295 did you manage to solve this?

@srl295
Copy link
Author

srl295 commented Jun 12, 2023

@srl295 did you manage to solve this?

Good question, I think I'm using this project instead #56 (comment)

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

No branches or pull requests

2 participants