Multi-level Metering (Account & User) - Approaches and Solutions? #3247
-
Hello OpenMeter Community, We need to manage plans and quotas at both the account level and the individual user level (an account contains one or more users). Our current understanding is that OpenMeter's subjects are primarily "accounts." The currently proposed approach involves:
This approach may require publishing two separate usage events for a single operation (one for user, one for account metering), raising concerns about consistency. We've also explored an approach of using account subjects with user IDs as event properties and dynamically creating enforcement rules based on user ID grouping. We're looking for guidance on:
Any insights or examples are greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ron-placer, |
Beta Was this translation helpful? Give feedback.
Hi @ron-placer,
We're working on consolidating subjects with customers and you'll be able to specify multiple event subjects in a customer's usage attribution: https://openmeter.io/blog/updates-to-the-subject-apis#-allow-assigning-multiple-subjects-to-a-customer
I'll notify you once we publish this change in the next version.