Merge pull request #4664 from athal7/patch-1

Update Pagerduty setup instructions
This commit is contained in:
Fredrik Adelöw
2021-03-15 18:32:00 +01:00
committed by GitHub
+13 -2
View File
@@ -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
{
@@ -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