directory
Version:
v0.1.23
Opens a new window with list of versions in this module.
Published: Jul 14, 2025
License: MIT
Opens a new window with license information.
README
¶
Examples
Install
go install github.com/kevindweb/throttle-proxy@latest
Locally
make build
Usage
Config File
throttle-proxy -config-file examples/config.yaml
CLI Flags
throttle-proxy -upstream=http://localhost:9095 \
-insecure-listen-address=0.0.0.0:7777 \
-internal-listen-address=0.0.0.0:7776 \
-proxy-paths=/api/v2/endpoint-to-proxy \
-passthrough-paths=/api/v2/endpoint-to-passthrough \
-proxy-read-timeout=30s \
-proxy-write-timeout=30s \
-enable-jitter=true \
-jitter-delay=3s \
-enable-observer=true \
-enable-bp=true \
-bp-monitoring-url=http://localhost:9095 \
-bp-min-window=1 \
-bp-max-window=1000 \
-bp-query='sum(rate(throughput[1m]))' \
-bp-warn=5000 \
-bp-emergency=8000 \
-bp-query='sum(rate(error_rate[1m]))' \
-bp-warn=0.40 \
-bp-emergency=0.80
Directories
¶
Click to show internal directories.
Click to hide internal directories.