Adding an alert for a certificate
You can add alerts for certificate expiration or invalid certificate events.
Adding an alert about upcoming certificate expiration
To create an alert:
-
In the management console
, select the folder for your alert. -
Navigate
to Monitoring. -
On the home page, click Create alert under Features.
-
Under Basic information, specify the main alert parameters:
- Name. Name the alert.
- Type. Specify the notification method.
- Optionally, add a description for the alert.
-
Set the alert trigger conditions:
-
Under Alert settings, start building a query for metric display. In the query construction form, enter the following rows one by one:
service = certificate-manager.name = certificate.days_until_expiration.certificate = *. To monitor a specific certificate, specify its ID.- Optionally, if you choose more than one certificate, use the
series_min()function that selects the minimum value.
-
Under Alert conditions, configure additional alert settings:
- Aggregation function. The aggregation function applied to the metric values in the time window. The function is calculated using raw metric values before decimation.
- Comparison function. The condition is Less than or equals. The number of days for Warning is
14; for Alarm,4. - Evaluation window. Time window for alert evaluation. For more information, see Evaluation window.
- Evaluation delay. Time window offset into the past. This setting is useful for aggregated metrics since collection of individual metrics within an aggregation pool is distributed over time. For more information, see Evaluation delay.
For more information, see Alert triggers.
-
Under Notifications, specify a notification channel. If you do not have a notification channel, create one.
-
Click Create. The alert will appear in the list.
-
Adding an alert about an invalid certificate
To create an alert:
-
In the management console
, select the folder for your alert. -
Navigate
to Monitoring. -
On the home page, click Create alert under Features.
-
Under Basic information, specify the main alert parameters:
- Name. Name the alert.
- Type. Specify the notification method.
- Optionally, add a description for the alert.
-
Set the alert trigger conditions:
-
Under Alert settings, start building a query for metric display. In the query construction form, enter the following rows one by one:
service = certificate-manager.name = certificate.is_out_of_order.certificate = *. To monitor a specific certificate, specify its ID.- Optionally, if you choose more than one certificate, use the
series_sum()summing function.
-
Under Alert conditions, configure additional alert settings:
- Aggregation function. The aggregation function applied to the metric values in the time window. The function is calculated using raw metric values before decimation.
- Comparison function. The condition is Greater than. The number of invalid certificates for Alarm is
0. - Evaluation window. Time window for alert evaluation. For more information, see Evaluation window.
- Evaluation delay. Time window offset into the past. This setting is useful for aggregated metrics since collection of individual metrics within an aggregation pool is distributed over time. For more information, see Evaluation delay.
For more information, see Alert triggers.
-
Under Notifications, specify a notification channel. If you do not have a notification channel, create one.
-
Click Create. The alert will appear in the list.
-