mvisonneau / gitlab-ci-pipelines-exporter

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

MR pipelines sent through webhooks are rejected. #677

Closed tidalf closed 1 year ago

tidalf commented 1 year ago

Hello,

I've setup gcpe (using yesterday's latest) to accept webhooks. It works great for most pipelines, but it seems that some are missing (those ran as "merge request pipelines") :

{"ip-address":"10.xx.xx.xx:34170","level":"debug","msg":"webhook request","time":"2023-06-27T18:16:52Z","user-agent":"GitLab/16.1.0-ee"}                                                                          │
│ {"level":"info","msg":"ref not configured in the exporter, ignoring pipeline webhook","project-name":"xxxxxxxxxxrepo","ref":"7053","ref-kind":"merge-request","time":"2023-06- │

One working example (a branch pipeline):

{"level":"info","msg":"received a pipeline webhook from GitLab for a ref, triggering metrics pull","project-name":"xxxx","ref":"renovate/renovate-35.x","ref-kind":"branch","time":"2023-06-27T17:07 │
│ {"jobs-count":3,"level":"debug","msg":"found pipeline jobs","pipeline-id":573102,"project-name-or-id":"xxxxx","time":"2023-06-27T17:07:05Z"}                                                          │
│ {"bridges-count":0,"level":"debug","msg":"found pipeline bridges","pipeline-id":573102,"project-name-or-id":"xxxxx","time":"2023-06-27T17:07:06Z"}                                                    │
│ {"level":"debug","msg":"fetching pipeline test report","pipeline-id":573102,"project-name":"xxxxxx","ref":"renovate/renovate-35.x","time":"2023-06-27T17:07:06Z"}         

Any tips to fix that ?

Thanks a lot !

tidalf commented 1 year ago

merge request ref pull wasn't enabled in the config, it works then, my bad.