mvisonneau / gitlab-ci-pipelines-exporter

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

webhook with error #727

Open aloisiobilck opened 9 months ago

aloisiobilck commented 9 months ago

When trying to use the webhook, I see this error in the log.

{"ip-address":"10.6.0.96:37224","level":"debug","msg":"webhook request","time":"2023-10-04T13:50:43Z","user-agent":"GitLab/16.3.4-ee"}
{"error":"context canceled","level":"error","msg":"reading ref from the store","project-name":"group/frontend","ref":"aloisio-test1","ref-kind":"branch","time":"2023-10-04T13:50:43Z"}

Below is the configuration of my helm chart

config:
  log:
    level: debug
  gitlab:
    url: https://gitlab.mycompany.com
    token: <token>
    enable_health_check: false
    enable_tls_verify: true

  server:
    enable_pprof: true
    webhook:
      enabled: true
      secret_token: <token>

  pull:
    projects_from_wildcards:
      on_init: false
      scheduled: false

    environments_from_projects:
      on_init: false
      scheduled: false

    refs_from_projects:
      on_init: false
      scheduled: false

    metrics:
      on_init: false
      scheduled: false

  projects:
    - name: group/frontend

serviceMonitor:
  enabled: true

redis:
  enabled: true
  metrics:
    enabled: true
    serviceMonitor:
      enabled: true

ingress:
  enabled: true
  hosts:
    - gitlab-ci-pipelines-exporter.mycompany.com

Gitlab webhook status: image

Am I doing something wrong?

vladimirblahoz commented 9 months ago

I have very similar helm values and exactly the same error. One more info - when the scheduled pulls are enabled, they work just fine on this configuration.

Art3mK commented 8 months ago

doesn't work for me with the latest release image (with redis, but works without redis), which is default in helm chart. Works fine with latest tag though.

Passarinho4 commented 8 months ago

The same issue in my case, @Art3mK your "solution" works fine. It looks like a bug in v.0.5.5