Skip to main content

BAJAJ TECHNOLOGY SERVICES

Optimizing Infrastructure and API Monitoring for Efficiency

Optimizing Infrastructure and API Monitoring for Efficiency
Deploying a comprehensive monitoring and alerting system to achieve high availability of platform and meet business KPIs.
Oct 30, 2024
Optimising Infrastructure and API Monitoring and Alerting for Enhanced Customer Experience and Operational Efficiency

Introduction

Organizations today rely on high-performing and resilient IT infrastructures to ensure uninterrupted services and superior customer experiences. With 40-50% of businesses striving to meet demanding KPI targets for uptime and response times, there is a growing need for advanced monitoring and alerting capabilities. Companies that fail to maintain infrastructure reliability, risk damaging customer trust and losing their competitive edge. To address these challenges, a robust monitoring solution was developed using open-source tools, providing real-time visibility and rapid incident resolution for cloud-native architectures.

Business Challenge

The organization’s cloud-native architecture, hosted on AWS, consisted of numerous microservices and APIs, each with its own performance requirements and interdependencies. With several teams sharing the same lower environments, managing infrastructure performance became a complex task. The lack of real-time visibility and centralized monitoring made it difficult to proactively detect and resolve incidents, leading to delayed response times and impacting overall service availability. Additionally, the company faced the challenge of integrating monitoring and alerting systems with existing IT Service Management (ITSM) tools to streamline ticketing and incident management processes.

Stringent performance targets, such as 99.999% uptime and sub-100 millisecond response times, added pressure on the teams to maintain optimal service levels. Moreover, the organization’s DevSecOps approach required continuous monitoring to ensure compliance and security across all deployments, further complicating the monitoring strategy.

Solution

An Infrastructure Monitoring and Alerting solution was developed using a suite of open-source tools, including Grafana, Prometheus, OpenSearch, and Thanos, all deployed on Amazon EKS. The solution was designed to provide comprehensive monitoring, log analysis, and alerting capabilities, integrated seamlessly with call and SMS notification services for real-time alerts.

The team began by categorizing the infrastructure landscape and establishing standard monitoring and alerting policies for each category. Key solution components included:

  • Grafana for Visualization and Dashboards: Grafana was implemented to visualize metrics and performance data, providing customizable dashboards to monitor key infrastructure KPIs such as CPU utilization, memory consumption, and API response status codes and latency. These dashboards enabled teams to gain real-time insights and make data-driven decisions.
  • Prometheus for Metrics Collection and Alerting: Prometheus was used to collect and store time-series data from various AWS services and APIs. Alert thresholds were defined based on business-critical metrics, and Prometheus Alertmanager was configured to trigger notifications to a custom built python application which would create a ticket on the ITSM tools and send a notification via SMS and call services whenever these thresholds were breached.
  • OpenSearch for Log Aggregation and Analysis: OpenSearch was deployed to aggregate and index logs from all applications and microservice components. This centralized log repository facilitated faster debugging and root cause analysis during incidents. The logs were also visualized and alerts set on them by using Grafana for a faster response to errors.
  • Thanos for Scalable Metric Storage: Thanos extended Prometheus by enabling long-term storage of monitoring data. With Thanos, the organization achieved a highly available and scalable solution for storing and querying historical metrics, which was crucial for audit, compliance and performance trend analysis.
  • ITSM Integration for Automated Incident Management: The monitoring system was integrated with ITSM tools like GLPI and ManageEngine, enabling automated ticket creation for P1 and P2 alerts. This integration ensured that incidents were promptly logged and assigned to the appropriate teams for resolution.
  • DevSecOps Compliance Monitoring: The solution was embedded into the DevSecOps pipeline, allowing for continuous monitoring and compliance checks during each deployment phase. This ensured that security and performance standards were met throughout the development lifecycle.

Impact

The implementation of this comprehensive monitoring and alerting solution led to substantial improvements across multiple dimensions:

  • Enhanced Visibility and Faster Issue Resolution: The real-time dashboards and centralized log management provided a unified view of the entire infrastructure, API calls and health, and microservices, enabling teams to detect and resolve issues 70% faster than before.
  • Improved Uptime and Customer Experience: By proactively identifying performance bottlenecks and anomalies, the organization consistently achieved its uptime targets of 99.999%. This resulted in a 15% increase in customer satisfaction and a higher Net Promoter Score.
  • Optimized Incident Management: The integration with ITSM tools and automated ticketing streamlined incident management, reducing the mean time to resolve (MTTR) by 55%.
  • Scalable and Compliant Monitoring Solution: The use of Thanos for long-term metric storage ensured the solution could scale as the business grew, while also maintaining compliance with industry regulations.
  • Seamless DevSecOps Implementation: By embedding the monitoring system into the DevSecOps pipeline, the organization reduced security vulnerabilities by 25% and ensured continuous compliance throughout all development stages.

This implementation of a comprehensive monitoring system using open-source tools not only facilitated the achievement of improved operational efficiency, maintain high availability, meet stringent KPI target and deliver exceptional customer experiences, but also optimized infrastructure monitoring and alerting. The solution's scalability, flexibility, and integration capabilities have enabled the organization to adapt to the changing demands of the digital landscape and maintain a competitive edge.

Written by

Shradha Sarade
Head - Cloud