Kubernetes is an integral part of many organizations' infrastructure. With the vast number of nodes and pods in a typical Kubernetes infrastructure, it's important to have a scalable alerting solution.
One of the primary applications of Kubernetes alerts is to detect anomalies in your infrastructure immediately.
For instance, consider a scenario where a deployment update causes pods to fail to start in a production environment. While there is no immediate impact on production (no traffic is routed to unready pods), the deployment is stuck and the latest version cannot be rolled out. Dynatrace detects the issue and raises a problem, giving you the context you need to identify the root cause and resolve it quickly.

Kubernetes out-of-the-box (OOTB) alerts can be easily configured within the global anomaly-detection settings. With this feature, you can achieve:
Quick setup: OOTB alerts, including those for Kubernetes, come preconfigured, which ensures that monitoring setups often take less than 5 minutes.
Streamlined monitoring: OOTB alerts automate the oversight of multiple metrics, centralizing the monitoring process and reducing the need for frequent manual checks.
Responsive adaptability: The feature adjusts alerting thresholds based on real-time cluster loads, ensuring relevant monitoring and minimizing potential human errors.
Direct navigation: Navigate to the settings related to your namespace directly from Dynatrace and adapt everything to your needs without the need for external configurations.
Default configurations: Set up default alert configurations for all active and future Kubernetes clusters, namespaces, and workloads, ensuring consistent monitoring as your infrastructure grows.
Granular customization: Customize alert settings at various levels, allowing you to handle alerts differently for production and development clusters and adjust node alerts within each.
Automation with Dynatrace API: Leverage the Dynatrace API to automate configurations, ensuring that your alerting system evolves smoothly with your infrastructure changes. Moreover, with the Dynatrace API, you can adopt the Configuration as Code approach to configure alerts, integrating them into a GitOps workflow.
Alerts for common Kubernetes issues can be configured at three levels:
To configure these settings, go to
Settings. Select Analyze and alert > Alerts and select Cluster (or namespace for namespace-level settings).
Kubernetes