Plugin that provides a card to display Buildkite pipeline metrics.
Add a proxy config like this to your app-config.yaml
:
proxy:
/buildkite/graphql:
target: https://graphql.buildkite.com/v1
headers:
Accept: 'application/json'
Content-Type: 'application/json'
Authorization:
$env: BUILDKITE_TOKEN
Then, in your packages/app/src/plugins.ts
add the plugin:
export { plugin as BuildkiteMetrics } from 'plugin-buildkite-metrics';
And finally, in the components/catalog/EntityPage.tsx
add the card:
<PipelineMetricsCard entity={entity} />