74f74ccbdb
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Rollbar Plugin
Website: https://rollbar.com/
Setup
-
Configure the rollbar backend plugin
-
If you have standalone app (you didn't clone this repo), then do
yarn add @backstage/plugin-rollbar
- Add to the app
EntityPagecomponent:
// 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>
);
- Setup the
app-config.yamland account token environment variable
# app.config.yaml
rollbar:
organization: organization-name
# used by rollbar-backend
accountToken: ${ROLLBAR_ACCOUNT_TOKEN}
- 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
- Run app with
yarn startand navigate to/rollbaror 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