Restricting the number of alerts returned by the data layer to the Alert Viewer
By default, the data layer returns all the alerts that match the filter in the Alert Viewer. If this has the potential to cause performance issues on the backend, you can restrict the number of alerts to be returned by the data layer.
Note: When increasing this limit an increase to CPU and memory resources may also be required.
Edit the aiops-ui-configurations
ConfigMap with your required values. You can perform this task from the command line or the console UI.
Command line
-
Run the command:
oc edit cm aiops-ui-configurations
-
Add the following line under the data section:
IR_UI_MAX_ALERT_FETCH_LIMIT: "x"
Where "x" equals the number of alerts that are returned by the data layer.
-
Save your changes to the ConfigMap file.
Red Hat OpenShift Container console
-
Log in to the Red Hat OpenShift Container console as a user with cluster administrator access.
-
From the navigation menu, click Workloads > Config Maps.
-
Search for
aiops-ui-configurations
. -
Click ... > Edit Config Map.
-
Add the following line under the data section:
IR_UI_MAX_ALERT_FETCH_LIMIT: "x"
Where "x" equals the number of alerts that are returned by the data layer.
-
Click Submit and wait for the
aiops-akora-ui pod
to restart.
Example
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
IR_UI_MAX_ALERT_FETCH_LIMIT: "5"
cacertVersion: "41802278"
prerequisiteCheck: Complete
productVersion: 4.5.0
zenVersion: 5.1.1
kind: ConfigMap
metadata:
annotations:
consoleui.aiops.ibm.com/controller-workload: ibm-watson-aiops-ui-operator-controller-manager-5cbd547bcbz7nbk-1708622477
creationTimestamp: "2024-02-20T00:41:57Z"
labels:
app.kubernetes.io/component: aiops-aiops-ui-configurations
app.kubernetes.io/instance: aiops-aiops-ui-configurations-4.5.0
app.kubernetes.io/managed-by: ibm-watson-aiops-ui-operator
app.kubernetes.io/name: aiops-aiops-ui-configurations
app.kubernetes.io/specs: aiops
release: aiops
name: aiops-ui-configurations
namespace: cp4waiops
ownerReferences:
- apiVersion: consoleui.aiops.ibm.com/v1
blockOwnerDeletion: true
controller: true
kind: BaseUI
name: baseui-instance
uid: 0d85b930-3f93-458f-8426-cf631545de7d
resourceVersion: "46263896"
uid: 91f04ab8-61a8-4cc1-8d5c-361a30def34d
A message on the Alert Viewer indicates when the list has been configured to limit the number of alerts displayed.
