The first set of AIOps skills delivered with watsonx Assistant for Z make use of OMEGAMON data to provide performance data for your environment. We plan to provide more skills in the future that will also leverage other tools such as IBM Z System Automation, IBM Z Workload Scheduler, IBM Z NetView, IntelliMagic, and others.
As a prerequisite, you must have an OMEGAMON z/OS agent running on your LPAR, and depending on which data you want to get, other OMEGAMON agents for subsystems such as Db2, etc.
Furthermore, IBM Service Management Unite (SMU), which is included in several Z AIOps suite offerings (e.g. in IBM Z Service Management Suite, IBM Z Monitoring Suite, or IBM Z Integration for Observability) enables the Z Assistant to gather metrics from OMEGAMON and other solutions via a centralized focal point.
Once the pre-requisites are in place, you can deploy and configure the AIOps integration server that is packaged with watsonx Assistant for Z on your OpenShift cluster and start to build your AIOps assistant.
In general, these are the steps to follow:
- Deploy and configure the embedded AIOps integration server
- Import AIOps skills
- Create AIOps Assistant that is enabled to run AIOps skills
- Define conversational flows in AIOps Assistant
- Test your assistant
Deploy and configure AIOps integration server
The AIOps integration server is delivered as a container that needs to be deployed in your OpenShift cluster that runs the watsonx Assistant for Z infrastructure. It is the same container that is also included with IBM Z ChatOps which is a component of multiple Z AIOps suites and products. It provides the API endpoints for the assistant skills but can also be used, for example, to forward alerts into ChatOps tools like Microsoft Teams or Slack. For more background, see the Z ChatOps documentation.
In this blog, I focus on leveraging it to provide skills for the assistant.
See the documentation on how to deploy the AIOps integration server container in your cluster. It involves creating a namespace, configuring the hostname and functional user of the SMU server, deploying the container in your cluster, and creating the authentication token.
Import AIOps skills
The prepackaged Z AIOps skills are included with the license of watsonx Assistant for Z and can be downloaded from Passport Advantage.
The skills are made available in the form of json files. Each json file has a “servers” section. Ensure that the server URL matches the server name of your deployed AIOps integration server in your cluster:
"servers": [
{
"url": "https://wxa4z-aiops-server.wxa4z-aiops.svc.cluster.local:4001/ibm/bnz/v1",
"description": "ChatOps 1142"
}
],
Next import the json files:
- Open the Skill studio and click Create > Import API
- As Source, select from a File and add each json file that describes an AIOps skills to the skill catalog.
- After importing and publishing the skills, they are available in the skills catalog and can be leveraged by an assistant. The skills appear und the IBM Z ChatOps app.
Create an AIOps Assistant that is enabled to run AIOps skills
- Open the AI assistant builder and create a new assistant
- Connect your new assistant to the AIOps integration server as described here. After successful connection, the AIOps skills are available to your assistant.
- Create assistant actions from the skills using the “Build an Action from skill” page in the AI assistant builder as described here.
- After having created an executable action in your assistant for each skill, it is a good time to test the single skills:
- Use the Preview mode to test that you can execute a single skill
- For example, type “get all lpars”. The assistant will recognize the corresponding skill which returns a list of LPARs with key performance data coming from OMEGAMON:
Define conversationsal flows in AIOps Assistant
You can now ask the assistant to run a single AIOps skill. On top of that you may want to define a conversational flow that allows users to drill-down into more details leveraging multiple skills in a sequence.
You define these assistant flows by defining a new action and using the Start from scratch option.
When defining the new action, you can train the assistant with one or more phrases that users will be able to use to start the flow. For example, you may want to specify “Show all Db2 instances” to start a flow that allows users to drill down into Db2 details.
You create a series of conversational steps. A step either runs a specific subaction (skill), or it asks a question to the user. Depending on the user’s response, the flow continues with the next step running a subaction, or the flow ends.
Recommended AIOps assistant flows are described here.
For example, this is how the skill flow for looking at Db2 subsystem details looks like in the AI assistant builder: