azure-devops-exporter
azure-devops-exporter copied to clipboard
Question Metrics labels
Hi,
Thanks for the initiative, nicely written golang, only unittests missing 😉
I was trying out the exporter and checking the metrics, while question araised regarding labels for the metrics and before changing the behaviour wanted just to doublecheck, whenever I am missing anything
for example I have a metric azure_devops_repository_info. Metric example smth like:
azure_devops_repository_info{instance="host.docker.internal:8080",job="prometheus",projectID="fb540d14-e477-487a-8af2-a152aa0a328f",repositoryID="03124f65-c354-4fb6-aeba-956e3f43ccc4",repositoryName="HubDetect"}
I assume, that this ☝️ metric is for keeping the linkage between repositoryID and repositoryName and carries data about to which project repo belongs to
then I have azure_devops_project_info metric, as example
azure_devops_project_info{instance="host.docker.internal:8080",job="prometheus",projectID="fb540d14-e477-487a-8af2-a152aa0a328f",projectName="DIGMOWEB_POC"} 1
☝️ this metric seems like only to keep the linkage between projectID and projectName
then I have azure_devops_repository_commits metric, where I have a real metric about commits made to repository in ADO example of the metric:
azure_devops_repository_commits{instance="host.docker.internal:8080",job="prometheus",projectID="fb540d14-e477-487a-8af2-a152aa0a328f",repositoryID="03124f65-c354-4fb6-aeba-956e3f43ccc4"} 0
azure_devops_repository_commits metric labels projectID and repositoryID for out of the box, doesnt say a lot, so seems, I need to leftjoin azure_devops_repository_commits metric with azure_devops_repository_commits and azure_devops_project_info
The question - why you are not placing the repoName together with ProjectName to the azure_devops_repository_commits metric in the first place and removing the need of left_joins in prometheus?
Same applies not only for azure_devops_repository_commits, but also for azure_devops_repository_stats, azure_devops_repository_pushes etc.