Cloud Pak for Data Platform Global Connections
Monitor Summary
This monitor will generate the following observations:
- Count available Cloud Pak for Data global connections
- Perform a connection test for each connection
Monitor Requirements
In order for Platform Global Connection 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 platform connections are 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-platform-global-connections).
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:
Event | Event Type | Possible values | Description |
---|---|---|---|
Cloud Pak for Data Global Connections Count | Number of CP4D Platform connections | info, warning | The Cloud Pak for Data Platform Connections are requested. If this succeeds, an info metric is set. If this request fails, a warning metric is set. |
Global Connection - <NAME OF CONNECTION> | Test CP4D Platform connection | info, warning | For each Global Platform connection a seperate entry is available. If the connection test is successful, an info metric is set. If the connection test fails, a warning metric is set. |
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:
- global_connections_count Provides the number of available connections
- global_connection_valid (for each connection)
For each connection, a test action is performed
- 1 (Test Connection success)
- 0 (Test connection failed)
# HELP global_connections_count# TYPE global_connections_count gaugeglobal_connections_count{event_type="global_connections_count",monitor_type="cp4dplatformglobalconnections",reference="Cloud Pak for Data Global Connections Count"} 2# HELP global_connection_valid# TYPE global_connection_valid gaugeglobal_connection_valid{event_type="global_connection_valid",monitor_type="cp4dplatformglobalconnections",reference="Cognos MetaStore Connection"} 1global_connection_valid{event_type="global_connection_valid",monitor_type="cp4dplatformglobalconnections",reference="Cognos non-shared"} 0
Zen Watchdog metrics (used in platform management events)
- watchdog_cp4dplatformglobalconnections_global_connections_count
- watchdog_cp4dplatformglobalconnections_global_connection_valid (for each connection)
Zen Watchdog metrics can have the following values:
- 2 (info)
- 1 (warning)
- 0 (critical)
# HELP watchdog_cp4dplatformglobalconnections_global_connection_valid# TYPE watchdog_cp4dplatformglobalconnections_global_connection_valid gaugewatchdog_cp4dplatformglobalconnections_global_connection_valid{event_type="global_connection_valid",monitor_type="cp4dplatformglobalconnections",reference="Cognos MetaStore Connection"} 2watchdog_cp4dplatformglobalconnections_global_connection_valid{event_type="global_connection_valid",monitor_type="cp4dplatformglobalconnections",reference="Cognos non-shared"} 1# HELP watchdog_cp4dplatformglobalconnections_global_connections_count# TYPE watchdog_cp4dplatformglobalconnections_global_connections_count gaugewatchdog_cp4dplatformglobalconnections_global_connections_count{event_type="global_connections_count",monitor_type="cp4dplatformglobalconnections",reference="Cloud Pak for Data Global Connections Count"} 2