mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.31k stars 245 forks source link

404 Project Not Found #464

Open chris-rutherfurd opened 2 years ago

chris-rutherfurd commented 2 years ago

I have a read only personal access token to my cloud Gitlab account all setup with a wildcard rule to pickup all projects.

Logging into the kubernetes log stream it lists out several of the projects in my Gitlab account correctly but gives a error

"error":"GET https://gitlab.com/api/v4/projects/repo-name/repository/branches: 404 {message: 404 Project Not Found}","level":"warning","msg":"pulling refs from project","project-name":"repo-name","time":"2022-05-23T13:48:34Z"}

It is correctly connedcting to the API it appears as there is an info message reported right before the not found warnings saying,...

{"level":"info","msg":"scheduling refs from projects pull","projects-count":29,"time":"2022-05-23T13:48:32Z"}

My helm values.yml file has the following for the config values...

config:
  gitlab:
    token: #### Personal Access Token ####
    url: https://gitlab.com
  wildcards:
    - {}
acericdev commented 2 years ago

Same for me, I analysed it, and it does require the project id rather than the project path ... waiting for fix or maybe a setup config somewhere

brandonjwk commented 1 year ago

Looks like you can use namespaced names in addition to id.