Search

Chapter 6. Integrating Google Chat with the Red Hat Hybrid Cloud Console

download PDF

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.

Contacting Support

If you have any issues with the Hybrid Cloud Console integration with Google Chat, contact Red Hat for support. You can open a Red Hat support case directly from the Hybrid Cloud Console by clicking Help > Open a support case, or view more options from Help > Support options.

Google will not provide troubleshooting. The Hybrid Cloud Console integration with Google Chat is fully supported by Red Hat.

6.1. Configuring incoming webhooks in Google Chat

In Google spaces, create a new webhook to connect with the Hybrid Cloud Console.

Prerequisites

  • You have a new or existing Google space in Google Chat.

Procedure

  1. In your Google space, click the arrow on the space name to open the dropdown menu:

    1. Select Apps & Integrations.
    2. Click Webhooks.
  2. Enter the following information in the Incoming webhooks dialog:

    1. Enter a name for the integration (for example, Engineering Google Chat).
    2. Optional: To add an avatar for the notifications, enter a URL to an image.
    3. Click Save to generate the webhook URL.
    4. Copy the webhook URL to use for configuration in the Hybrid Cloud Console.

Additional resources

6.2. Configuring the Google Chat integration in the Red Hat Hybrid Cloud Console

Create a new integration in the Hybrid Cloud Console using the webhook URL from Google Chat.

Prerequisites

  • You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions.
  • You have a Google Chat incoming webhook.

Procedure

  1. In the Hybrid Cloud Console, navigate to Settings > Integrations.
  2. Select the Communications tab.
  3. Click Add integration.
  4. Select Google Chat as the integration type, and click Next.
  5. In the Integration name field, enter a name for your integration (for example, console-gchat).
  6. Paste the incoming webhook URL that you copied from your Google space into the Endpoint URL field, and click Next.
  7. Review the integration details and click Submit to enable the integration.

Your Google Chat integration is now listed on the Integrations > Communications page. Under Last connection attempt, the status is Ready to show the connection can accept notifications from the console.

Verification

Create a test notification to confirm you have successfully connected Google Chat to the Hybrid Cloud Console:

  1. Next to your Google Chat integration on the Integrations > Communications page, click the options icon (⋮) and click Test.
  2. 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.
  3. Open your Google space and check for the message sent from the Hybrid Cloud Console.
  4. In the Hybrid Cloud Console, go to Notifications > Event Log and check that the Integration: Google Chat event is listed with a green label.

Additional resources

6.3. Creating the behavior group for the Google Chat integration

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.

Prerequisites

  • You are logged in to the Hybrid Cloud Console as an Organization Administrator or as a user with Notifications administrator permissions.
  • You have configured the Google Chat integration.

Procedure

  1. In the Hybrid Cloud Console, navigate to Settings > Notifications.
  2. Under Notifications, select Configure Events.
  3. Select the application bundle tab you want to configure event notification behavior for: Red Hat Enterprise Linux, Console, or OpenShift.
  4. Click the Behavior Groups tab.
  5. Click Create new group to open the Create behavior group wizard.
  6. Type a name for the behavior group and click Next.
  7. In the Actions and Recipients step, select Integration: Google Chat from the Actions drop-down list.
  8. From the Recipient drop-down list, select the name of the integration you created (for example, console-gchat), and click Next.
  9. 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.
  10. Review your behavior group settings, and click Finish. The new behavior group is listed on the Notifications page.

Verification

  1. Create an event that will trigger a Hybrid Cloud Console notification. For example, run insights-client on a system that will trigger a policy event.
  2. Wait a few minutes, and then navigate to Google Chat.
  3. In your Google Space, check for notifications from the Hybrid Cloud Console.
  4. 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.
  5. 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 with the event log and integration settings in the notifications documentation for more details.

6.4. Additional resources

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.