From 8e1f9aabf4a020d4d321fb454fc3c37a2caa2161 Mon Sep 17 00:00:00 2001 From: doodgeMatvey Date: Mon, 2 Sep 2024 21:51:04 +0300 Subject: [PATCH] issue-100, getting started information was added --- README.md | 52 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index eba30bd..7c4ba9c 100644 --- a/README.md +++ b/README.md @@ -18,25 +18,59 @@ BRRO Compressor is a compressor that relies on the characteristics of a signal t For a detailed description on the compressor methods and logic check `BRRO.md`. -## Usage +## Getting Started with BRRO Compressor + +### Prerequisites + +- Ensure you have [Rust](https://www.rust-lang.org/tools/install) and Cargo installed on your system. + +### Installation + +1. Clone the repository: + ```bash + git clone https://github.com/instaclustr/fft-compression + cd fft-compression + ``` + +2. Build the project: + ```bash + cargo build --release + ``` + +### Usage Currently BRRO relies on have Raw BRRO files generated by our prometheus remote endpoint. This would work as input for the compressor. Compressor usage: -```An Advanced Time-Series Compressor - +``` Usage: brro-compressor [OPTIONS] Arguments: - input file + input file Options: - --compressor [default: auto] [possible values: auto, noop, fft, wavelet, constant, polynomial, top-bottom] - -u Uncompresses the input file/directory - -h, --help Print help - -V, --version Print version - ``` +--compressor [default: auto] [possible values: auto, fft, constant, polynomial] +-u Uncompresses the input file/directory +-h, --help Print help +-V, --version Print version +``` + +#### Compress a File + +To compress a file using the BRRO Compressor, run: + +```bash +brro-compressor +``` + +#### Decompress a File + +To decompress a file, use the following command: + +```bash +brro-compressor -u +``` ## Programs and description