TheLunarCompany / lunar

lunar.dev: Ground Control for 3rd Party APIs
https://lunar.dev
MIT License
111 stars 5 forks source link

View quota usage per user #16

Open voddan opened 1 month ago

voddan commented 1 month ago

Hi!

For my application I need to limit API calls per user with monthly quotas. Can Lunar show me the current state of affairs, e.i. how much a specific user have used their quota, or even their usage statistics for a time period? I looked through the docs and the demos, but they only show aggregates.

Also, I need an ability to dynamically increase a quota of a user. Can Lunar do that, for example by taking the quota limits from a database of users? Can it be done by developing a 3rd party remedy plugin?

tal-lunar commented 1 month ago

Hi! Thank you for your question.

Currently, Lunar provides aggregate statistics on API usage, but the ability to view usage per user and for specific periods is not directly available out of the box. However, we're actively working on enhancing our capabilities and plan to include more granular usage statistics in future updates.

One of our next major releases will include Lunar Flows as an alternative to our current plugins, which will offer more flexible and powerful features for quota management, including better control and visibility of quotas and the ability to automatically update quotas based on response headers or custom headers.

Stay tuned on our website for the announcement of Lunar Flows when it's out.