Skip to main content
Travis CI Code Coverage Software License

A Charlesbot plugin to create an incident in Pagerduty and assign it to a specific service.

How does this work

This plugin adds the following two !help targets:

!lassie <service> [optional message] - Triggers a Pagerduty incident and assigns it to that service
!lassie services - Lists all the available Pagerduty services

Creating an escalation event triggers an incident in Pagerduty and assigns it to the specified service. Using a Slack interface that people are already comfortable with, this could be a very useful and efficient way of getting the attention of the right people during an emergency.

Installation

pip install charlesbot-pagerduty-escalations

Instructions for how to run Charlesbot are over at https://github.com/marvinpinto/charlesbot!

Configuration

First off, create one or more services in Pagerduty of type Generic API. This plugin makes use of a service’s Integration Key to trigger escalation events.

In your Charlesbot config.yaml, enable this plugin by adding the following entry to the main section:

main:
  enabled_plugins:
    - 'charlesbot_pagerduty_escalations.pagerdutyescalations.PagerdutyEscalations'

Then add a pdescalations dictionary block that looks something like:

pdescalations:
  service_mappings:
    service_one_name: 's1_pd_key'
    service_two_name: 's2_pd_key'

The name that you assign your service will be the name that shows up when a person issues the !lassie services command. The corresponding key here is the Integration Key associated with that service (in Pagerduty).

Sample config file

main:
  slackbot_token: 'xoxb-1234'
  enabled_plugins:
    - 'charlesbot_pagerduty_escalations.pagerdutyescalations.PagerdutyEscalations'

pdescalations:
  service_mappings:
    service_one_name: 's1_pd_key'
    service_two_name: 's2_pd_key'

License

See the LICENSE.txt file for license rights and limitations (MIT).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charlesbot-pagerduty-escalations-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file charlesbot-pagerduty-escalations-0.1.0.tar.gz.

File metadata

File hashes

Hashes for charlesbot-pagerduty-escalations-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e65c61e09d829b961ab77e65c50dae8e08afb37d556862122e5b398088ab9ed5
MD5 64b0c597d87ca296d6a3bc5044558a07
BLAKE2b-256 765fb027bedd1c93a52f0f12e903737243e3d334872c9c0d0e8deb02fc847dfc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

1 file

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page