Info retrieval for a Swift billing system

Asked by Giuseppe Civitella

Hi all,

I'm trying to figure out how a billing system could retrieve stats info about all the tenants in a Swift cluster.
Do someone has a working example to show?
Is the .reseller_admin status involved while choosing credentials to query for stats?
What about doing the same query while using Keystone authentication?

Thanks a lot
Giuseppe

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Giuseppe Civitella
Solved:
Last query:
Last reply:
Revision history for this message
Giuseppe Civitella (gcivitella) said :
#1

On /srv/node/*/account/ there are some .db files.
Those are the sqlite databases holding account usage data.
There is one db for every account.

Revision history for this message
John Dickinson (notmyname) said :
#2

You are correct that there are .db files and by reading them you can get usage info. Note however that there are multiple replicas of the data in the cluster, so you need to account for that when aggregating your data.

I have a project that does some degree of usage tracking for swift clusters at https://github.com/notmyname/slogging. It may give you some pointers.