Categorygithub.com/staticmukesh/aerospike_exporter
modulepackage
0.1.2
Repository: https://github.com/staticmukesh/aerospike_exporter.git
Documentation: pkg.go.dev

# README

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

NameDescription
aerospike.addrAddress of aerospike node, defaults to localhost:3000.
aerospike.aliasAlias for aerospike node address.
web.listen-addressAddress to listen on for web interface and telemetry, defaults to 0.0.0.0:9145.
web.telemetry-pathPath under which to expose metrics, defaults to metrics.
as-only-metricsWhether to avoid metrics other than aerospike, defaults to false.

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

Environment Variables

NameDescription
AEROSPIKE_ADDRAddress of Aerospike node
AEROSPIKE_ALIASAlias 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.

# Packages

No description provided by the author
No description provided by the author

# Functions

GetEnv returns environment value for given key.