Enterprise Server: How to Set Up Slack and PagerDuty Integration
In order to provide notifications about issues discovered in your database, pganalyze provides support for integrating with Slack or PagerDuty. These integrations require additional setup for pganalyze Enterprise Server.
Slack
First you will need to create your own Slack "app". You should be able to follow the Slack instructions. It does not need to be a published app. Once this is done, go through the following:
- Under Oauth & Permissions in the Slack app, the redirect URLs should include the address where you're hosting pganalyze—e.g., https://app.pganalyze.com for the public pganalyze app
- On the same page, the Scopes should be "channels:read" and "chat:write"
- Copy the generated Client ID and Client Secret and set those as environment variables
SLACK_CLIENT_ID
andSLACK_CLIENT_SECRET
in your pganalyze container configuration - Restart the pganalyze Enterprise Server container to apply the new configuration
- Install your Slack app to your Slack workspace: You can do this in Slack through the Apps section in the left-hand menu
- In pganalyze, go to the Integrations tab in the Settings page and enable the Slack integration
PagerDuty
You will need to create a new integration in PagerDuty. You should be able to follow the PagerDuty instructions. Once this is done, go through the following:
- Under Event Integration in PagerDuty, the Simple Install Flow should include the address where you're hosting pganalyze—e.g., https://app.pganalyze.com for the public pganalyze app (make sure to save your changes when done)
- Copy the
app_id
from Integration Setup URL in that same section section (note that this is not the same id you see in the URL bar), and add that as thePAGERDUTY_APP_ID
environment variable to your pganalyze configuration - Restart the pganalyze Enterprise Server container to apply the new configuration
- In pganalyze, go to the Integrations tab in the Settings page and enable PagerDuty integration
Couldn't find what you were looking for or want to talk about something specific?
Start a conversation with us →