Hi, friends. We use RGW user stats in our billing.
Example on Luminous:
radosgw-admin usage show --uid 5300c830-82e2-4dce-ac6d-1d97a65def33
{
"entries": [
{
"user": "5300c830-82e2-4dce-ac6d-1d97a65def33",
"buckets": [
{
"bucket": "",
"time": "2018-04-06 19:00:00.000000Z",
"epoch": 1523041200,
"owner": "5300c830-82e2-4dce-ac6d-1d97a65def33",
"categories": [
{
"category": "list_buckets",
"bytes_sent": 141032,
"bytes_received": 0,
"ops": 402,
"successful_ops": 402
}
]
},
{
"bucket": "-",
"time": "2018-04-24 13:00:00.000000Z",
"epoch": 1524574800,
"owner": "5300c830-82e2-4dce-ac6d-1d97a65def33",
"categories": [
{
"category": "get_obj",
"bytes_sent": 422,
"bytes_received": 0,
"ops": 2,
"successful_ops": 0
}
]
},
{
"bucket": "test",
"time": "2018-04-06 19:00:00.000000Z",
"epoch": 1523041200,
"owner": "5300c830-82e2-4dce-ac6d-1d97a65def33",
"categories": [
…
<output truncated>
...
{
"category": "get_obj",
"bytes_sent": 642,
"bytes_received": 0,
"ops": 3,
"successful_ops": 0
},
…
<output truncated>
...
]
}
]
}
],
"summary": [
{
"user": "5300c830-82e2-4dce-ac6d-1d97a65def33",
"categories": [
…
<output truncated>
...
{
"category": "get_obj",
"bytes_sent": 2569,
"bytes_received": 0,
"ops": 12,
"successful_ops": 0
},
{
"category": "list_bucket",
"bytes_sent": 185537,
"bytes_received": 0,
"ops": 302,
"successful_ops": 302
},
{
"category": "list_buckets",
"bytes_sent": 141032,
"bytes_received": 0,
"ops": 402,
"successful_ops": 402
},
…
<output truncated>
...
],
"total": {
"bytes_sent": 884974,
"bytes_received": 0,
"ops": 1521,
"successful_ops": 1507
}
}
]
}
What statistics are in dictionaries with "bucket": "", and "bucket": "-",?
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
