This datasource currently supports graph annotations showing incident information from PagerDuty, and can only be filtered by serviceId. To configure the datasource, you need to provide a read-only REST API key for PagerDuty. Please refer to the official documentation for instructions on how to create a REST API key.
This plugin is a Frontend only plugin: this means it's not possible to run alerting against it.
Add a new Annotation query following these instructions and make sure to choose PagerDuty as the datasource. In your annotation query you'll be able to provide a PagerDuty service id to filter incidents relevant to it.
-
Install dependencies
npm install
-
Build plugin in development mode and run in watch mode
npm run dev
-
Build plugin in production mode
npm run build
-
Run the tests (using Jest)
# Runs the tests and watches for changes, requires git init first npm run test # Exits after running all the tests npm run test:ci
-
Spin up a Grafana instance and run the plugin inside it (using Docker)
npm run server
-
Run the E2E tests (using Cypress)
# Spins up a Grafana instance first that we tests against npm run server # Starts the tests npm run e2e
-
Run the linter
npm run lint # or npm run lint:fix