Monitoring on Fatih Koçhttps://fatihkoc.net/tags/monitoring/Recent content in Monitoring on Fatih KoçHugoenTue, 07 May 2024 00:00:00 +0000Elastic Kubernetes Service Cost Optimization: A Comprehensive Guide - Part Onehttps://fatihkoc.net/posts/eks-cost-optimization-1/Tue, 07 May 2024 00:00:00 +0000https://fatihkoc.net/posts/eks-cost-optimization-1/<p>Elastic Kubernetes Service (EKS) stands out in the Kubernetes ecosystem for its powerful cloud-based solutions. However, many organizations struggle with managing costs effectively. This <a href="https://fatihkoc.net/posts/eks-cost-optimization-2/" class="external-link" target="_blank" rel="noopener">two-part</a> blog series dives deep into strategies for reducing expenses on both Kubernetes and AWS sides. We start with universally applicable Kubernetes tips, enriched with contextual understanding and real-world scenarios.</p> <h2 id="monitoring-and-logging-the-first-step-in-cost-management"> Monitoring and Logging: The First Step in Cost Management <a class="heading-link" href="#monitoring-and-logging-the-first-step-in-cost-management"> <i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"></i> <span class="sr-only">Link to heading</span> </a> </h2> <p>Effective cost management begins with robust monitoring and logging. Start with cloud provider dashboards and virtualization technology interfaces for basic insights. Install metrics-server to leverage commands like <code>kubectl top pods</code> and <code>kubectl top nodes</code> for real-time data. For comprehensive infrastructure monitoring, consider the <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack" class="external-link" target="_blank" rel="noopener">kube-prometheus-stack</a>, which includes Grafana, Prometheus, node-exporter, Alertmanager, and optionally Thanos.</p>