Illumina Innovates with Rancher and Kubernetes
To keep your clusters and applications healthy and driving your organizational productivity forward, you need to stay informed of events occurring in your clusters and projects, both planned and unplanned. When an event occurs, your alert is triggered, and you are sent a notification. You can then, if necessary, follow up with corrective actions.
Notifiers and alerts are built on top of the Prometheus Alertmanager. Leveraging these tools, Rancher can notify cluster owners and project owners of events they need to address.
Before you can receive alerts, one or more notifier must be configured at the cluster level.
Only administrators, cluster owners or members, or project owners can manage project alerts.
This section covers the following topics:
The scope for alerts can be set at either the cluster level or project level.
At the project level, Rancher monitors specific deployments and sends alerts for:
When you enable monitoring for the project, some project-level alerts are provided. You can receive these alerts if a notifier for them is configured at the cluster level.
app
workload
For information on other default alerts, refer to the section on cluster-level alerts.
Prerequisite: Before you can receive project alerts, you must add a notifier.
From the Global view, navigate to the project that you want to configure project alerts for. Select Tools > Alerts. In versions prior to v2.2.0, you can choose Resources > Alerts.
Click Add Alert Group.
Enter a Name for the alert that describes its purpose, you could group alert rules for the different purpose.
Based on the type of alert you want to create, complete one of the instruction subsets below.
This alert type monitors for the status of a specific pod.
Select a pod status that triggers an alert:
<x>
Select the urgency level of the alert. The options are:
Select the urgency level of the alert based on pod state. For example, select Info for Job pod which stop running after job finished. However, if an important pod isn’t scheduled, it may affect operations, so choose Critical.
Configure advanced options. By default, the below options will apply to all alert rules within the group. You can disable these advanced options when configuring a specific rule.
This alert type monitors for the availability of a workload.
Choose the Workload option. Then choose a workload from the drop-down.
Choose an availability percentage using the slider. The alert is triggered when the workload’s availability on your cluster nodes drops below the set percentage.
Select the urgency level of the alert.
Select the urgency level of the alert based on the percentage you choose and the importance of the workload.
This alert type monitors for the availability of all workloads marked with tags that you’ve specified.
Select the Workload Selector option, and then click Add Selector to enter the key value pair for a label. If one of the workloads drops below your specifications, an alert is triggered. This label should be applied to one or more of your workloads.
Available as of v2.2.4
If you enable project monitoring, this alert type monitors for the overload from Prometheus expression querying.
Input or select an Expression, the drop down shows the original metrics from Prometheus, including:
Choose a comparison.
Input a Threshold, for trigger alert when the value of expression cross the threshold.
Choose a Comparison.
Select a Duration, for trigger alert when expression value crosses the threshold longer than the configured duration.
Continue adding more Alert Rule to the group.
Finally, choose the notifiers that send you alerts.
Result: Your alert is configured. A notification is sent when the alert is triggered.
To manage project alerts, browse to the project that alerts you want to manage. Then select Tools > Alerts. In versions prior to v2.2.0, you can choose Resources > Alerts. You can: