Install Prometheus Exporter on Linux
You can download the Aerospike Prometheus Exporter manually from the Download page. The release notes have important information about each release. Use the following example to automate downloading versions of the Exporter from the artifact repository.
Base URL
https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0
Install on Red Hat systems
-
Download the RPM package.
Terminal window wget https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0/aerospike-prometheus-exporter-1.24.0-1.x86_64.rpm -
Install the package.
Terminal window rpm -Uvh aerospike-prometheus-exporter-1.24.0-1.x86_64.rpm
-
Download the RPM package.
Terminal window wget https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0/aerospike-prometheus-exporter-1.24.0-1.aarch64.rpm -
Install the package.
Terminal window rpm -Uvh aerospike-prometheus-exporter-1.24.0-1.aarch64.rpm
Install on Debian-derived systems (Debian, Ubuntu, or others)
-
Download the Debian package.
Terminal window wget https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0/aerospike-prometheus-exporter_1.24.0-1_amd64.deb -
Install the package.
Terminal window dpkg -i aerospike-prometheus-exporter_1.24.0-1_amd64.deb
-
Download the Debian package.
Terminal window wget https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0/aerospike-prometheus-exporter_1.24.0-1_arm64.deb -
Install the package.
Terminal window dpkg -i aerospike-prometheus-exporter_1.24.0-1_arm64.deb
Download the binary
Download the .tgz
package containing the binary.
# Download and extract the package containing the exporter binarywget https://download.aerospike.com/artifacts/aerospike-prometheus-exporter/1.24.0/aerospike-prometheus-exporter_1.24.0-1_x86_64.tgz -O aerospike-prometheus-exporter.tgztar -xvzf aerospike-prometheus-exporter.tgz
Install and run the exporter:
# Run the exporter directly using the binary./usr/bin/aerospike-prometheus-exporter --config ./etc/aerospike-prometheus-exporter/ape.toml
(for systemd based):
# install exporter binarycp ./usr/bin/aerospike-prometheus-exporter /usr/bin/aerospike-prometheus-exporter
# install configuration filemkdir -p /etc/aerospike-prometheus-exportercp ./etc/aerospike-prometheus-exporter/ape.toml /etc/aerospike-prometheus-exporter/ape.toml
# install systemd service unit filemkdir -p /usr/lib/systemd/systemcp ./usr/lib/systemd/system/aerospike-prometheus-exporter.service /usr/lib/systemd/system/aerospike-prometheus-exporter.service
# Reload systemd manager configurationsystemctl daemon-reload
Exporter naming conventions
- Starting with Database 6.2 and Exporter 1.9.0, where support for 64-bit ARM was introduced, the Exporter packages use the following naming convention:
Package name
Note the difference between the hyphen -
, underscore _
, and period .
usages.
- *.deb & *.tgz use this construct:
aerospike-prometheus-exporter_VERSION-1_ARCHITECTURE.EXTENSION
- *.rpm uses this construct:
aerospike-prometheus-exporter-VERSION-1.ARCHITECTURE.EXTENSION
version: 1.24.0
, and so on
architecture: x86_64
, aarch64
- based on uname -m
- Prior to Exporter 1.9.0, Exporter ran only on x86_64 architecture and used the following naming convention:
Package name
aerospike-prometheus-exporter_VERSION.tgz