Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket Cloud: How to Get Pull Request Metrics for Muliple Repos or at Project Level

We want to create Grafana dashboards with delivery metrics at a project / team level. We currently have the metrics at a repo level but want aggregate data at a team or project level. The metrics are pretty standard (examples below).

  • Open Pull Requests
  • Average Time to Merge
  • Number of new pull requests/week
  • Average lines changed

Has anyone done this? 

2 answers

Hi @Tara Lynch we'd like to do the same thing and I ran across your question.  i want to pull Bitbucket events, including PRs, commits, and deploys (via bitbucket pipeline) into Grafana Cloud.

Did you ever get this sorted out?

Thanks

Hi, @Greg We did end up figuring this out by extending the API. We are putting the data in tables in PostgreSQL and then use Tableau to analyze the data and create dashboards. I'm going to have the engineer who did the hard work pop on and explain what he did. We also created a custom script to grab the data from PostgreSQL and put in a time series DB for Grafana.

That would be great, thanks so much @Tara Lynch 

I'm currently looking into Webhook Relay for this use case as well to ingest, transform, and forward webhook events.

"We currently have the metrics at a repo level"

Do you use Prometheus as the source?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you