mvisonneau / gitlab-ci-pipelines-exporter

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

add username / pipeline id for lat pipeline to default labels #767

Closed kiwiidb closed 7 months ago

kiwiidb commented 7 months ago

In the context of actionable alerts we found it useful to add the Gitlab username to the labels. We didn't extensively test this so I don't know if you can just simply add it like this without any problems, but it seems to work for us. Maybe there is a smarter way to do this because right now the labels are probably being thrown on metrics where they don't belong.