Skip to main contentCloud Pak Deployer Monitor

Cloud Pak for Data Watson Studio Runtime Usage

Monitor Summary

This monitor will generate the following observations:

  • Number of Cloud Pak for Data Watson Studio Runtime Pods across all projects
  • Number of Cloud Pak for Data Watson Studio Runtime Pods per project
  • CPU usage of Cloud Pak for Data Watson Studio Runtime Pods per project
  • Memory usage of Cloud Pak for Data Watson Studio Runtime Pods per project
  • CPU usage of Cloud Pak for Data Watson Studio Runtime Pods per pod
  • Memory usage of Cloud Pak for Data Watson Studio Runtime Pods per pod

Monitor Requirements

In order for Watson Studio Job Information to be available, CCS (Common Core Services) must be available on the Cloud Pak for Data instance. Catridges like Watson Studio and Watson Machine Learning automatically install CCS as part of their dependencies. If CCS is not available, no watson studio job information is available.

Deployment of the monitor

This monitor can be deployed using the IBM Cloud Pak Deployer or manually deployed using oc commands:

Monitor Source

Source folder containing the script can be found here (cp4d-watsonstudio-runtime-usage).

Generated observations

Once the monitor is deployed, the following observations are available in IBM Cloud Pak for Data Metrics:

Using the IBM Cloud Pak for Data Platform Management Events:

https://<CP4D-BASE-URL>/zen/#/platformManagement/events

On the Platform Management Events page the following entries are added:

EventEvent TypePossible valuesDescription
Cloud Pak for Data Waston Studio Runtime Usage Total CountNumber of Cloud Pak for Data Watson Studio Runtime Pods across all projectsinfoThe Cloud Pak for Data Platform Projects and Pods information are requested.
Cloud Pak for Data Waston Studio Runtime Usage Project CountNumber of Cloud Pak for Data Watson Studio Runtime Pods per projectinfoThe Cloud Pak for Data Platform Projects and Pods information are requested.
Cloud Pak for Data Waston Studio Runtime Usage Project CPUCPU usage of Cloud Pak for Data Watson Studio Runtime Pods per projectinfoThe Cloud Pak for Data Platform Projects, Pods information are requested.
Cloud Pak for Data Waston Studio Runtime Usage Project MemoryMemory usage of Cloud Pak for Data Watson Studio Runtime Pods per projectinfoThe Cloud Pak for Data Platform Projects, Pods information are requested.
Cloud Pak for Data Waston Studio Runtime Project CPUCPU usage of Cloud Pak for Data Watson Studio Runtime Pods per podinfoThe Cloud Pak for Data Platform Projects, Pods information are requested.
Cloud Pak for Data Waston Studio Runtime Project MemoryMemory usage of Cloud Pak for Data Watson Studio Runtime Pods per podinfoThe Cloud Pak for Data Platform Projects, Pods information are requested.
Overview Events and Alerts

Using the IBM Cloud Pak for Data Prometheus endpoint

https://<CP4D-BASE-URL>/zen/metrics

It will generate 2 types of metrics:

  • Actual Result metrics
    These metrics contain the observed values
  • Zen Watchdog metrics
    These metrics are used by the Cloud Pak for Data Zen Watchdog to monitor the state and trigger notifications

Actual Result metrics:

  • cp4dplatformwatsonstudioruntimeusage_total_count Provides number of Cloud Pak for Data Watson Studio Runtime Pods across all projects
  • cp4dplatformwatsonstudioruntimeusage_project_count Provides number of Cloud Pak for Data Watson Studio Runtime Pods per project
  • cp4dplatformwatsonstudioruntimeusage_project_cpu Provides CPU usage of Cloud Pak for Data Watson Studio Runtime Pods per project
  • cp4dplatformwatsonstudioruntimeusage_project_memory Provides Memory usage of Cloud Pak for Data Watson Studio Runtime Pods per project
  • cp4dplatformwatsonstudioruntimeusage_cpu Provides CPU usage of Cloud Pak for Data Watson Studio Runtime Pods per pod
  • cp4dplatformwatsonstudioruntimeusage_memory Provides Memory usage of Cloud Pak for Data Watson Studio Runtime Pods per pod
# HELP cp4dplatformwatsonstudioruntimeusage_cpu_limit
# TYPE cp4dplatformwatsonstudioruntimeusage_cpu_limit gauge
cp4dplatformwatsonstudioruntimeusage_cpu_limit{event_type="cp4dplatformwatsonstudioruntimeusage_cpu",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project_jupyter-py39-584e139f-4d51-4c4c-99b4-040002e84dff-6c47b85f4f78q"} 1000
# HELP cp4dplatformwatsonstudioruntimeusage_cpu_requests
# TYPE cp4dplatformwatsonstudioruntimeusage_cpu_requests gauge
cp4dplatformwatsonstudioruntimeusage_cpu_requests{event_type="cp4dplatformwatsonstudioruntimeusage_cpu",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project_jupyter-py39-584e139f-4d51-4c4c-99b4-040002e84dff-6c47b85f4f78q"} 1000
# HELP cp4dplatformwatsonstudioruntimeusage_cpu_utilization
# TYPE cp4dplatformwatsonstudioruntimeusage_cpu_utilization gauge
cp4dplatformwatsonstudioruntimeusage_cpu_utilization{event_type="cp4dplatformwatsonstudioruntimeusage_cpu",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project_jupyter-py39-584e139f-4d51-4c4c-99b4-040002e84dff-6c47b85f4f78q"} 0

Zen Watchdog metrics (used in platform management events)

  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_total_count
  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_count
  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_cpu
  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_memory
  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_cpu
  • watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_memory

Zen Watchdog metrics can have the following values:

  • 2 (info)
  • 1 (warning)
  • 0 (critical)
# HELP watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_cpu
# TYPE watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_cpu gauge
watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_cpu{event_type="cp4dplatformwatsonstudioruntimeusage_cpu",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project_jupyter-py39-584e139f-4d51-4c4c-99b4-040002e84dff-6c47b85f4f78q"} 2
# HELP watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_memory
# TYPE watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_memory gauge
watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_memory{event_type="cp4dplatformwatsonstudioruntimeusage_memory",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project_jupyter-py39-584e139f-4d51-4c4c-99b4-040002e84dff-6c47b85f4f78q"} 2
# HELP watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_count
# TYPE watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_count gauge
watchdog_cp4dplatformwatsonstudioruntimeusage_cp4dplatformwatsonstudioruntimeusage_project_count{event_type="cp4dplatformwatsonstudioruntimeusage_project_count",monitor_type="cp4dplatformwatsonstudioruntimeusage",reference="demo-project"} 2