Skip to content

staticmukesh/aerospike_exporter

Repository files navigation

Aerospike Metrics Exporter

Circle CI

A Prometheus exporter for collecting Aerospike metrics.

Installation

Download latest executable from releases, and extract and run it.

$ ./aerospike_exporter <flags>

Add a block to the scrape_configs of your prometheus.yml config file:

scrape_configs:

...
  - job_name: aerospike_exporter
    static_configs:
      - targets: ['localhost:9145']
...

and adjust the host name accordingly.

Flags

Name Description
aerospike.addr Address of aerospike node, defaults to localhost:3000.
aerospike.alias Alias for aerospike node address.
web.listen-address Address to listen on for web interface and telemetry, defaults to 0.0.0.0:9145.
web.telemetry-path Path under which to expose metrics, defaults to metrics.
as-only-metrics Whether to avoid metrics other than aerospike, defaults to false.

These settings take precedence over any configurations provided by environment variables.

Environment Variables

Name Description
AEROSPIKE_ADDR Address of Aerospike node
AEROSPIKE_ALIAS Alias name of Aerospike node

What's exported ?

The exporter collects metrics related to following items from Aerospike's Info command.

  • Basic Info
  • Statistics
  • Namespace
  • Latency

You can import following Grafana dashboard present under dashboards/ in project folder for Aerospike Metrics Exporter.

alt Grafana Dashboard

Local building and running

If you want to build package yourself, or want to contribute. You can follow the guide to setup the project.

$ go get github.com/staticmukesh/aerospike_exporter
$ go build
$ ./aerospike_exporter <flags>

To rebuild the package on source change,

$ go get github.com/Unknwon/bra
$ bra run

Contributing

Open an issue or PR if you have more suggestions or ideas about what to add or improve.

Thanks

This project has been inspired from redis_exporter by oliver006.