gitlab-ci-pipelines-exporter: Jobs not working with webhook
Hey @mvisonneau,
First, thank you for this great project ๐
Iโm currently facing an issue with a configuration with Gitlab sending webhooks to the exporter, hosted in AKS
Pipeline events are correctly,exported, though iโm not sure whether they are pushed or pulled :
{"environments-count":0,"level":"info","msg":"scheduling metrics pull","refs-count":60,"time":"2020-11-20T16:16:05Z"}
Regarding the Job events, I have these errors in the logs, and no metrics showing in Grafana
{"event-type":"*gitlab.JobEvent","ip-address":"10.1.0.67:43490","level":"warning","msg":"received a non supported event type as a webhook","time":"2020-11-20T16:15:37Z","user-agent":""}
Here is the conf I used :
gitlab:
url: https://gitlab.blablabla
token: "{{ gitlab__token }}"
wildcards:
owner:
name: me
kind: user
include_subgroups: true
pull:
refs:
regexp: ".*"
pipeline:
jobs:
enabled: true
Could you help me on this part please ? And could you confirm the โpullโ section in configuration file also apply to webhook ?
Thanks a lot Regards Igor
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (19 by maintainers)
yep that is expected, I took a shortcut here, this not very optimized ๐
Ah, it seems setting
on_init: truefor projects + refs fixes something. Now the webhook seems to work after lots of discovering ๐Havenโt looked into the code so far, but maybe there is an empty var so nothing to compare to, when using the webhook?
I updated the examples/webhooks to make it clearer btw ๐