openmeterio / openmeter

Metering and Billing for AI, API and DevOps. Collect and aggregate millions of usage events in real-time and enable usage-based billing.
https://openmeter.io
Apache License 2.0
1.14k stars 68 forks source link

Customizable prefix for Kafka topics #102

Closed hekike closed 1 year ago

hekike commented 1 year ago

Currently, we use a hardcoded prefix om_ to prefix Kafka topics. For example:

Requirements:

sagikazarmark commented 1 year ago

This proved to be a tougher nut to crack than expected, but after some experimentation and bouncing off some walls, here is what I came up with:

With those in mind:

It took me some time to figure out a way to even think about the prefix concept in a consistent way and I realized that it's not a good term we can easily explain or reason about, so I decided to change it.

Let me know what you think.

sagikazarmark commented 1 year ago

This is done