Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics are not populated #697

Open
lcostea opened this issue Aug 10, 2023 · 0 comments · Fixed by HO-CTO/gitlab-ci-pipelines-exporter#1 · May be fixed by #887
Open

Topics are not populated #697

lcostea opened this issue Aug 10, 2023 · 0 comments · Fixed by HO-CTO/gitlab-ci-pipelines-exporter#1 · May be fixed by #887

Comments

@lcostea
Copy link

lcostea commented Aug 10, 2023

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.

sponte added a commit to HO-CTO/gitlab-ci-pipelines-exporter that referenced this issue Sep 2, 2024
This commit propages the topics from Gitlab project response into prometheus stats

Fixes  mvisonneau#697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant