Integrate with Slack
On this page
You can integrate Ops Manager with Slack to receive Ops Manager alerts in your Slack channel.
Prerequisites
To integrate Ops Manager with Slack, you must:
Procedure
To integrate Ops Manager with Slack and receive alerts in your Slack channel:
Retrieve your Ops Manager redirect URL.
Navigate to your Ops Manager Application.
In the Ops Manager Application, click the Admin link in the upper right corner of the page.
Click the General tab and then click Ops Manager Config.
Copy the URL in the URL To Access Ops Manager.
Important
The URL is required in a later step.
Create a Slack app.
Navigate to Your Apps.
Click Create New App. The Create an app modal displays.
Click From scratch. The Name app & choose workspace modal displays.
In the App Name field, enter a name for your Slack app.
From the Pick a workspace to develop your app in: dropdown, select an available Slack workspace.
Click Create App. The app configuration page displays.
Configure app permissions.
Click Permissions under the Add features and functionality section. The OAuth & Permissions page displays.
Under the Redirect URLs section, click Add New Redirect URL. A text field displays.
Enter the text description, such as:
URL To Access Ops Manager
and click Add.Click Save URLs.
Navigate to the Scopes section and locate User Token Scopes.
Click Add an OAuth Scope. A dropdown list of available OAuth scopes displays.
From the dropdown, select the chat:write scope.
Manage app distribution.
Return to the app configuration page.
Navigate to the Basic Information section and click Manage Distribution.
Click Distribute app and review the available distribution options. You can share your app with your workspace, other workspaces on your grid, or other workspaces outside your grid.
Set your Ops Manager slack.oauth2.clientId and slack.oauth2.clientSecret.
Navigate to your Ops Manager Application.
In the Ops Manager Application, click the Admin link in the upper right corner of the page.
Click the General tab and then click Ops Manager Config.
From the list of tabs at the top of the page, select Custom.
In the displayed Key text box, enter
slack.oauth2.clientId
.In the displayed Value text box, enter your Client ID value.
Click Add Option.
In the displayed Key text box, enter
slack.oauth2.clientSecret
.In the displayed Value text box, enter your Client Secret value.
Click Save.
Perform the integration.
Complete the steps to modify Slack integration settings.