Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.64 KB

File metadata and controls

68 lines (52 loc) · 1.64 KB

upptime-frontend

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.

Getting Started

  1. Install the Upptime Plugin:
# From your Backstage root directory
yarn add --cwd packages/app @philips-software/backstage-plugin-upptime-frontend
  1. 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>
 );
  1. Run the following commands in the root folder of the project to install and
  2. compile the changes.
yarn install
yarn tsc
  1. Add the upptime.js.org/key annotation to the catalog-info.yaml file of the
  2. 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.

Links