Logo

Overview

OpenMeter uses an event-driven architecture to collect usage data from your applications.

To ingest events into OpenMeter, you need to send them to the OpenMeter API. The API accepts events in JSON format. You can send events to the API using any HTTP client library or our SDKs.

Example

Ingest usage events in CloudEvents format:

curl -X POST http://localhost:8888/api/v1/events \
-H "Expect:" \
-H 'Content-Type: application/cloudevents+json' \
--data-raw '
{
  "specversion": "1.0",
  "type": "request",
  "id": "00001",
  "time": "2023-01-01T00:00:00.001Z",
  "source": "service-0",
  "subject": "customer-1",
  "data": {
    "method": "GET",
    "route": "/hello"
  }
}
'

Read more about usage events.

Quickstart

For a complete guide check quickstart.