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
Installation
The Pulsar Helm chart can be used for installation.
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!"
export PAGERDUTY_SERVICES_ID_LIST = "superSecret!"
export SLACK_CHANNELS_ID_LIST = "superSecret!"
export SLACK_CHANNELS_MESSAGE_HISTORY_SCAN_COUNT = "optional integer, 5 to 20 is good / default is 10"
Development
Commands are independent plugins loaded during start and can be found in the slack package.
See the example command.
Release
Increment the version and run make release
.