You can create a silence for an alert in the Red Hat OpenShift Service on AWS web console in both the Administrator and Developer perspectives.
After you create a silence, you will not receive notifications about an alert when the alert fires.
Creating silences is useful in scenarios where you have received an initial alert notification, and you do not want to receive further notifications during the time in which you resolve the underlying issue causing the alert to fire.
When creating a silence, you must specify whether it becomes active immediately or at a later time. You must also set a duration period after which the silence expires.
After you create silences, you can view, edit, and expire them.
|
When you create silences, they are replicated across Alertmanager pods. However, if you do not configure persistent storage for Alertmanager, silences might be lost. This can happen, for example, if all Alertmanager pods restart at the same time.
|
Silencing alerts from the Administrator perspective
You can silence a specific alert or silence alerts that match a specification that you define.
Procedure
To silence a specific alert:
-
From the Administrator perspective of the Red Hat OpenShift Service on AWS web console, go to Observe → Alerting → Alerts.
-
For the alert that you want to silence, click
and select Silence alert to open the Silence alert page with a default configuration for the chosen alert.
-
Optional: Change the default configuration details for the silence.
|
You must add a comment before saving a silence.
|
-
To save the silence, click Silence.
To silence a set of alerts:
-
From the Administrator perspective of the Red Hat OpenShift Service on AWS web console, go to Observe → Alerting → Silences.
-
Click Create silence.
-
On the Create silence page, set the schedule, duration, and label details for an alert.
|
You must add a comment before saving a silence.
|
-
To create silences for alerts that match the labels that you entered, click Silence.
Silencing alerts from the Developer perspective
You can silence a specific alert or silence alerts that match a specification that you define.
Prerequisites
-
If you are a cluster administrator, you have access to the cluster as a user with the dedicated-admin
role.
-
If you are a non-administrator user, you have access to the cluster as a user with the following user roles:
-
The cluster-monitoring-view
cluster role, which allows you to access Alertmanager.
-
The monitoring-alertmanager-edit
role, which permits you to create and silence alerts in the Administrator perspective in the web console.
-
The monitoring-rules-edit
cluster role, which permits you to create and silence alerts in the Developer perspective in the web console.
Procedure
To silence a specific alert:
-
From the Developer perspective of the Red Hat OpenShift Service on AWS web console, go to Observe and go to the Alerts tab.
-
Select the project that you want to silence an alert for from the Project: list.
-
If necessary, expand the details for the alert by clicking a greater than symbol (>) next to the alert name.
-
Click the alert message in the expanded view to open the Alert details page for the alert.
-
Click Silence alert to open the Silence alert page with a default configuration for the alert.
-
Optional: Change the default configuration details for the silence.
|
You must add a comment before saving a silence.
|
-
To save the silence, click Silence.
To silence a set of alerts:
-
From the Developer perspective of the Red Hat OpenShift Service on AWS web console, go to Observe and go to the Silences tab.
-
Select the project that you want to silence alerts for from the Project: list.
-
Click Create silence.
-
On the Create silence page, set the duration and label details for an alert.
|
You must add a comment before saving a silence.
|
-
To create silences for alerts that match the labels that you entered, click Silence.
Editing silences from the Administrator perspective
You can edit a silence, which expires the existing silence and creates a new one with the changed configuration.
Prerequisites
-
If you are a cluster administrator, you have access to the cluster as a user with the dedicated-admin
role.
-
If you are a non-administrator user, you have access to the cluster as a user with the following user roles:
-
The cluster-monitoring-view
cluster role, which allows you to access Alertmanager.
-
The monitoring-alertmanager-edit
role, which permits you to create and silence alerts in the Administrator perspective in the web console.
Procedure
-
From the Administrator perspective of the Red Hat OpenShift Service on AWS web console, go to Observe → Alerting → Silences.
-
For the silence you want to modify, click
and select Edit silence.
Alternatively, you can click Actions and select Edit silence on the Silence details page for a silence.
-
On the Edit silence page, make changes and click Silence. Doing so expires the existing silence and creates one with the updated configuration.
Editing silences from the Developer perspective
You can edit a silence, which expires the existing silence and creates a new one with the changed configuration.
Prerequisites
-
If you are a cluster administrator, you have access to the cluster as a user with the dedicated-admin
role.
-
If you are a non-administrator user, you have access to the cluster as a user with the following user roles:
-
The cluster-monitoring-view
cluster role, which allows you to access Alertmanager.
-
The monitoring-rules-edit
cluster role, which permits you to create and silence alerts in the Developer perspective in the web console.
Procedure
-
From the Developer perspective of the Red Hat OpenShift Service on AWS web console, go to Observe and go to the Silences tab.
-
Select the project that you want to edit silences for from the Project: list.
-
For the silence you want to modify, click
and select Edit silence.
Alternatively, you can click Actions and select Edit silence on the Silence details page for a silence.
-
On the Edit silence page, make changes and click Silence. Doing so expires the existing silence and creates one with the updated configuration.
Expiring silences from the Administrator perspective
You can expire a single silence or multiple silences. Expiring a silence deactivates it permanently.
|
You cannot delete expired, silenced alerts.
Expired silences older than 120 hours are garbage collected.
|
Prerequisites
-
If you are a cluster administrator, you have access to the cluster as a user with the dedicated-admin
role.
-
If you are a non-administrator user, you have access to the cluster as a user with the following user roles:
-
The cluster-monitoring-view
cluster role, which allows you to access Alertmanager.
-
The monitoring-alertmanager-edit
role, which permits you to create and silence alerts in the Administrator perspective in the web console.
Procedure
-
Go to Observe → Alerting → Silences.
-
For the silence or silences you want to expire, select the checkbox in the corresponding row.
-
Click Expire 1 silence to expire a single selected silence or Expire <n> silences to expire multiple selected silences, where <n> is the number of silences you selected.
Alternatively, to expire a single silence you can click Actions and select Expire silence on the Silence details page for a silence.
Expiring silences from the Developer perspective
You can expire a single silence or multiple silences. Expiring a silence deactivates it permanently.
|
You cannot delete expired, silenced alerts.
Expired silences older than 120 hours are garbage collected.
|
Prerequisites
-
If you are a cluster administrator, you have access to the cluster as a user with the dedicated-admin
role.
-
If you are a non-administrator user, you have access to the cluster as a user with the following user roles:
-
The cluster-monitoring-view
cluster role, which allows you to access Alertmanager.
-
The monitoring-rules-edit
cluster role, which permits you to create and silence alerts in the Developer perspective in the web console.
Procedure
-
From the Developer perspective of the Red Hat OpenShift Service on AWS web console, go to Observe and go to the Silences tab.
-
Select the project that you want to expire a silence for from the Project: list.
-
For the silence or silences you want to expire, select the checkbox in the corresponding row.
-
Click Expire 1 silence to expire a single selected silence or Expire <n> silences to expire multiple selected silences, where <n> is the number of silences you selected.
Alternatively, to expire a single silence you can click Actions and select Expire silence on the Silence details page for a silence.