0.0.5 • Published 4 years ago
codeclimate-collector-pagerduty v0.0.5
Code Climate Collector: PagerDuty
A collector integration for Code Climate Velocity to collect data from PagerDuty.
Configuration
Expects configuration of the following schema:
{
apiToken: "your_v2_api_token" # only needs read-only access
}
See PagerDuty's docs for guidance on creating API keys.
Development
Clone this repo, run yarn install
to install dependencies. yarn test
will
run unit tests.
Running the collector locally
To run the collector in an integration environment, the
codeclimate-collector-sdk
provides a CLI you can use.
First, generate a PagerDuty token, and write a file in this project's directory
called collector-config.json
with the that token:
{
"apiToken": "YOUR_TOKEN"
}
There are several make rules to run different commands easily:
make verify-configuration
make discover-streams
make sync-stream
Development
See DEVELOPERS.md