Use case

Enhancing Cloud Cost Efficiency with Automated Alerting System using AWS Lambda

About the Customer

Freshfruit.ai is an innovative company specializing in assessing the quality of fruits and vegetables. Freshfruit.ai’s product involves a comprehensive analysis of fresh produce, offering detailed insights into their quality. The Freshfruit.ai application is available on both Android and iOS platforms, utilizing cutting-edge machine learning tools and AI-powered platforms to accurately evaluate the quality of fruits. Through this technology, Freshfruit.ai aims to revolutionize the global fresh produce supply chain by providing robust assessments and enhancing overall quality assurance processes.

Customer Challenge

Freshfruit.ai utilizes AWS Lambda to monitor daily expenses incurred on AWS and Mongo Atlas, actively looking out for any sudden increases in costs. When cost spikes occurred, the DevOps team had to manually investigate them, comparing costs from previous weeks using AWS Cost Explorer to drill down the root cause of the spike. This manual process was slow and inefficient, especially as the usage of AWS and Mongo Atlas grew, making cost spikes more frequent and complex.

Investigating these cost anomalies manually took considerable time and was prone to errors, which hampered the team’s ability to manage cloud expenses effectively. The lack of automation meant that significant engineering time was spent on routine checks instead of focusing on optimizing infrastructure or improving performance. This growing challenge needed a solution that would reduce manual efforts, ensure accuracy, and help the team take timely actions.

Solution

IAMOPS implemented an automated system using AWS Lambda and AWS Cost Explorer to drill down AWS costs daily, providing real-time monitoring and alerting of cost anomalies. AWS Lambda was configured to trigger daily, gathering cost data for each AWS service and comparing it with the past two weeks’ expenditures.

The system sends notifications on Slack when a threshold or unexpected spike is detected in any AWS service. In addition to AWS services, the automation also monitors Mongo Atlas costs by cluster using the Atlas API. If anomalies are detected in the Mongo Atlas cost, similar alerts are sent to the client.

IAMOPS provided pre-migration and post-migration support, ensuring a smooth transition to automated cost analysis. This setup not only reduced the manual workload but also minimized the chances of human error. The DevOps team can now focus on higher-priority tasks such as infrastructure optimization.

The following services were used in the solution:

  • AWS Lambda – for serverless automation of cost monitoring and notification.
  • AWS Cost Explorer – to fetch and analyze cost data across different AWS services.
  • Amazon Cloud Watch – for real-time monitoring and alerting.
  • Mongo Atlas API – to fetch daily cost data for MongoDB clusters.

Results & Benefits

The automation provided by IAMOPS delivered the following results and benefits for Freshfruit.ai:

  • Reduced manual effort by automating daily cost analysis and anomaly detection.
  • Improved visibility into cost spikes and service-wise costs, allowing the team to pinpoint the root cause of any spending surge.
  • Timely notifications on Slack ensured the DevOps team could take immediate action whenever a cost anomaly was detected.
  • By automating the cost management process, the DevOps team could allocate more resources toward optimizing infrastructure and enhancing performance.

About IAMOPS

IAMOPS is a full DevOps suite company that supports technology companies to achieve intense production readiness.

Our mission is to ensure that our clients’ infrastructure and CI/CD pipelines are scalable, mitigate failure points, optimize performance, ensure uptime, and minimize costs.

Our DevOps suite includes DevOps Core, NOC 24/7, FinOps, QA Automation, and DevSecOps to accelerate overall exponential growth.

As an AWS Advanced Tier Partner and Reseller, we focus on two key pillars: Professionalism by adhering to best practices and utilizing advanced technologies, and Customer Experience with responsiveness, availability, clear project management, and transparency to provide an exceptional experience for our clients.

Looking for a dedicated DevOps team?