Skip to content

Commit

Permalink
Merge pull request backstage#4664 from athal7/patch-1
Browse files Browse the repository at this point in the history
Update Pagerduty setup instructions
  • Loading branch information
freben authored Mar 15, 2021
2 parents ec64623 + 3c58f9a commit 5f46e1e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions plugins/pagerduty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Add it to the app in `plugins.ts`:
export { plugin as Pagerduty } from '@backstage/plugin-pagerduty';
```

Add it to the `EntityPage.ts`:
Add it to the `EntityPage.tsx`:

```ts
import {
isPluginApplicableToEntity as isPagerDutyAvailable,
PagerDutyCard,
EntityPagerDutyCard,
} from '@backstage/plugin-pagerduty';
// add to code
{
Expand All @@ -60,6 +60,17 @@ pagerduty:
In order for the client to make requests to the [PagerDuty API](https://developer.pagerduty.com/docs/rest-api-v2/rest-api/) it needs an [API Token](https://support.pagerduty.com/docs/generating-api-keys#generating-a-general-access-rest-api-key).
Add the proxy configuration in `app-config.yaml`

```yaml
proxy:
...
'/pagerduty':
target: https://api.pagerduty.com
headers:
Authorization: Token token=${PAGERDUTY_TOKEN}
```

Then start the backend passing the token as an environment variable:

```bash
Expand Down

0 comments on commit 5f46e1e

Please sign in to comment.