PagerDuty + Steampipe
PagerDuty is a platform for agile incident management.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
List disabled services in your PagerDuty account:
select name, id, statusfrom pagerduty_servicewhere status = 'disabled';
+-----------+---------+--------+| name | id | status |+-----------+---------+--------+| Steampipe | PE0PJEP | active |+-----------+---------+--------+
Documentation
Get started
Install
Download and install the latest PagerDuty plugin:
steampipe plugin install pagerduty
Credentials
Item | Description |
---|---|
Credentials | Get your user token or if you have Admin , Global Admin or Account Owner access within your PagerDuty account, generate a general authorization token. |
Resolution | 1. Credentials explicitly set in a steampipe config file (~/.steampipe/config/pagerduty.spc ).2. Credentials specified in environment variables, e.g., PAGERDUTY_TOKEN . |
Configuration
Installing the latest pagerduty plugin will create a config file (~/.steampipe/config/pagerduty.spc
) with a single connection named pagerduty
:
connection "pagerduty" { plugin = "pagerduty"
# Account or user API token # This can also be set via the `PAGERDUTY_TOKEN` environment variable. # token = "u+AtBdqvNtestTokeNcg"}
Get involved
- Open source: https://github.com/turbot/steampipe-plugin-pagerduty
- Community: Slack Channel