0.1.1 • Published 6 months ago

open-dora-backstage-plugin v0.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

OpenDORA Plugin for Backstage

Welcome to the OpenDORA plugin!

This plugin allows you to see DORA metrics for the teams within Backstage.

Setup

  1. Install this plugin:
# From your Backstage root directory
yarn --cwd packages/app add open-dora-backstage-plugin
  1. Make sure the OpenDORA backend is deployed.

  2. Configure the url from which the OpenDORA API is accessible.

# app-config.yaml
open-dora:
  apiBaseUrl: http://localhost:10666

Entity Pages

  1. Add a route to the plugin page:
// In packages/app/src/App.tsx
import { OpenDoraPluginPage } from 'open-dora-backstage-plugin';

...
const routes = (
  <FlatRoutes>
    {/* other routes... */}
    <Route path="/open-dora" element={<OpenDoraPluginPage />} />
  </FlatRoutes>
);
  1. Add the plugin as a tab to your side-navigation:
// In packages/app/src/components/Root/Root.tsx
export const Root = ({ children }: PropsWithChildren<{}>) => (
  <SidebarPage>
    <Sidebar>
      {/* other sidebar groups... */}
      <SidebarGroup label="Menu" icon={<MenuIcon />}>
        {/* other sidebar items... */}
        <SidebarItem icon={ExtensionIcon} to="open-dora" text="OpenDORA" />
      </SidebarGroup>

      {/* other sidebar groups... */}
    </Sidebar>
    {children}
  </SidebarPage>
);