Smart Alerts for Kubernetes
With Smart Alerts for Kubernetes, you can proactively receive alerts by selecting a Kubernetes entity type, such as a cluster, pod, or deployment, and then choosing a specific metric to monitor for that entity. With this feature you have a focused view of infrastructure Smart Alerts specifically for your Kubernetes environment.
- A specialized Kubernetes-focused view of infrastructure Smart Alerts that filters and displays only alerts that are related to Kubernetes entity types for you to manage.
- Streamlined entity selection, which gives you the ability to choose from Kubernetes-specific entity types including clusters, nodes, pods, deployments, control plane components, ArgoCD applications, KubeCost, and more.
- Centralized Kubernetes monitoring for access to all Kubernetes alerts from the Kubernetes dashboard.
- Leverage all infrastructure Smart Alert features including custom aggregation, per-entity alerting, forecast alerting, and multi-severity thresholds.
Accessing Kubernetes Smart Alerts
- From the Kubernetes Platform view
- From a Kubernetes Cluster dashboard
- From a Kubernetes Namespace dashboard
- From the navigation menu in the Instana UI, select Platforms.
- Select Kubernetes.
- Click the Smart Alerts tab.
- Navigate to a specific Kubernetes cluster dashboard.
- Click the Smart Alerts tab.
- Navigate to a specific Kubernetes namespace dashboard.
- Click the Smart Alerts tab.
Adding a Kubernetes Smart Alert
You can create Kubernetes Smart Alerts from different contexts in the Instana UI. When you create alerts from cluster or namespace dashboards, the alert scope is automatically pre-configured with appropriate filters to target the specific context, saving you time and ensuring accuracy.
- Access the Kubernetes Smart Alerts tab.
- From the Smart Alerts tab, click Create Smart Alert. The Create Smart Alert configuration dialog opens.
Figure 4. Creating a Kubernetes Smart Alert
- Complete the configuration for your alert.
The configuration process for Kubernetes Smart Alerts follows the same workflow as configuring infrastructure Smart Alerts:
- Define the scope: Select a Kubernetes entity type and metric. For the list of available entity types, see Entity type selection.
- Define the threshold: Set warning and critical thresholds
- Define the time threshold: Configure when to be alerted
- Select alert channels: Choose notification channels
- Define alert properties: Customize alert title and description
- Add custom payloads: Include additional context (optional)
Creating from a Kubernetes Cluster dashboard :
- Navigate to a Kubernetes cluster dashboard.
- Click the Smart Alerts tab.
- Click Create Smart Alert.
- The alert configuration dialog opens with the Filter section automatically populated with the following filters, which ensure the alert applies only to resources within the selected namespace in the specified cluster:
kubernetes.cluster.name equals <cluster-name> - Complete the remaining configuration for your alert.
Creating from a Kubernetes Namespace dashboard:
- Navigate to a Kubernetes namespace dashboard.
- Click the Smart Alerts tab.
- Click Create Smart Alert.
- The alert configuration dialog opens with the Filter section automatically populated with the following filters, which ensure the alert applies only to resources within the selected namespace in the specified cluster:
Andkubernetes.cluster.name equals <cluster-name>kubernetes.namespace.name equals <namespace-name> - Complete the remaining configuration for your alert.
- The button to click for creating a Kuberenetes Smart Alerts () is on a different tab than for creating an infrastructure Smart Alert ( )
- The alert list on the Kubernetes Smart Alerts tab shows only Kubernetes-related alerts, while the infrasture Smart Alerts tab shows all infrastructure alerts.
- When selecting the entity type while configuring the alert scope, only Kubernetes entities can be selected, while all infrastructure entities are available when configuring an infrastructure Smart Alert.
- Use per-entity alerting for critical components. For critical Kubernetes components such as API Server or etcd, use per-entity alerting to receive individual alerts for each instance.
- Leverage custom aggregation for workloads. For application workloads such as pods and deployments, use custom aggregation grouped by namespace or deployment to reduce alert noise while maintaining visibility.
- Enable forecast alerting for storage. Use forecast alerting for PersistentVolume metrics to proactively address storage capacity issues before they impact applications.
- Group by namespace. When you monitor cluster-wide metrics, group by namespace to understand which teams or applications are affected.
- Set appropriate time thresholds. Kubernetes environments can be dynamic with frequent pod restarts, scaling activities, and rolling updates. While Instana suggests thresholds based on historical data and metric patterns, review and adjust the time threshold settings to account for your cluster's normal operational patterns. This helps avoid false positives from transient issues that are part of normal Kubernetes operations.
Entity type selection
When you create a Kubernetes Smart Alert, the Entity type dropdown displays only Kubernetes-related entity types. This filtered list helps you quickly find and select the appropriate Kubernetes component you want to monitor. The following Kubernetes entity types are supported:
- Core workload entities:
- Cluster
- Node
- Namespace
- Pod
- Deployment
- ReplicaSet
- ReplicationController
- DaemonSet
- Endpoints
- Storage:
- PersistentVolume
- PersistentVolumeClaim
- Control plane components:
- API Server
- Controller Manager
- Scheduler
- etcd
- Extensibility:
- Custom Resource Definition
- Kubernetes GPT
- OpenShift:
- OpenShift Deployment Config
- GitOps (ArgoCD):
- ArgoCD
- ArgoCD Application
- Cost monitoring:
- KubeCost Platform
Terraform support
Kubernetes Smart Alerts can be managed programmatically by using the same Terraform resource as infrastructure Smart Alerts. When you create alerts for Kubernetes entity types, the alerts automatically appear in the Kubernetes Smart Alerts view. For more information about managing Smart Alerts by using Terraform, see the Instana infrastructure alert configuration documentation.
Related information
- Smart Alerts for infrastructure: Review reference details for configuration.
- Alert channels: Learn how to configure notification channels.
- Custom payloads: Learn how to add custom data to alerts.
- Kubernetes monitoring: Review the available Kubernetes monitoring capabilities of Instana.