I want to build a web endpoint which displays metadata of aeropsike. For example
- Number of records in a set
- List of sets in namespace
- Number of connections
- config parameter values
While amc has all this, it is not in the in the format we want it be.
Looks like i found what im looking for.
- Info class api http://www.aerospike.com/apidocs/java/com/aerospike/client/Info.html
- json endpoints amc uses internally. Example : http://[AMC]:[PORT]/aerospike/service/clusters/[CLUSTER_ID]/namespaces/[NAMESPACE]/sets
For me the second option seems very convenient (inspite of being a little hacky) . Any suggestions on whats better?
[update] : just realized the cluster_id does not remain the same. It keeps changing. Is there any way to generate the cluster id?
[update2] : I used the Info java class made my tool based on that. It perfectly suits my needs.