Obtaining Metadata through API

query

#1

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.


#2

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?
#3

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


#4

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