Files
backstage/plugins/rollbar
Patrik Oldsberg 74f74ccbdb Apply suggestions from code review
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2021-04-27 17:16:16 +02:00
..
2021-02-10 17:23:28 +01:00
2021-03-04 13:11:10 +00:00
2021-04-22 13:19:35 +00:00
2021-04-27 17:16:16 +02:00

Rollbar Plugin

Website: https://rollbar.com/

Setup

  1. Configure the rollbar backend plugin

  2. If you have standalone app (you didn't clone this repo), then do

yarn add @backstage/plugin-rollbar
  1. Add to the app EntityPage component:
// packages/app/src/components/catalog/EntityPage.tsx
import { EntityRollbarContent } from '@backstage/plugin-rollbar';

// ...
const serviceEntityPage = (
  <EntityPageLayout>
    ...
    <EntityLayout.Route path="/rollbar" title="Rollbar">
      <EntityRollbarContent />
    </EntityLayout.Route>
    ...
  </EntityPageLayout>
);
  1. Setup the app-config.yaml and account token environment variable
# app.config.yaml
rollbar:
  organization: organization-name
  # used by rollbar-backend
  accountToken: ${ROLLBAR_ACCOUNT_TOKEN}
  1. Annotate entities with the rollbar project slug
# pump-station-catalog-component.yaml
# ...
metadata:
  annotations:
    rollbar.com/project-slug: organization-name/project-name
    # -- or just ---
    rollbar.com/project-slug: project-name
  1. Run app with yarn start and navigate to /rollbar or a catalog entity

Features

  • List rollbar entities that are annotated with rollbar.com/project-slug
  • View top active items for each rollbar annotated entity

Limitations

  • Rollbar has rate limits per token