Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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?


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
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,238 views 2 9
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