roadie-backstage-plugins icon indicating copy to clipboard operation
roadie-backstage-plugins copied to clipboard

Add a Build Metrics card

Open jessebye opened this issue 3 years ago • 6 comments

Feature Suggestion

Add a Build Metrics card showing the available pipeline metrics: average build time, reliability, and build frequency.

Possible Implementation

These metrics are already available from the Buildkite GraphQL API, and we've built out a component to show them: Screen Shot 2021-03-17 at 10 10 55 AM

We would be happy to contribute this to this plugin if you are interested.

Context

We love the Buildkite pipeline overview page that visually shows pertinent metrics like how often builds fail, their average time, etc. And we'd like to see this data represented in Backstage since it's highly valuable to seeing how a service is doing.

jessebye avatar Mar 17 '21 17:03 jessebye

@jessebye This would be awesome and we would happily accept a PR with this functionality. Shall I assign you to this issue?

dtuite avatar Mar 17 '21 20:03 dtuite

@dtuite sure! Does it make sense to incorporate this functionality into this plugin, or create a new plugin for it? It uses the GraphQL API, not the Rest API, so there's not as much overlap.

jessebye avatar Mar 17 '21 22:03 jessebye

@jessebye I think plugins should export a number of different styles and types of widgets and tab views so that the user can pick and choose the views which make the most sense to them.

Assuming the existing functionality can be replicated with the GraphQL API then I would prefer to migrate it over and proceed from there. The GraphQL API will mesh more with the future direction of Backstage anyway.

dtuite avatar Mar 17 '21 23:03 dtuite

@dtuite Yes, I agree that rewriting existing functionality in GraphQL would be good. I don't really have the bandwidth for that though... I'm happy to share the code I've written so far for my plugin, but probably won't have the time to refactor the existing plugin into GraphQL.

jessebye avatar Mar 19 '21 15:03 jessebye

@jessebye that would be amazing if you could share the code. We will try to handle the migration internally. We have hired someone to work on plugins and OSS basically full time so there should be a lot more activity in this area soon.

dtuite avatar Mar 19 '21 16:03 dtuite

Sounds good! Here's what I have: https://github.com/jessebye/backstage-plugin-buildkite-metrics

jessebye avatar Mar 19 '21 16:03 jessebye

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 31 '23 10:10 github-actions[bot]