Creating IBM watsonx.ai integrations

IBM watsonx.ai integrations is available only for technology preview, and is not for production usage.

An IBM watsonx.ai integration provides you access to two generative AI features in IBM Cloud Pak for AIOps: the Incident summarization algorithm to summarize the incidents and the Ops agent to diagnose the incidents. After you create the watsonx.ai integration, you can enable these algorithms using AI model management.

Prerequisites

  • For this integration, you must set up an IBM watsonx.ai project running on IBM Cloud (SaaS) in the Dallas or Frankfurt regions. On-prem installations of watsonx.ai are not supported for this integration. The project must be for use only by IBM Cloud Pak for AIOps under the Developer access panel.

    Tip:
  • From the watsonx.ai project that you set up, collect the following details:
    • Project ID: To find the project ID, see Finding the project ID in the watsonx.ai documentation.
    • watsonx.ai URL: To find the URL for watsonx.ai, go to the Developer Access panel on the watsonx.ai home page.
    • IBM Cloud API token: To find the IBM Cloud API token, see Managing user API keys in the IBM Cloud documentation. The IBM Cloud API token should be used only by the IBM watsonx.ai integration in IBM Cloud Pak for AIOps.

For more information about working with IBM watsonx.ai integrations, see the following sections:

Enabling the feature

To enable the configuration UIs to use the generative AI feature, you must create a feature flag configmap:

  1. Install the latest IBM Cloud Pak for AIOps.

  2. In Cloud Pak for AIOps namespace in the Red Hat OpenShift UI, go to Home > Search.

  3. Under the Resources dropdown, search for ConfigMap.

  4. Click the Create ConfigMap button.

  5. Paste the following YAML and create the configmap:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: feature-flag-configmap
    data:
      AIOPS_GENERATIVE_AI: enabled
    
  6. After a few seconds you should see that the AI Models UI and Connections UI pods have restarted.

Restart AI manager controller to apply configmap changes for incident summarization

  1. Open the Red Hat OpenShift user interface and go to Workloads then select Deployments.
  2. In the search bar, enter aimanager-operator-controller-manager.
  3. Select the matching deployment from the search results.
  4. Navigate to the Pods tab to view the currently running pods.
  5. Select the existing pod and click Delete Pod to start a deployment restart.
    • Red Hat OpenShift automatically schedules and creates a new pod with the updated configuration.
  6. Monitor the deployment until the new pod reaches the Running state.
  7. Go to Workloads then select Pods. Search for incident-summarizer pods, and verify that new pods are being created and reached the Running state.

Disabling the feature

To disable the feature:

  1. Delete the Incident summarization AI Model in the AI models UI.
  2. Delete the watsonx.ai integration.
  3. Disable the feature flag by setting the key to disabled.

Creating IBM watsonx.ai integrations

To create an IBM watsonx.ai integration, complete the following steps:

  1. Log in to IBM Cloud Pak for AIOps console.

  2. Expand the navigation menu (four horizontal bars), then click Define > Integrations .

  3. On the Integrations page, click Add integration.

  4. Navigate to the Generative AI category, find and click the IBM watsonx.ai tile.

  5. On the side-panel, review the prerequisites.

    IBM watsonx.ai integration

  6. Click Get Started.

  7. On the Add integration page, define the general integration details:

    • Name: Type in the display name of your integration.

    • Description: Provide an optional description for the integration.

      IBM watsonx.ai integration

    • watsonx.ai Project ID: Enter the ID of the watsonx.ai project that you want to use. See Finding the project ID in the watsonx.ai documentation.

    • watsonx.ai Runtime plan: Select from the following options:

      • Lite
      • Essentials or Standard
      • Custom
    • watsonx.ai URL: Enter the URL for watsonx.ai from the Developer Access panel on the watsonx.ai home page.

    • IBM Cloud API key: Enter the API key created in IBM Cloud from an account that has access to watsonx.ai and the watsonx.ai project. See Managing user API keys in the IBM Cloud documentation.

    • IBM Cloud IAM URL: Enter the IBM Cloud default access management URL for your account. This field usually does not need to be updated. .

  8. Click Next.

  9. On the Configure Proxy (Optional) page complete the following fields:

    • Connect to IBM watsonx.ai via a proxy server: Set the toggle button to on.

    • URL of HTTP proxy server: Enter a URL for the HTTP proxy server.

    • Port number of proxy server: Enter a port. The default is 8080.

    • Connect to proxy server with username and password: Set the toggle button to on.

    • Proxy username: Enter username that you want to log on to the proxy server with.

    • Proxy password: Enter password associate with the username that you want to log on to the proxy server with.

      IBM watsonx.ai integration

  10. Click Next.

  11. On the Configure token usage metering Optional page complate the following fields:

    • Limit IBM watsonx.ai token usage: Toggle limiting maximum watsonx.ai token usage for the integration.

    • Maximum IBM watsonx.ai token usage: Sets a cap on daily token usage for this integration. Limits reset daily at UTC midnight and there is no limit if not enabled. Daily token usage may slightly surpass the maximum limit since requests stop processing only when the limit is reached.

  12. Click Done.

    You will see the new integration appear in the list of IBM watsonx.ai integrations.

Editing IBM watsonx.ai integrations

After you create your integration, you can edit it. To edit a integration, complete the following steps:

  1. Log in to IBM Cloud Pak for AIOps console.

  2. Expand the navigation menu (four horizontal bars), then click Define > Integrations .

  3. Click the IBM watsonx.ai integration type on the Manage integrations tab of the Integrations page.

  4. On the IBM watsonx.ai integrations page, click the name of the integration that you want to edit. Alternatively, you can click the options menu (three vertical dots) for the integration and click Edit. The integration configuration opens.

  5. Edit your integration as required. Click Save when you are done editing.

Deleting IBM watsonx.ai integrations

If you no longer need your IBM watsonx.ai integration and want to not only disable it, but delete it entirely, you can delete the integration from the console.

To delete a integration, complete the following steps:

  1. Log in to IBM Cloud Pak for AIOps console.

  2. Expand the navigation menu (four horizontal bars), then click Define > Integrations .

  3. Click the IBM watsonx.ai integration type on the Manage integrations tab of the Integrations page.

  4. On the IBM watsonx.ai integrations page, click the options menu (three vertical dots) for the integration that you want to delete and click Delete.

  5. Enter the name of the integration to confirm that you want to delete your integration. Then, click Delete.

Your integration is deleted.