Reputation: 819
Does anybody know if Google provides an API to programmatically retrieve the current usage of firestore?
More precisely, I'm referring to the current number of read & write operations, as shown here:
Upvotes: 3
Views: 883
Reputation:
As your screenshot indicates, Firestore provide a Monitor to check the usage of your plan. Unfortunately, though, there is not an API to programmatically return the usage of your Firestore.
However, as mentioned in the official documentation Monitoring usage, you can create an alert policy to track your metrics and send an email to you, based on limits that you set, informing that the usage reached this certain point defined.
The steps for you to achieve the configuration are the following:
I believe this should help you, even though it's not an API was you might prefer. Besides that, I would recommend you to raise a Feature Request on Google's system for them to check the possibility of this be implemented in the future.
Let me know if the information helped you!
Upvotes: 6