-
Notifications
You must be signed in to change notification settings - Fork 239
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
Multiple job status are exported at the same time for one job #814
Comments
I ran into the same problem. I think the first two metrics are actually for older jobs (the newest one without failure reason and the newest one with @cristina-defran Could you confirm this by checking the IDs in
Edit: It is actually not clear what ID the first metric will belong to. In general there are three options:
Based on @cristina-defran issue we can guess that option 2 will not be relevant it this particular case because we "know" that metric 2 (stuck_or_timeout_failure) belongs to an older job than metric 3 (script_failure) [and metric 1 (no failure_reason) always belongs to the newest job]. |
I'm afraid I no longer have the data for those results, so I cannot check the respective job IDs for the 3 results I gave. With the data I currently have, I can only see 2 results, a failed one (failure_reason="script_failure") and a successful one, both with different job IDs, so checking the job IDs for the latest one could work. This should be done by the exporter, and only export the latest one (the one with the highest ID value). With the exporter exporting the status for both jobs, the Grafana visualization does not show the proper information, and I haven't found a way to apply the highest job ID-filtering to the job status table. |
If I query the gitlab_ci_pipeline_job_status metric with a specific project, ref, source and job_name, I get multiple metrics with different status and/or failure_reason labels (in case of failure). This makes it impossible to know which one is the last status for the job.
For example, using this query:
I get these metrics, all with value 1:
Only the last status should be exported.
The text was updated successfully, but these errors were encountered: