TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How do you meter execution duration for billing?

2 pointsby hekikealmost 2 years ago
I&#x27;m researching the best ways to collect the execution duration of containers&#x2F;serverless workloads for billing and chargeback use cases. Per second granularity, like AWS CPU-Hours. I&#x27;m finding that most engineers&#x27; journeys start with listening to start&#x2F;stop events and calculating the delta between those lifecycle events. But over time, they find it challenging to handle lost events or long-running processes. It&#x27;s also not always fair to customers when a container takes longer to start (cold start) or stop.<p>So far, I have heard two primary ways: 1. Lifecycle events like start&#x2F;stop, 2. Heartbeat-style pinging. I summarized them in this blog post: https:&#x2F;&#x2F;openmeter.io&#x2F;blog&#x2F;how-to-meter-workload-execution-duration<p>I would love to iterate on the post based on your thoughts and include other ways if any. How do you meter container&#x2F;serverless execution duration for billing?

no comments

no comments