omegamon-insights-agent

by joaquinito2051

Helm chartv1.5.0App 1.0.0Apache-2.0

A Helm chart for deploying the omegamon-insights-agent

About this chart

IBM Z OMEGAMON Insights Agent

Overview

The IBM Z OMEGAMON Insights Agent enables system programmers to retrieve and analyze system information through the Watsonx Assistant for Z chat interface. It provides accurate insights by leveraging OMEGAMON data.

Agent capabilities

Agent capabilityDescription
Retrieves Db2 subsystem detailsProvides metadata and status information about Db2 subsystems, including configuration, buffer pools, and health.
Retrieves IMS system detailsDisplays IMS system data, region details, and overall system status for monitoring and analysis.
Retrieves JVM system informationRetrieves JVM system data and lock runtime metrics for workload monitoring and analysis.
Retrieves LPAR system detailsDisplays LPAR system details and job statuses for performance monitoring and analysis.
Retrieves network detailsDisplays network system information and TCP listener metrics for monitoring and analysis.
Retrieves storage informationDisplays storage system information, volume details, and dataset statuses for performance monitoring and analysis.
Retrieves CICSplex and CICS region detailsDisplays CICSplex system information, region details, and transaction statuses for monitoring and analysis.
Retrieves MQ subsystem detailsDisplays MQ system information and queue statuses for performance monitoring and analysis.
Monitors OMEGAMON eventsRetrieves events from OMEGAMON for different systems.

Prerequisites

Ensure the following:

Deployment Guide

The IBM Z OMEGAMON Insights Agent is deployed using a Custom Resource (CR) definition. The CR provides a declarative way to manage the agent deployment through the agent operator.

Prerequisites

Before deploying the agent, ensure:

  1. The agent operator is installed and running in your cluster
  2. The target namespace exists
  3. The AIOps integration server is installed and configured

Step 1: Create Secrets

The agent requires Kubernetes Secrets containing sensitive configuration values. Never commit secrets to version control.

Secret Types

The agent uses two types of secrets:

  1. Global Secrets (wxa4z-watsonx-credentials): Shared across all agents
  2. Agent-Specific Secrets (wxa4z-omegamon-insights-agent-secrets): Unique to this agent

Agent-Specific Secret Reference

Create a secret with the following structure. All values must be base64-encoded.

apiVersion: v1
kind: Secret
metadata:
  name: wxa4z-omegamon-insights-agent-secrets
  namespace: ""  # REQUIRED: Must match the agent namespace
type: Opaque
data:
  # Agent Authentication (base64-encoded, REQUIRED)
  AGENT_AUTH_TOKEN: ""  # REQUIRED: Agent auth token for registration with WxO. A default value "AGENT_AUTH_TOKEN" is set if not provided, but you should configure a proper token.
  AIOPS_BASE_URL: ""  #https://wxa4z-aiops-server.wxa4z-aiops.svc.cluster.local:4001/ibm/bnz/v1
  # AIOps Configuration (base64-encoded, optional)
  AIOPS_TOKEN: ""  # Optional: Token for AIOps server. Defaults to empty if not provided.
  

Important:

  • AGENT_AUTH_TOKEN is required for agent registration with watsonx Orchestrate.

Creating the Secret

  1. Save the secret configuration to a file (e.g., omegamon-insights-agent-secret.yaml)
  2. Update the namespace and base64-encode all secret values
  3. Apply the secret:
oc apply -f omegamon-insights-agent-secret.yaml
  1. Verify the secret was created:
oc get secret wxa4z-omegamon-insights-agent-secrets -n <namespace>

Step 2: Deploy Agent using Custom Resource (CR)

Configuration Parameters

The following table outlines the key configuration parameters:

ParameterDescriptionRequired
metadata.namespaceTarget namespace for agent deploymentYes
spec.tenantIdTenant identifier for multi-tenancy supportYes
spec.chart.versionHelm chart version to deployYes
spec.values.env.WATSONX_MODEL_IDLLM Model ID (e.g., "meta-llama/llama-3-3-70b-instruct")Yes
spec.values.env.MODEL_RUNTIMEMODEL RUNTIME (e.g., "openai_protocol")Yes
spec.values.secrets.nameName of agent-specific secretsYes
spec.values.global.secrets.nameName of global shared secretsYes
spec.values.env.AIOPS_BASE_URLThe endpoint URL for the AIOps serverYes

CR Definition

Below is the complete Custom Resource definition. Update the placeholder values according to your environment:

apiVersion: wxa4z.watsonx.ibm.com/v1alpha1
kind: AgentService
metadata:
  name: omegamon-insights-agent
  namespace: ""  # REQUIRED: Target namespace (e.g., wxa4z-agents)
  labels:
    wxa4z.watsonx.ibm.com/managed-by: agent-operator
spec:
  releaseName: omegamon-insights-agent
  namespace: ""  # REQUIRED: Must match metadata.namespace
  tenantId: ""  # REQUIRED: Tenant identifier for multi-tenancy support
  wxa4z-core-services-namespace: wxa4z-zad  # Namespace where wxa4z core services are deployed
  
  agentDetails:
    - agentName: omegamon-insights-agent
      agentId: wxa4z:omegamon-agent-z:agent
      description: 'Enables system programmers to retrieve and analyze OMEGAMON system information'
      bootstrapConfig:
        name: "omegamon-insights-agent-bootstrap-config"
        fileName: "omegamon_insights_agent_bootstrap_config.yaml"
  
  chart:
    repository: oci://cp.icr.io/cp/ibm-watsonx-assistant-for-z
    name: omegamon-insights-agent
    version: "1.5.0"  # Update to the desired chart version
    # Uncomment if using a private registry:
    # pullSecrets:
    #   - name: wxa4z-image-pull-secret

  values:
    # Note: For WXO version 5.4.2+, the route.tls section below is required. For versions prior to WXO 5.4.2, it is not required.
    route:
      tls:
        enableTlsCertMount: false
    replicaCount: 1
    
    global:
      secrets:
        name: wxa4z-watsonx-credentials  # Global secrets shared across agents
    
    secrets:
      name: wxa4z-omegamon-insights-agent-secrets  # Agent-specific secrets
    
    env:
      # LLM Configuration
      WATSONX_MODEL_ID: "meta-llama/llama-3-3-70b-instruct"
      MODEL_RUNTIME: "openai_protocol"
      
      # AIOps Configuration
      AIOPS_BASE_URL: ""  # REQUIRED: AIOps server endpoint URL

Installing the Agent

  1. Save the CR configuration to a file (e.g., omegamon-insights-agent-cr.yaml)
  2. Update all placeholder values marked as REQUIRED
  3. Apply the CR to your cluster:
oc apply -f omegamon-insights-agent-cr.yaml
  1. Verify the deployment:
# Check CR status
oc get agentservice omegamon-insights-agent -n <namespace>

# Check agent pods
oc get pods -n <namespace> -l app=omegamon-insights-agent

# View agent logs
oc logs -n <namespace> -l app=omegamon-insights-agent --tail=100

Step 3: Subscribe to the agent

After successfully deploying the agent, you need to subscribe to it to make it available in watsonx Orchestrate.

  1. Open the Cloud Pak for Data (CPD) home page.

    • Example: https://cpd-<instance>.apps.<cluster-domain>/zen/?context=icp4data#/homepage
  2. Click on the Launch WXA4Z console tab.

    • This opens the WXA4Z Content Ingestion UI (Tenant Overview page).
    • Example: https://wxa4z-content-ingestion-ui-route-wxa4z-zad.apps.<cluster-domain>/en
  3. On the Tenant Overview page, click on your Tenant name.

  4. Navigate to the Subscriptions tab.

    • You will see a list of deployed agents with a Subscribe button next to each.
  5. Click the Subscribe button next to the IBM Z OMEGAMON Insights Agent.

    • This action adds the agent to watsonx Orchestrate (WXO) and makes it available for deployment.

Step 4: Deploy the agent

  1. Log in to watsonx Orchestrate.
  2. From the main menu, navigate to Build > Agent Builder.
  3. Select the IBM Z OMEGAMON Insights Agent tile.
  4. In the AI Assistant window, enter a query to confirm that the response aligns with your expectations.
  5. Click Deploy to activate the agent and make it available in the live environment.

Step 5: Upgrade the Agent

To upgrade the agent to a new version:

Note: If the agent was previously subscribed to watsonx Orchestrate, you must first unsubscribe it before upgrading. After the upgrade is complete, re-subscribe the agent. See the Uninstall the Agent section for unsubscribe steps and the Subscribe to the agent section for subscribe steps.

  1. Update the spec.chart.version field in your CR file:
spec:
  chart:
    version: "1.1.0"  # Update to the new version
  1. Apply the updated CR:
oc apply -f omegamon-insights-agent-cr.yaml
  1. Monitor the upgrade progress:
# Watch the agent pods rolling update
oc get pods -n <namespace> -l app=omegamon-insights-agent -w

# Check the CR status
oc describe agentservice omegamon-insights-agent -n <namespace>

The agent operator will automatically handle the upgrade process, including rolling updates of the agent pods.

Step 6: Uninstall the Agent

To uninstall the agent:

If the agent was previously subscribed to watsonx Orchestrate, first unsubscribe it:

  1. Open the Cloud Pak for Data (CPD) home page.

    • Example: https://cpd-<instance>.apps.<cluster-domain>/zen/?context=icp4data#/homepage
  2. Click on the Launch WXA4Z console tab.

    • This opens the WXA4Z Content Ingestion UI (Tenant Overview page).
    • Example: https://wxa4z-content-ingestion-ui-route-wxa4z-zad.apps.<cluster-domain>/en
  3. On the Tenant Overview page, click on your Tenant name.

  4. Navigate to the Subscriptions tab.

    • You will see a list of deployed agents with an Unsubscribe button next to each.
  5. Click the Unsubscribe button next to the IBM Z OMEGAMON Insights Agent.

    • This action removes the agent from watsonx Orchestrate (WXO).

Then, delete the agent resources:

  1. Delete the Custom Resource:
oc delete agentservice omegamon-insights-agent -n <namespace>
  1. Verify the agent resources are removed:
# Check that the agent pods are terminated
oc get pods -n <namespace> -l app=omegamon-insights-agent

# Verify the CR is deleted
oc get agentservice -n <namespace>
  1. (Optional) Clean up secrets if no longer needed:
# Delete agent-specific secrets
oc delete secret wxa4z-omegamon-insights-agent-secrets -n <namespace>

# Note: Do not delete global secrets if other agents are using them

Note: The agent operator will automatically clean up all resources created by the agent, including deployments, services, and configmaps. However, secrets must be manually deleted if they are no longer needed.

Test the agent

After deployment, the agent becomes active and is available for selection in the live environment.

  1. From the main menu, click Chat.
  2. Choose your agent from the list.
  3. Enter your queries using the AI Assistant. For example:
  • Show all db2 systems.

  • Show all ims systems.

    Responses are displayed either in a tabular format.

  1. Verify that the responses returned by the AI Assistant are accurate.

Troubleshooting installation errors

If you run into any errors during installation, see Troubleshooting for troubleshooting steps.

Troubleshooting agent runtime errors

Follow these steps to troubleshoot agent runtime errors:

  1. HTTPSConnectionPool: check that your AIOps integration server is reachable (correct AIOPS Base URL and AIOPS Token, VPN access, etc.)

Deploy omegamon-insights-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has omegamon-insights-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartomegamon-insights-agent is pinned at v1.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply