Real-Time and Scalable Usage Metering
Open-Source Metering for AI, Usage-Based Billing, Infrastructure, and IoT use-cases.

Be among the first to try
OpenMeter Cloud
Managed OpenMeter Cloud with high availability, meter management and UI.
Quickstart
import { OpenMeter } from '@openmeter/sdk'
const openmeter = new OpenMeter({
baseUrl: 'http://localhost:8888'
})
// Measure OpenAI / ChatGPT token usage
await openmeter.events.ingest({
type: 'tokens',
subject: 'user-id',
data: {
tokens: 15,
model: 'gpt-4',
},
})
// Retreive token usage
const values = await openmeter.meters.query('token-usage', {
subject: ['user-id'],
from: new Date('2021-01-01'),
to: new Date('2021-01-02'),
})
The Challenge

Inaccuracy
of Monitoring Systems
Monitoring systems are tailored to gather, process, and store operational data. However, these systems often lack the level of consistency crucial for auditable use-cases like billing, where legally binding contracts necessitate accuracy and complete data.

Expensive
Databases Writes
Scaling databases to accommodate write-intensive event ingestion and real-time queries can be costly. Not only do you need to store every single record in the database, but also you must scan through them for aggregation in your queries, driving up load and cost.

Stale
Batch Processing
Storing all records in a data warehouse and processing them in batches may be cost-effective, but it leads to outdated meters. Most companies run daily batch processing, resulting in stale data that is unsuitable for immediate-response product use-cases, such as billing thresholds.
The Solution
Real-Time Queries
OpenMeter collects, cleans and aggregates millions of events per second to power real-time usage queries for billing, in-app usage dashboards, and event-driven analytics.

Infrastructure Plugins
OpenMeter offers plugins for infrastructure components like Kubernetes and AWS, allowing effortless metering and resource attribution.

Scalable and Reliable
Our idempotent event processing system combined with support for data backfill and meter resets ensures you can ingest millions of events per second and handle common failure scenarios in your daily business operations.

Watch The Demo
Be among the first to try
OpenMeter Cloud
Managed OpenMeter Cloud with high availability, meter management and UI.
How It Works
OpenMeter combines the power of Kafka and ClickHouse with industry expertise from Stripe, Cisco, and Netflix to deliver billing-grade and scalable metering.
OpenMeter ingests data through events using the CloudEvent specification from CNCF. The usage metering aggregations are easily configurable, allowing tracking of specific event properties.
OpenMeter is released under the Apache 2.0 Open Source license and its source code is available on GitHub and maintained by a vibrant and diverse community from all over the globe.
testimonialsWhat people are saying about us
Our Roadmap
Q2 2023
- Open Source Launch
- SDK: Node.js
- SDK: Go
- Examples for Stripe, OpenAI, Fastify and Kubernetes
Q3 2023
- Cloud Launch
- Export to Database
- Instrumentations for Kubernetes, Log Parser, etc.
- In-app usage React component
- Export to S3 for Audit use-cases
- Vercel Marketplace Integration
Q4 2023
- Usage Backfill
- Webhooks
- Instrumentations for AWS Lambda, SQS, CloudWatch, etc.
- Meter migrations
- Per Consumer Usage Overwrite
- Export to HubSpot and Salesforce