Splunk-On-Call
Overview
Setup instructions
Install the plugin:
yarn add @backstage/plugin-splunkoncall
Add it to the app in plugins.ts:
export { plugin as Pagerduty } from '@backstage/plugin-splunkoncall';
Add it to the EntityPage.ts:
import {
isPluginApplicableToEntity as isSplunkOnCallAvailable,
SplunkOnCallCard,
} from '@backstage/plugin-splunkoncall';
// add to code
{
isSplunkOnCallAvailable(entity) && (
<Grid item md={6}>
<SplunkOnCallCard entity={entity} />
</Grid>
);
}
Client configuration
Providing the API Token
In order for the client to make requests to the SplunkOnCall API it needs an API Token.
Then start the backend passing the token as an environment variable:
$ SPLUNK_ON_CALL_API_KEY='' SPLUNK_ON_CALL_API_ID='' yarn start
This will proxy the request by adding X-VO-Api-Id and X-VO-Api-Key headers with the provided values.