Discover Packages
github.com/sapcc/pulsar
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 14, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
pulsar
Interactive Slack bot for Supernova .
Features
List Prometheus alerts and Pagerduty incidents
Acknowledge Pagerduty incidents
List current Pagerduty on-call staff
List Kubernetes nodes in a cluster
Usage
The following secrets are provided via environment variables and are obtained after creating the Bot & enabling interactive messages in Slack via this page .
export SLACK_BOT_TOKEN = "topSecret!"
export SLACK_BOT_ID = "supernova"
export SLACK_ACCESS_TOKEN = "superSecret?"
export SLACK_VERIFICATION_TOKEN = "anotherSecret!"
export SLACK_AUTHORIZED_USER_GROUP_NAMES = "slackGroup1,slackGroup2"
export SLACK_KUBERNETES_USER_GROUP_NAMES = "slackGroup3"
export SLACK_KUBERNETES_ADMIN_GROUP_NAMES = "slackGroup4"
export PAGERDUTY_DEFAULT_EMAIL = "defaultUser@pagerduty.com"
export PAGERDUTY_AUTH_TOKEN = "superSecret!"
Development
Commands are independent plugins loaded during start and can be found in the slack package .
See the example command .
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
Click to show internal directories.
Click to hide internal directories.