mvisonneau / gitlab-ci-pipelines-exporter

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

Topics are not populated #697

Open lcostea opened 1 year ago

lcostea commented 1 year ago

I added a topic (terraform) to our Gitlab project and the project is in the list of projects to monitor and it does appear in the metrics. But I don't see the topics being populated.

Screenshot 2023-08-10 at 11 06 44 Screenshot 2023-08-10 at 11 07 26

The config is like this:

  config:
    log:
      level: debug
    gitlab:
      url: https://gitlab.com
    pull:
      projects_from_wildcards:
        scheduled: true
        interval_seconds: 18000
      environments_from_projects:
        scheduled: true
        interval_seconds: 3600
      refs_from_projects:
        scheduled: true
        interval_seconds: 3600
      metrics:
        scheduled: true
        interval_seconds: 150
    project_defaults:
      pull:
        environments:
          enabled: true
        refs:
          branches:
            enabled: false
          tags:
            most_recent: 20
          merge_requests:
            most_recent: 20
    garbage_collect:
      projects:
        # Whether or not to trigger a garbage collection of the
        # projects when the exporter starts (optional, default: false)
        on_init: true
      environments:
        # Whether or not to trigger a garbage collection of the
        # environments when the exporter starts (optional, default: false)
        on_init: true
      refs:
        # Whether or not to trigger a garbage collection of the
        # projects refs when the exporter starts (optional, default: false)
        on_init: true
      metrics:
        # Whether or not to trigger a garbage collection of the
        # metrics when the exporter starts (optional, default: false)
        on_init: true
    projects:
      - name: [.....]/access-management

Any ideas what I am doing wrong and what else I could try? I think the Gitlab API called is List all projects https://docs.gitlab.com/ee/api/projects.html#list-all-projects for the authenticated user (token), so it is a big list which will be returned, which makes it hard to check if Gitlab actually returns the topics for my project, but for other projects (returned in the list all projects API call) it does.