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

  1. Run the command:

    oc edit cm aiops-ui-configurations
    
  2. 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:
    
  3. Save your changes to the configmap file.

Red Hat OpenShift Container console

  1. Log in to the Red Hat OpenShift Container console as a user with cluster administrator access.

  2. From the navigation menu, click Workloads > Config Maps.

  3. Search for aiops-ui-configurations.

  4. Click ... > Edit Config Map.

  5. Add the following line under apiVersion: v1:

    data:
       IR_UI_ALERT_MAX_ROWS_ENABLED: "false"
    
  6. 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.

Alert count
Figure. Alert count