Open sharkymcdongles opened 1 year ago
I had the same issue and even if I was requesting a subset of tags using regex, I was still getting the whole list. In the end I found out that it was the redis DB that was not cleaned killing the "gitlab-ci-pipelines-exporter-redis-master-0" pod and restart the exporter fixed the issue.
same problem running example/quickstart/docker-compose.yml with the following gitlab-ci-pipelines-exporter.yml
---
log:
level: debug
gitlab:
url: https://gitlab.com
token: <gitlab_personal_access_token>
# https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/main/docs/configuration_syntax.md
project_defaults:
pull:
refs:
enabled: true
regexp: "^(?:main|develop)$"
tags:
enabled: false
merge_requests:
enabled: true
projects:
- name: <project_name>
still scrapes ref-kind=tag
as seen below
...
time="2023-08-14T15:49:16Z" level=debug msg="could not find any pipeline for the ref" project-name=<project_name> ref=<ref_name> ref-kind=tag
time="2023-08-14T15:49:17Z" level=debug msg="could not find any pipeline for the ref" project-name=<project_name> ref=<ref_name> ref-kind=tag
time="2023-08-14T15:49:18Z" level=debug msg="could not find any pipeline for the ref" project-name=<project_name> ref=<ref_name> ref-kind=tag
...
@tan-wei-xin-alez I believe the tags
property should be in the refs
subtree
oh that's embarrassing σ(^_^;) I was also missing the branches
key (p_-)
seems to work now with the following config
---
log:
level: debug
gitlab:
url: https://gitlab.com
token: <gitlab_personal_access_token>
# https://github.com/mvisonneau/gitlab-ci-pipelines-exporter/blob/main/docs/configuration_syntax.md
project_defaults:
pull:
refs:
branches:
enabled: true
regexp: "^(?:main|develop)$"
tags:
enabled: false
merge_requests:
enabled: true
projects:
- name: <project_name>
Is something wrong with my config or is the tags enabled false not working properly?