Usage Metering
Ingestion Options
5 min
a successful usage based business model with metered billing is built on the foundation of an accurate usage data collection strategy amberflo provides multiple easy ways to begin collecting data without the need to re tool your systems sdk using the amberflo sdk gives you more control immediate feedback via response codes support for batching records flush on demand functionality batching records amberflo sdks are designed to support high throughput environments you can confidently send hundreds of meter records per second deploy the sdk on web servers handling high volumes of traffic ensure accuracy and availability from day one how it works each call is queued in memory , not sent immediately over http messages are batched and flushed in the background , allowing for much faster performance you can configure the batch size and the flush rate flush on demand (blocking call) you can flush the queue manually —for example, at the end of your program—to ensure no data is left unsent just call the flush method metering flush() important this is a blocking call —it will pause the calling thread until the queue is empty we recommend using it only in cleanup scripts , not during request processing non sdk we strongly recommend using our sdk for aws s3 , as it offers the best of both worlds access to rich sdk features (see above) guaranteed aws s3 uptime sla for meter ingestion however, we fully support cases where using a third party sdk isn’t possible or preferred in such scenarios, amberflo offers multiple alternatives amberflo application the amberflo web application provides a rich set of real time dashboards for visualizing usage revenue dashboards can be filtered by customer meter name custom dimensions amberflo api amberflo is an api first platform every feature and object can be accessed programmatically via our apis and sdks getting started aws s3 amberflo provides access to an amazon s3 bucket with predefined permissions and controls to write meter data directly aws s3 logging systems many companies already use centralized logging infrastructure (e g , aws cloudwatch ) for operational insights while logging systems aren't built specifically for metering, they can serve as a "catch all" for usage data streams because they’re deeply integrated into your systems amberflo supports this approach by allowing you to write meter events to your logging system extracting meter events from it using supported connectors we currently provide a connector for aws cloudwatch ( aws cloudwatch ) we’re continuously adding new out of the box integrations —check the integrations section for updates if you have a specific request, please contact us see aws cloudwatch