Skip to content

essentialkaos/redis-latency-monitor

GitHub Actions CI Status GoReportCard codebeat badge GitHub Actions CodeQL Status

Usage demoInstallationUsageBuild StatusLicense


Tiny Redis client for latency measurement. Utility show PING command latency or connection latency in milliseconds (one thousandth of a second).

Usage demo

demo

Installation

From source

To build the redis-latency-monitor from scratch, make sure you have a working Go 1.19+ workspace (instructions), then:

go install github.com/essentialkaos/redis-latency-monitor@latest
sudo yum install -y https://yum.kaos.st/kaos-repo-latest.el$(grep 'CPE_NAME' /etc/os-release | tr -d '"' | cut -d':' -f5).noarch.rpm
sudo yum install redis-latency-monitor

Prebuilt binaries

You can download prebuilt binaries for Linux and macOS from EK Apps Repository.

Usage

Usage: redis-latency-monitor {options}

Utility show PING command latency or connection latency in milliseconds (one thousandth of a second).

Options

  --host, -h ip/host         Server hostname (127.0.0.1 by default)
  --port, -p port            Server port (6379 by default)
  --connect, -c              Measure connection latency instead of command latency
  --password, -a password    Password to use when connecting to the server
  --timeout, -t 1-300        Connection timeout in seconds (3 by default)
  --interval, -i 1-3600      Interval in seconds (60 by default)
  --timestamps, -T           Use unix timestamps in output
  --output, -o file          Path to output CSV file
  --error-log, -e file       Path to log with error messages
  --no-color, -nc            Disable colors in output
  --help                     Show this help message
  --version, -v              Show version

Examples

  redis-latency-monitor -h 192.168.0.123 -p 6821 -t 15
  Start monitoring instance on 192.168.0.123:6821 with 15 second timeout

  redis-latency-monitor -c -i 15 -o latency.csv
  Start connection latency monitoring with 15 second interval and save result to CSV file

Build Status

Branch Status
master CI
develop CI

License

Apache License, Version 2.0