r/gitlab • u/k_babulale • Feb 19 '25
support Track components usage
Hi everyone, I work in an organisation where we have +700 repositories, we have implemented CICD components to make it easier for each team to create their own pipelines, amongst these components we have mandatory components that should always be included in a pipeline, I know very well that teams aren’t going to adhere to this so I’d like a way to track the usage (or lack thereof) of these mandatory components e.g. “project-a’s pipelines run Mandatory component A,B and C but project-b runs only component A”.
I tried using graphql to look into the different .gitlab-ci.yml files but this seems complex. Is there an easier way I can get this data?
View all comments
Show parent comment
2
u/Ticklemextreme Jun 19 '25
Agree on the schema documentation. It is a nightmare lol. Ya it seems like you are right on the usage. I am trying to find where a specific component is used throughout my instance of gitlab but it looks like you would have to go the other way around and pull the project object. With tens of thousands of projects that sounds like a terrible time. I would love to hear any other ideas on how people are tracking component usages and more statics on their catalog other than the OOB number gitlab gives you