Obtaining Metadata through API



Is there any way I can get the metadata showed on AMC console via some api ?

I want to access properties like ‘available-bin-names’ or ‘expired-objects’ for each node programmatically.


Yes, via the info api.

The info commands can be found here: http://www.aerospike.com/docs/reference/info

From the python client you would use this API: http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.info

Other clients will also include a similar API.

How can I use Info api to get XDR related stats?

BTW, the collectd plugin issues info commands without bothering with the full python client.


The list of metrics is covered on the site in the deployment’s section reference manuals.