Home / Companies / Checkly / Blog / Post Details
Content Deep Dive

How we saved $5k a month with a single Grafana Query

Blog post from Checkly

Post Details
Company
Date Published
Author
Jan Grzesik
Word Count
2,038
Company Posts That Month
7
Language
English
Hacker News Points
47
Post removed?
No
Summary

The authors of this text were optimizing the startup time of ephemeral pods in a Kubernetes cluster, which represented compute time and platform cost. They started by looking at the chunky AWS SDK, which added 70 megabytes to the package size, but switching to the V3 AWS SDK didn't improve start times as much as expected. The authors then drilled into finding the exact source of CPU time by adding a log line to track the time it took for each pod to be ready. They found that the startup time was around 3 seconds, which seemed high, and were concerned about the experience for new users of Checkly. To fix this issue, they shifted their order of operations to optimize performance, but still had excess time to prepare the pod. The authors then monkey-patched the `require` function to find the cause of slow starts, discovered that different versions of the AWS SDK were causing delays, and changed all versions to be the same version, which reduced startup times by 300 milliseconds, resulting in significant cost savings.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 3 441 120 76 -21%
Kubernetes 2 1,439 188 73 +22%
Observability 2 1,612 262 91 +35%
Platform Engineering 1 368 70 35 +86%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.