roadie-backstage-plugins
roadie-backstage-plugins copied to clipboard
Add a Build Metrics card
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:
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 This would be awesome and we would happily accept a PR with this functionality. Shall I assign you to this issue?
@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 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 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 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.
Sounds good! Here's what I have: https://github.com/jessebye/backstage-plugin-buildkite-metrics
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.