pulsar

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

Pulsar


Build Status

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
api
bot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL