Install

Mac OSX via homebrew

Add the yb_stats "brew tap" (which is a github repository):

brew tap fritshoogland-yugabyte/yb_stats

Install yb_stats:

brew install yb_stats

yb_stats is available in /usr/local/bin, which should normally be in $PATH.

Uninstall yb_stasts via homebrew

Remove yb_stats:

brew uninstall yb_stats

Remove the yb_stats "brew tap":

brew untap fritshoogland-yugabyte/yb_stats

RPM based distributions

Install the provided yb_stats RPM via yum:

EL7:

sudo yum install https://github.com/fritshoogland-yugabyte/yb_stats/releases/download/v0.9.8/yb_stats-0.9.8-el.7.x86_64.rpm

EL8:

sudo yum install https://github.com/fritshoogland-yugabyte/yb_stats/releases/download/v0.9.8/yb_stats-0.9.8-el.8.x86_64.rpm

EL9:

sudo yum install https://github.com/fritshoogland-yugabyte/yb_stats/releases/download/v0.9.8/yb_stats-0.9.8-el.9.x86_64.rpm

After yum install, yb_stats is available in /usr/local/bin, which should normally be in $PATH.

These are current latest versions. Look yb_stats github repository releases page for newer versions.

Mac OSX compile from source

Install Rust via rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone the yb_stats repository:

git clone https://github.com/fritshoogland-yugabyte/yb_stats.git

Build yb_stats:

cd yb_stats
cargo build --release

The yb_stats is available in ./target/release/ directory after successful compilation.

Linux compile from source

Install dependencies via yum:

sudo yum install -y git openssl-devel gcc

Install Rust via rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.sh | sh

Clone the yb_stats repository:

git clone https://github.com/fritshoogland-yugabyte/yb_stats.git

Build yb_stats:

cd yb_stats
cargo build --release

The yb_stats is available in ./target/release/ directory after successful compilation.