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

Add status label to time fields to properly represent time for appropriate run success vs failed or canceled, etc. #43

Closed
virtuman opened this issue Dec 17, 2019 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@virtuman
Copy link

Currently it doesn't have a label for status of the pipeline, and it results in skewed reports. We have failed pipelines, and no way to filter them out from the reports.

Would be great to add status label to the time-specific metrics, then we could display HEALTHY & RUNNING based on true successful runs only.

Thank you for your consideration.

@mvisonneau
Copy link
Owner

👋 Hey @virtuman thanks for raising the issue. I am not sure to understand what you are looking for though? 🤔 at first sight having this kind of label does not seem to be aligned with the prometheus/open metrics philosophy?

@mvisonneau mvisonneau added the question Further information is requested label Dec 19, 2019
@mvisonneau mvisonneau added the help wanted Extra attention is needed label Feb 3, 2020
@lovelaced
Copy link

lovelaced commented Jun 16, 2020

Maybe I can clarify because this sounds like an issue I'm also having. I would like to definitively discern between the status of jobs. Some jobs are still technically "running" but are actually cancelled, or pending. They should not be labeled running indefinitely, they should pick up cancelled/failed labels correctly and ideally establish if there is a paused or pending job in the pipeline to trigger some sort of label in the pipeline like "has_pending_jobs" so they can be filtered out of the running job status, for instance - would be good to see which pipelines are actively running jobs rather than stuck with cancelled/pending.

@spacez320
Copy link

@virtuman If you're using Prometheus, this PromQL query would get you Pipeline runtimes while excluding those that are not succeeded.

gitlab_ci_pipeline_last_run_duration_seconds and on (project) gitlab_ci_pipeline_last_run_status{status="success"} == 1

@mvisonneau
Copy link
Owner

I believe this was also an effect of the jobs refresh errors highlighted in #119 and #150. There was also some errors in the dashboard which I fixed recently. I assume this will be sorted with the 0.4.0 release. Feel free to reopen if not!

@mvisonneau mvisonneau self-assigned this Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants