@philips-software/backstage-plugin-upptime-frontend
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @philips-software/backstage-plugin-upptime-frontend

Weekly Downloads

29

Version

1.0.1

License

Apache-2.0

Unpacked Size

26.1 kB

Total Files

10

Last publish

Collaborators

  • scottguymer
  • mfklauberg
  • herberttn
  • gertjanmaas
  • nadavsinai
  • npalm
  • jeroenknoops
  • philips-software-fa
  • bartgolsteijn