-
Notifications
You must be signed in to change notification settings - Fork 26
Redis Instrumentation
skylerfoster67 edited this page Dec 7, 2023
·
4 revisions
This is a basic rundown on getting the redis_exporter on your machine and collecting metrics. Full documentation can be found here.
First, clone the repository
git clone https://github.com/oliver006/redis_exporter.git
Add the following path into "/etc/profile" if not already there
export PATH=/usr/local/go/bin:$PATH
Then change directories into the exporter, build it, and check the version
cd redis_exporter
go build .
./redis_exporter --version
Your go version must be updated to the most recent version. Here are steps to do so:
rm -rf /usr/local/go
wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz
exit
go version
You can run the exporter like so
cd redis_exporter
./redis_exporter &
The metrics can be found by running this command
curl localhost:9121/metrics