Disabling additional alert count queries from the Alert Viewer
You can disable alert count queries in the Alert Viewer in order to reduce the load on Postgres. The IR_UI_ALERT_MAX_ROWS_ENABLED
environment variable is set to true
by default. If disabled, the Total matched and Total active alert counts are not shown on the modal that is launched from the information icon at the bottom of the table.
Edit the aiops-ui-configurations
configmap with your required value. 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 lines under apiVersion: v1:
data: IR_UI_ALERT_MAX_ROWS_ENABLED: "false"
Example (after adding):
apiVersion: v1 data: IR_UI_ALERT_MAX_ROWS_ENABLED: "false" kind: ConfigMap metadata:
-
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 apiVersion: v1:
data: IR_UI_ALERT_MAX_ROWS_ENABLED: "false"
-
Click Submit and wait for the
aiops-akora-ui pod
to restart.
The alert count information in the Alert Viewer is now displayed without the Total matched and Total active alert counts.
