This plugin shows uptime and response statistics from an Upptime repository.
It works with both public and private repositories and uses the backend authentication you already have in place in your backend, for instance GitHub app authentication.
- Install the Upptime Plugin:
# From your Backstage root directory
yarn add --cwd packages/app @philips-software/backstage-plugin-upptime-frontend
- Add the
EntityUpptimeCard
to the EntityPage:
// packages/app/src/components/catalog/EntityPage.tsx
+ import { EntityUpptimeCard } from '@philips-software/backstage-plugin-upptime-frontend';
...
const overviewContent = (
<Grid container spacing={3} alignItems="stretch">
<Grid item md={6}>
<EntityAboutCard variant="gridItem" />
</Grid>
+ <Grid item md={6}>
+ <EntityUpptimeCard />
+ </Grid>
</Grid>
);
- Run the following commands in the root folder of the project to install and
- compile the changes.
yarn install
yarn tsc
- Add the
upptime.js.org/key
annotation to thecatalog-info.yaml
file of the - target repository for which upptime status is needed.
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: backstage
description: |
Backstage is an open-source developer portal that puts the developer
experience first.
annotations:
upptime.js.org/key: YOUR_INSTANCE_NAME/YOUR_PROJECT_KEY
spec:
type: library
owner: CNCF
lifecycle: experimental
YOUR_INSTANCE_NAME/
is optional and will query the default instance if not provided.