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

Jobs status by zombienet gitlab runner #1479

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Jobs status by zombienet gitlab runner #1479

merged 2 commits into from
Nov 10, 2023

Conversation

emamihe
Copy link
Collaborator

@emamihe emamihe commented Nov 5, 2023

This PR adds the feature for collecting the metrics for pipelines runs by zombienet gitlab runner and exposes the prometheus exporter

@emamihe
Copy link
Collaborator Author

emamihe commented Nov 5, 2023

@pepoviola the personal access token that I use for accessing the metrics from gitlab throws the unauthorized error:

Traceback (most recent call last):
  File "/usr/src/app/./metrics.py", line 54, in <module>
    main()
  File "/usr/src/app/./metrics.py", line 50, in main
    fetch_jobs_by_runner(RUNNER_ID)
  File "/usr/src/app/./metrics.py", line 31, in fetch_jobs_by_runner
    response.raise_for_status()  # Raise an exception for HTTP errors
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://gitlab.parity.io/api/v4/runners/175886/jobs

For the runner ID 175886 which is Zombienet gitlab runner, I guess I need more privileged token which my script can collect the metrics for it which then I can turn it into grafana dashboards

@emamihe emamihe self-assigned this Nov 5, 2023
@pepoviola
Copy link
Collaborator

Hi @emamihe this is still pending for the token from ci/cd right?

@emamihe
Copy link
Collaborator Author

emamihe commented Nov 10, 2023

it is done, and the panel added to zombie status dashboard @pepoviola

@pepoviola pepoviola merged commit 2e3500e into main Nov 10, 2023
22 checks passed
@pepoviola pepoviola deleted the jobs_status branch November 10, 2023 11:23
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.

3 participants