pagerbot | Update Slack usergroups based on PagerDuty schedules | Chat library
kandi X-RAY | pagerbot Summary
kandi X-RAY | pagerbot Summary
Update your Slack user groups based on your PagerDuty Schedules. At Songkick, we use PagerDuty for managing our on call schedules. We also have a Slack user group pointing to the people currently on call, so anyone can ping them to alert them of any problems. But updating those user groups every week is both slightly boring, and easy to forget. So when you're working with two services that have APIs, why not automate it?. PagerBot is a simple program to do this. Provided with your PagerDuty and Slack API credentials, and some simple configuration, it will update the usergroups automatically, as well as posting a message to channels you select informing everyone who's currently on the rota.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- requestThing sends a GET request to the API
- main starts the updater .
- New creates a new API client
- Load loads configuration from a file
pagerbot Key Features
pagerbot Examples and Code Snippets
Community Discussions
Trending Discussions on pagerbot
QUESTION
I have deployed PagerBot https://github.com/stripe-contrib/pagerbot to our internal k8s cluster as a learning opportunity. I had fun writing a helm chart for it!
The bot appears to disconnect from slack at an unknown time and never reconnect. I kill the pod and the deployment recreates it and it connects again (we are using the Slack RTM option).
The pod logs the following entry when it disconnects:
...ANSWER
Answered 2018-Feb-27 at 06:35I would argue the best course of action is to extend pagerbot to surface more than just the string literal pong
in its /ping endpoint, then use that as its livelinessProbe
, with a close second being to teach the thing to just reconnect, as that's almost certainly cheaper than tearing down the Pod
Having said that, one approach you may consider is a sidecar container that uses the Pod's service account credentials to monitor the sibling's container (akin to if kubectl logs -f -c pagerbot $my_pod_name | grep "Closed connection to chat"; then kill -9 $pagerbot_pid; fi
type deal). That is a little awkward, but I can't immediately think of why it wouldn't work
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pagerbot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page