Search code examples
graphiteaerospikeasgraphite

How do I write time-series data using asgraphite on an existing graphite server?


Using this documentation, I understand that I can log a one-time value like this -

python /opt/aerospike/bin/asgraphite -l 'latency:' --start -g <graphite_host> -p <graphite_port>

Where and will be the details of the already running graphite server that we have.

But, how do I specify the namespace where I want to log? The graphite server already has some namespaces where data is being logged.

Also, does the daemon initiated by such a command support logging at preset intervals? Or do I need to setup a cron for the same?


Solution

  • An updated version and documentation of the asgraphite python script can be found here.

    https://github.com/aerospike/aerospike-graphite

    You can use --interval to specify reporting preset interval to graphite server.

    --interval GRAPHITE_INTERVAL How often metrics are sent to graphite (seconds)

    Also you can get all namespaces and sets using the following options (i don't believe you can specify only one namespace, all namespaces would get reported. :

    -n, --namespace Get all namespace statistics
    -s, --sets Gather set based statistics

    You also have the option of using a prefix. The default prefix is : instances.aerospike.

    --prefix GRAPHITE_PREFIX Prefix used when sending metrics to Graphite server (default: instances.aerospike.)