CS: Query path for storage/access statistics appears wrong?

Toby Corkindale toby at dryft.net
Wed Jul 2 01:23:28 EDT 2014


Hi,
Maybe I'm doing something wrong, but I find I can only access the Riak
CS storage/access information per-user by using the s3-compatible
path, not the REST API path -- even though I am connecting to the REST
API port.

ie. To get the statistics, I am querying
http://SERVERNAME:8080/riak-cs/usage/USER-ID/b/STIME/ETIME
An actual URI generated this way would be:
/riak-cs/usage/ZAZ6_VYSIE7QMYQRRHY3/b/20140528T000000Z/20140602T000000Z


If I try to use the proper API method, I consistently receive
"not_requested" as the results.
The API URL is:
http://SERVERNAME:8080/riak-cs/usage/USER-ID?b&e=ETIME&s=STIME
An actual URI generated this way would be:
/riak-cs/usage/JEJ-XPZBSIKSU_Z4EGPC?b&e=20140602T000000Z&s=20140528T000000Z

Is this a known bug or should this be working (and I'm just doing it wrong?).
Current latest stable Riak - 1.4.9-1 from Basho Ubuntu repo.


Cheers,
Toby




More information about the riak-users mailing list