Set up a Google Chat integration
You can configure the Red Hat Hybrid Cloud Console to send event notifications to a new or existing Google space in Google Chat. The Google Chat integration supports events from all Hybrid Cloud Console services.
The integration with the Hybrid Cloud Console notifications service uses incoming webhooks to receive event data. Each Red Hat account configures how and who can receive these events, with the ability to perform actions depending on the event type.
If you have any issues with the Hybrid Cloud Console integration with Google Chat, contact Red Hat for support. To open a Red Hat support case directly from the Hybrid Cloud Console:
- Click Help (the ? icon) to open the help panel.
- Select the My support cases tab.
- Click Open a support case and add information about the issue.
Google will not provide troubleshooting. The Hybrid Cloud Console integration with Google Chat is fully supported by Red Hat.
Configure incoming webhooks in Google Chat Copy linkLink copied!
In Google spaces, create a new webhook to connect with the Hybrid Cloud Console.
Before you begin Copy linkLink copied!
- You have a new or existing Google space in Google Chat.
Procedure Copy linkLink copied!
-
In your Google space, click the arrow on the space name to open the dropdown menu:
- Select Apps & Integrations.
- Click Webhooks.
-
Enter the following information in the Incoming webhooks dialog:
- Enter a name for the integration (for example, Engineering Google Chat).
- Optional: To add an avatar for the notifications, enter a URL to an image.
- Click Save to generate the webhook URL.
- Copy the webhook URL to use for configuration in the Hybrid Cloud Console.
Configure the Google Chat integration Copy linkLink copied!
Create a new integration in the Hybrid Cloud Console using the webhook URL from Google Chat.
Before you begin Copy linkLink copied!
- You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions. For more information about setting up Notifications administrator permissions, see Control team access to notification settings in the notifications documentation.
Note You cannot log in to the Hybrid Cloud Console with your email address unless your email address is the same as your Red Hat login. For more information, see ../get-started/access-hcc.dita#finding-login. - You have a Google Chat incoming webhook.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
Verify your configuration:
Create a test notification to confirm you have successfully connected Google Chat to the Hybrid Cloud Console:
- Next to your Google Chat integration on the Integrations > Communications page, click the options icon (⋮) and click Test.
- In the Integration Test screen, enter a message and click Send. If you leave the field empty, the Hybrid Cloud Console sends a default message.
- Open your Google space and check for the message sent from the Hybrid Cloud Console.
- In the Hybrid Cloud Console, go to Notifications > Event Log and check that the Integration: Google Chat event is listed with a green label.
Create the behavior group for the Google Chat integration Copy linkLink copied!
A behavior group defines which notifications will be sent to external services such as Google Chat when a specific event is received by the notifications service. You can link events from any Red Hat Hybrid Cloud Console service to your behavior group.
Before you begin Copy linkLink copied!
- You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions.
Note You cannot log in to the Hybrid Cloud Console with your email address unless your email address is the same as your Red Hat login. For more information, see ../get-started/access-hcc.dita#finding-login. - You have configured the Google Chat integration.
Procedure Copy linkLink copied!
- In the Hybrid Cloud Console, navigate to Settings > Notifications.
- Under Notifications, select Configure Events.
- Select the application bundle tab you want to configure event notification behavior for: Red Hat Enterprise Linux, Console, or OpenShift.
- Click the Behavior Groups tab.
- Click Create new group to open the Create behavior group wizard.
- Type a name for the behavior group and click Next.
- In the Actions and Recipients step, select Integration: Google Chat from the Actions drop-down list.
- From the Recipient drop-down list, select the name of the integration you created (for example, console-gchat) and click Next.
- In the Associate event types step, select one or more events for which you want to send notifications (for example, Policies: Policy triggered) and click Next.
- Review your behavior group settings and click Finish. The new behavior group is listed on the Notifications page.
What to do next Copy linkLink copied!
Verify your integration:
- Create an event that will trigger a Hybrid Cloud Console notification. For example, run
insights-clienton a system that will trigger a policy event. - Wait a few minutes, and then navigate to Google Chat.
- In your Google Space, check for notifications from the Hybrid Cloud Console.
- In the Hybrid Cloud Console, go to Settings > Notifications > Event Log and check for an event that shows the label Integration: Google Chat.
- If the label is green, the notification succeeded.
- If the label is red, the integration might need to be adjusted.
- If the integration is not working as expected, verify that the incoming webhook connector was properly created in Google Chat, and that the correct incoming webhook URL is added in the Hybrid Cloud Console integration configuration.
Note See Troubleshooting notification failures in the notifications documentation for more details.