AndreyVMarkelov / prom-bitbucket-exporter

Prometheus Exporter for Bitbucket
https://marketplace.atlassian.com/plugins/ru.andreymarkelov.atlas.plugins.prom-bitbucket-exporter/server/overview
BSD 2-Clause "Simplified" License
52 stars 21 forks source link

New Metrics #8

Open aviorma opened 6 years ago

aviorma commented 6 years ago

I would like to expose those metrics:

  1. pull requests created time per repository and the labels of it can be: pull request name, commit id, author, message, repository, user, state (confirmed or not etc ..), beach from, beach to; The value should be the the time passed since the pull request created.
  2. Last branch commit time and labels can be: beach, repository, author..
  3. Number of commits per repository.
  4. Total Size of repository
  5. Number of clones per repository (ever)
  6. Last pushed to master per repository , labels: commit, author, repository,

Thanks !!

AndreyVMarkelov commented 6 years ago
  1. Done
kamrajshahapure commented 6 years ago

@AndreyVMarkelov Regarding your comment "4. Done", can you help me which metric in the Prometheus endpoint is showing "Total Size of repository" because I am not able to see any metric with that metric. Thanks for the plugin development, turned out to be really useful :+1:

AndreyVMarkelov commented 6 years ago
  1. Now there is counter for clone events
Trivikramreddy commented 6 years ago

@AndreyVMarkelov Can you add metrics like how long did it take to clone particular repository. Thanks for your precious time.

travisghansen commented 4 years ago

I could be off here as this is not my area but I've seen a screenshot from someone showing fetch, shallow clone, and push events in addition to the clone event. Can those be added in the same fashion as the clone metrics?