gitlab-ci-pipelines-exporter icon indicating copy to clipboard operation
gitlab-ci-pipelines-exporter copied to clipboard

Missing job metrics (enabled in config)

Open tony-engineering opened this issue 1 year ago • 5 comments

Hi, I tried to setup the exporter using Helm, and I am missing metrics for jobs. I searched in the issues here and saw similar issues without clear solution. I checked in my config that I enabled the export of jobs metrics, but that didnt help. When I go to Prometrheus UI, and search for "gitlab_ci_", I can only see "gitlab_ci_pipelines". I would expect to see "gitlab_ci_job_..." image

Here is my config

config:
  gitlab:
    url: https://gitlab.com
    # You can also configure the token using --gitlab-token
    # or the  environment variable
    token: <token>
  wildcards:
  - {}
  projects:
    - name: org/mint
  project_defaults:
    output_sparse_status_metrics: true
    pull:
      environments:
        enabled: false
        regexp: ".*"
        exclude_stopped: true
      refs:
        branches:
          enabled: true
          regexp: "^main|master$"
          most_recent: 0
          max_age_seconds: 0
          exclude_deleted: true
        tags:
          enabled: true
          regexp: ".*"
          most_recent: 0
          max_age_seconds: 0
          exclude_deleted: true
        merge_requests:
          enabled: false
          most_recent: 0
          max_age_seconds: 0
      pipeline:
        jobs:
          enabled: true
          from_child_pipelines:
            enabled: false
          runner_description:
            enabled: true
            aggregation_regexp: shared-runners-manager-(\d*)\.gitlab\.com
        variables:
          enabled: false
          regexp: ".*"

Can you help me here ? Thanks

tony-engineering avatar Feb 15 '24 17:02 tony-engineering

Somehow some additional metrics showed up after I uninstall / reinstall the chart multiple times ... I tried to rollback and the metrics are still shown, weird

tony-engineering avatar Feb 15 '24 17:02 tony-engineering

I have the same. No Job metrics are generated here is my config:

      project_defaults:
        refs:
          regexp: ".*"
        pull:
          refs:
            tags:
              enabled: false
            merge_requests:
              enabled: true
              max_age_seconds: 10800 # 3h
        pipeline:
          jobs:
            enabled: true
            runner_description:
              enabled: false
      wildcards:
        - owner:
            name: ubbleai
            kind: group
          pull:
            refs:
              tags:
                enabled: false
              merge_requests:
                enabled: true
                max_age_seconds: 10800 # 3h
            pipeline:
              jobs:
                enabled: true
                runner_description:
                  enabled: false

sebglon avatar Mar 20 '24 12:03 sebglon

same here

kingindanord avatar Jun 04 '24 08:06 kingindanord

same here

sara4dev avatar Aug 08 '24 02:08 sara4dev

after deleting the chart installation & reinstalling worked. I think there's some cache in redis in play here.

sara4dev avatar Aug 08 '24 02:08 sara4dev