Categorygithub.com/froot-netsys/promsketch
repositorypackage
0.0.0-20250127034620-15ccb84c2283
Repository: https://github.com/froot-netsys/promsketch.git
Documentation: pkg.go.dev

# README

promsketch

This repository provides PromSketch package for Prometheus and VictoriaMetrics.

Install Dependencies

# installs Golang
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# download and install Node.js (you may need to restart the terminal)
nvm install 20

Datasets

Run EHUniv test

cd promsketch
go test -v -timeout 0 -run ^TestExpoHistogramUnivMonOptimizedCAIDA$ github.com/froot/promsketch

Run EHKLL test

cd promsketch
go test -v -timeout 0 -run ^TestCostAnalysisQuantile$ github.com/froot/promsketch

Integration with Prometheus

git clone [email protected]:zzylol/prometheus-sketches.git

Compile:

cd prometheus-sketches
make build

Integration with VictoriaMetrics single-node version

git clone [email protected]:zzylol/VictoriaMetrics.git

Compile:

cd VictoriaMetrics
make victoria-metrics
make vmalert

Integration with VictoriaMetrics Cluster version

https://github.com/zzylol/VictoriaMetrics-cluster