×

OpenShift Container Platform 4.5 provides a web interface to the Alertmanager, which enables you to manage alerts. This section demonstrates how to use the Alerting UI.

Currently, the Alerting UI only displays alerts that come by default with the OpenShift Container Platform. It does not list user-defined alerts. That will change in a future release.

The Alerting UI is only accessible through the Administrator Perspective and not through the Developer Perspective.

Contents of the Alerting UI

This section shows and explains the contents of the Alerting UI, a web interface to the Alertmanager.

The Alerting UI is accessible by clicking MonitoringAlerting in the OpenShift Container Platform web console.

The three main pages of the Alerting UI are the Alerts, the Silences, and the Alerting rules pages.

The Alerts page:

monitoring alerts screen
  1. Filtering alerts by their names.

  2. Filtering the alerts by their states. To fire, some alerts need a certain condition to be true for the duration of a timeout. If a condition of an alert is currently true, but the timeout has not been reached, such an alert is in the Pending state.

  3. Alert name.

  4. Description of an alert.

  5. Value of the Severity label of the alert.

  6. Current state of the alert and when the alert went into this state.

  7. Actions you can do with the alert.

The Silences page:

monitoring silences screen
  1. Creating a silence for an alert.

  2. Filtering silences by their name.

  3. Filtering silences by their states. If a silence is pending, it is currently not active because it is scheduled to start at a later time. If a silence expired, it is no longer active because it has reached its end time.

  4. Description of a silence. It includes the silence name and the specification of alerts that it matches.

  5. Number of alerts that are being silenced by the silence.

  6. Current state of the silence. For active silences, it shows when the silence ends. For pending silences, it shows when the silence starts.

  7. User that created the silence.

  8. Actions you can do with a silence.

The Alerting Rules page:

monitoring alerting rules screen
  1. Filtering Alerting Rules by their name.

  2. Filtering Alerting Rules by their states.

  3. Alerting Rule name.

  4. Value of the Severity label of the Alerting Rule.

  5. State of the Alert defined by the Alerting Rule.

Also, next to the title of each of these pages is a link to the Alertmanager interface.

Getting information about alerts and alerting rules

You can find an alert and see information about it or its governing alerting rule.

Procedure
  1. Open the OpenShift Container Platform web console and navigate to the MonitoringAlertingAlerts page.

  2. Optional: Filter the alerts by name using the Filter Alerts by name field.

  3. Optional: Filter the alerts by state using one or more of the state buttons Firing, Silenced, Pending.

  4. Optional: Sort the alerts by clicking one or more of the Name, Severity, and State column headers.

  5. After you see the alert you need, you can see either details of the alert or details of its governing alerting rule.

    To see alert details, click on the name of the alert. The page that opens has the graph with timeseries of the alert. It also has information about the alert, including:

    • A link to its governing alerting rule

    • Description of the alert

    • Labels attached to the alert

    To see alerting rule details, click the button in the last column and select View Alerting Rule. The page that opens has information about the alerting rule, including:

    • Alerting rule name, severity, and description

    • The expression that defines the condition for firing the alert

    • The time for which the condition should be true for an alert to fire

    • Graph for each alert governed by the alerting rule, showing the value with which the alert is firing

    • Table of all alerts governed by the alerting rule

Silencing alerts

You can either silence a specific alert or silence alerts that match a specification that you define.

Procedure

To silence a set of alerts by creating an alert specification:

  1. Navigate to the MonitoringAlertingSilences page of the OpenShift Container Platform web console.

  2. Click Create Silence.

  3. Populate the Create Silence form.

  4. To create the silence, click Silence.

To silence a specific alert:

  1. Navigate to the MonitoringAlertingAlerts page of the OpenShift Container Platform web console.

  2. For the alert that you want to silence, click the button in the last column and click Silence Alert. The Create Silence form will appear with prepopulated specification of the chosen alert.

  3. Optional: Modify the silence.

  4. To create the silence, click Silence.

Getting information about silences

You can find a silence and view its details.

Procedure
  1. Open the OpenShift Container Platform web console and navigate to the MonitoringAlertingSilences page.

  2. Optional: Filter the silences by name using the Filter Silences by name field.

  3. Optional: Filter the silences by state using one or more of the state buttons Active, Pending, Expired.

  4. Optional: Sort the silences by clicking one or more of the Name, Firing Alerts, State, and Creator column headers.

  5. After you see the silence, you can click its name to see the details, including:

    • Alert specification

    • State

    • Start time

    • End time

    • Number and list of firing alerts

Editing silences

You can edit a silence, which will expire the existing silence and create a new silence with the changed configuration.

Procedure
  1. Navigate to the MonitoringAlertingSilences page.

  2. For the silence you want to modify, click the button in the last column and click Edit silence.

    Alternatively, you can click ActionsEdit Silence in the Silence Overview screen for a particular silence.

  3. In the Edit Silence screen, enter your changes and click the Save button. This will expire the existing silence and create one with the chosen configuration.

Expiring silences

You can expire a silence. Expiring a silence deactivates it forever.

Procedure
  1. Navigate to the MonitoringAlertingSilences page.

  2. For the silence you want to expire, click the button in the last column and click Expire Silence.

    Alternatively, you can click the ActionsExpire Silence button in the Silence Overview page for a particular silence.

  3. Confirm by clicking Expire Silence. This expires the silence.

Changing Alertmanager configuration

You can change the Alertmanager configuration by editing the YAML configuration file using the OpenShift Container Platform web console.

Procedure

To change the Alertmanager configuration:

  1. Navigate to the AdministrationCluster SettingsGlobal ConfigurationAlertmanagerYAML page of the web console.

  2. Modify the YAML configuration file.

  3. Click Save.

Additional resources