Referencepepe --help
Command reference
Every command and flag, as --help prints them. Generated from the command definition by cargo test, so it can't drift from the binary; the pages before this one say what the flags are for.
The options under pepe are global: they work after any subcommand too (pepe ping -H 'Accept: text/html' …), where they make sense.
pepe
HTTP load generator
Usage: pepe [OPTIONS] [URL] [-- <ARGS>...] [COMMAND]
Commands:
ping Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph
ramp Raise the load step by step to find where the target stops keeping up
compare Hold a run's JSON report against an earlier one and say what moved
rerun Run a saved test again, record the run, and say what moved since the run before
history The saved tests and their recorded runs
api Load-test every endpoint of an OpenAPI spec
flow Run a sequence of requests from a flow file, each step fed by the last
replay Send the URLs of an access log in their real proportions
logs Read nginx logs: requests per second now, against each minute, hour and day
schema Print the JSON Schema of a report: run (the default), ramp, ping or compare
mcp Serve pepe's modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call
serve Serve pepe over HTTP: start, watch, steer and compare runs from a script, an agent or a browser; loopback and a token by default
worker Take a share of a `pepe serve`'s distributed runs from this machine, under its own guardrails
self-update Update pepe to the latest release, or say what's new in it
completions Tab completion for your shell: print the script, or --install it
slack Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes
export Turn a JSON report into a page, a Markdown summary, text or CSV
help Print this message or the help of the given subcommand(s)
Arguments:
[URL]
HTTP url to request
[default: ""]
[ARGS]...
List of arguments to pass to curl command
[default: ""]
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
--curl
Load-test a curl command: pepe --curl -- curl -X POST http://localhost:8080, or pass it as one quoted string, as @file, or on stdin
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
--otlp <ADDR>
Take the service's OpenTelemetry spans at ADDR (OTLP over HTTP, as :4318) and say where its time went: each request carries its own traceparent, and the report breaks the server's time down by span. Point the service at it: OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)
-V, --version
Print versionpepe ping
Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph
Usage: pepe ping [OPTIONS] [TARGETS]...
Arguments:
[TARGETS]...
What to ping: URLs or hosts (https unless a port is given), host:port, aws:REGION, a range like 10.0.0.0/29, or commands with --cmd; several are graphed together
Options:
--every <TIME>
Time between pings, e.g. 1s, 500ms, 2m
[default: 1s]
--window <TIME>
How much of the run the graph shows, e.g. 60s, 5m; + and - change it on screen, w shows the whole run
[default: 60s]
--name <NAME>
What to call each target, in order: --name api --name cdn, or --name api,cdn
--color <COLOR>
A colour for each target's line, in order: red, green, yellow, blue, magenta, cyan, white, gray, their light- forms, or #RRGGBB
-4
Resolve names to IPv4 addresses only
-6
Resolve names to IPv6 addresses only
--all-ips
Ping every address a name resolves to, each as a target of its own
--interface <NAME|IP>
Send from this interface (en0, eth0) or local address
--tcp
Only connect: a TCP ping of the port, with no request sent
--port <PORT>
With --tcp: the port of a target that names none
[default: 80]
--tcp-rst <TCP_RST>
With --tcp: a connection refused counts as an answer (the host is there) rather than a failure
Possible values:
- pong: An answer: something is there to refuse
- fail: A failure
[default: pong]
--cmd
The targets are commands: run each one every interval and graph how long it takes; its exit code is the status
--keep-alive
Keep the connection between pings, as a browser would. The DNS, connect and TLS phases are then measured once; without it every ping measures all five
--slo <KEY=MS,...>
Limits a ping must meet, in milliseconds: total=500,ttfb=200, connect=100,dns=50,tls=150,download=100. Breaking one marks the ping, and the run exits 4 at the end
--bell
Ring the terminal bell when a ping fails or breaks the SLO
--ymin <MS>
The graph's floor, in milliseconds
--ymax <MS>
The graph's ceiling, in milliseconds; without it the graph fits what it shows
-0
Start the graph at zero (the same as --ymin 0)
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-s, --simple-graphics
Draw the graph with dots rather than braille, for terminals and fonts that lack it
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
--jsonl
No screen: one JSON object per ping on stdout, as it happens
--csv
No screen: one CSV line per ping on stdout, under a header
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
--save <FILE>
Write the JSON report to this file when the run ends, whatever else is shown
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
--show-body
Keep the first kilobyte of each body for the inspector
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
--save-body <FILE>
Write the last body received to this file when the run ends
--http1
Speak HTTP/1.1 even when the server offers HTTP/2; without it a ping takes h2 when the server offers it through ALPN
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--once
One diagnosis and out: three quick pings, then the last one's phases, what answered, and what to look at; no screen
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe ramp
Raise the load step by step to find where the target stops keeping up
Usage: pepe ramp [OPTIONS] [URL]
Arguments:
[URL]
HTTP url to request; without one, the setup screen opens
Options:
--from <FROM>
Concurrency of the first step
[default: 10]
--to <TO>
Concurrency of the last step
[default: 100]
--step <STEP>
Concurrency added at each step
[default: 10]
--every <EVERY>
How long each step is held, e.g. 10s, 1m
[default: 10s]
--until <CONDITION>
End the ramp once a step crosses this: 'p99 > 500ms', 'errors > 1%'
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe compare
Hold a run's JSON report against an earlier one and say what moved
Usage: pepe compare [OPTIONS] <BEFORE> [AFTER]
Arguments:
<BEFORE>
The earlier report (`pepe --json`, `--snapshot`, or a ramp's), or the name of a saved test, whose last two recorded runs are compared
[AFTER]
The later one, of the same test
Options:
--gate
Exit 1 when the verdict is Slower or Worse, for CI
--svg <FILE>
Also write the verdict as a card, an SVG for a README or a page
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe api
Load-test every endpoint of an OpenAPI spec
Usage: pepe api [OPTIONS] [SPEC]
Arguments:
[SPEC]
The OpenAPI spec: a file, a URL or the document itself, JSON or YAML (or `spec` in pepe.toml). Without it, the setup screen asks
Options:
--auth <AUTH>
Credentials: bearer:TOKEN, basic:USER:PASSWORD, apikey:VALUE, header:NAME=VALUE or query:NAME=VALUE
--server <SERVER>
Base URL to send requests to, instead of the spec's server
--all
Run every endpoint that has the values it needs. Without --all, --tag or --only, nothing runs until it's picked on the plan screen
--tag <TAG>
Run the endpoints with this tag, e.g. --tag Billing
--only <ONLY>
Run the endpoints matching this, e.g. 'GET /pets*' or '/pets/*'
--skip <SKIP>
Leave out endpoints matching this
--set <NAME=VALUE[,VALUE]>
A parameter's value(s), rotated through: --set id=1,2,3
--include-writes
Let --all, --tag and --only switch on POST, PUT, PATCH and DELETE too
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe flow
Run a sequence of requests from a flow file, each step fed by the last
Usage: pepe flow [OPTIONS] <FILE>
Arguments:
<FILE>
The flow: a TOML file of [[step]]s (see the README)
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe replay
Send the URLs of an access log in their real proportions
Usage: pepe replay [OPTIONS] <LOG>
Arguments:
<LOG>
The log: nginx or Apache (common or combined), Caddy JSON, AWS ALB, or one URL or path per line
Options:
--base-url <URL>
Where to send the requests: put in front of paths, and in place of the host of full URLs, e.g. https://staging.example.com
--include-writes
Replay POST, PUT, PATCH and DELETE too; only GET, HEAD and OPTIONS without it
--rows <N>
URLs that get a row of their own on the dashboard, most frequent first; the rest share one
[default: 20]
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe logs
Read nginx logs: requests per second now, against each minute, hour and day
Usage: pepe logs [OPTIONS] [FILES]...
Arguments:
[FILES]...
Access and error logs, rotated ones too; `-` or nothing reads what is piped in, and with nothing at all nginx's own in /var/log/nginx
Options:
--format <LOG_FORMAT>
The access log's log_format as nginx.conf has it, on one line, when it isn't `combined`: '$remote_addr [$time_local] "$request" $status $request_time'
--window <TIME>
What "now" is measured over, e.g. 10s, 1m, 5m
[default: 60s]
--since <TIME>
How far back to start, e.g. 90m, 24h, 7d. At a terminal a log that is being written is shown live, from five minutes back, without it
--all
Read all of the log before following it, however far back it goes
--exact-paths
Count /items/1 and /items/2 apart. Without it the numbers and ids in a path count as one, /items/*
--rows <N>
Rows in each table of the report
[default: 10]
--path <PATH>
Count only the requests to these paths, with * for any run of characters: /api/*, /login; repeat for more. An error log line counts when its request does
--status <CODES>
Count only the requests that answered these: 404, 5xx, 4xx,503; repeat for more. Error log lines are still counted
--host <HOST>
Count only the requests to these hosts (the log's $host): shop.test exactly, .example.com for it and every host under it; repeat for more
--until <TIME>
Leave out what is newer than this, e.g. 1h for up to an hour ago; with --since, a stretch in the past. A log read up to a time in the past isn't followed
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe rerun
Run a saved test again, record the run, and say what moved since the run before
Usage: pepe rerun [OPTIONS] <NAME>
Arguments:
<NAME>
The saved test, as `pepe history` lists them
Options:
--gate
Exit 1 when the verdict is Slower or Worse, for CI
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe history
The saved tests and their recorded runs
Usage: pepe history [OPTIONS] [NAME]
Arguments:
[NAME]
One saved test: its recorded runs, the latest last. Without it, every saved test with its last run
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe schema
Print the JSON Schema of a report: run (the default), ramp, ping or compare
Usage: pepe schema [OPTIONS] [REPORT]
Arguments:
[REPORT]
Which report: run, ramp, ping or compare
[default: run]
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe mcp
Serve pepe's modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call
Usage: pepe mcp [OPTIONS]
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe serve
Serve pepe over HTTP: start, watch, steer and compare runs from a script, an agent or a browser; loopback and a token by default
Usage: pepe serve [OPTIONS]
Options:
--listen <ADDR>
Where to listen: 127.0.0.1:7878 by default. Any address but loopback needs --allow-host and the --max-requests, --max-rate and --max-concurrency caps
--token-file <FILE>
The tokens that may call the API, a line each: `name token`, or the token alone. Without one, a token is made and printed
--max-runs <N>
Runs going at once, on this machine and the workers together
[default: 1]
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe worker
Take a share of a `pepe serve`'s distributed runs from this machine, under its own guardrails
Usage: pepe worker [OPTIONS] --join <URL>
Options:
--join <URL>
The `pepe serve` to join: http://host:7878
--name <NAME>
What the server calls this worker: the host name by default
--token-file <FILE>
A file with the token to join with (the server's token file takes it); else $PEPE_TOKEN
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe self-update
Update pepe to the latest release, or say what's new in it
Usage: pepe self-update [OPTIONS]
Options:
--check
Only say whether a newer release exists (exit code 1 if so) and what's in it; don't install it
--verbose
Show the installer's own output
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe completions
Tab completion for your shell: print the script, or --install it
Usage: pepe completions [OPTIONS] [SHELL]
Arguments:
[SHELL]
bash, zsh, fish or powershell; the current shell when left out
[possible values: bash, zsh, fish, powershell]
Options:
--install
Put the script and the man pages in place and add the line the shell's startup file needs, so tab completion works in the next shell
--dry-run
With --install: say what would be done, and do nothing
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe slack
Connect pepe to Slack from here, so --slack keeps a message there up to date as a run goes
Usage: pepe slack [OPTIONS] [COMMAND]
Commands:
connect Make pepe's Slack app, take its token, pick a channel, post a test (the default)
status What is connected, checked with Slack
test Post a test message
serve Answer the buttons and /pepe: run this directory's saved tests for the people allowed, and stop them
allow Who may press the buttons and use /pepe: @names, Slack ids, or * for anyone in the channel
forget Remove the kept token
manifest Print the app's manifest, for Slack's "From a manifest"
help Print this message or the help of the given subcommand(s)
Options:
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)pepe export
Turn a JSON report into a page, a Markdown summary, text or CSV
Usage: pepe export [OPTIONS] <REPORT>
Arguments:
<REPORT>
The JSON report: a run's (--json, --snapshot, a recorded run), a ramp's or a ping's
Options:
-o, --out <FILE>
Where it goes, its format from its extension; beside the report by default
--to <FORMAT>
The format when -o doesn't say: html (the default), json, md, txt, csv, or all
--open
Open it once written
-h, --help
Print help
-n, --number <NUMBER>
Number of requests to perform
[default: 100]
-c, --concurrency <CONCURRENCY>
Number of concurrent requests at a time
[default: "one per core"]
-z, --duration <DURATION>
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with -n)
-m, --method <METHOD>
HTTP method, e.g. GET, POST, PUT, DELETE
[default: GET]
-H, --headers <HEADERS>
HTTP headers, e.g. -H 'Accept: application/json'
-t, --timeout <TIMEOUT>
Time in seconds to wait for a response
[default: 20]
--warmup <TIME>
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
--threads <N|auto>
Threads sending requests (default 1), or "auto" to add one whenever those sending are all busy. One sends 100k requests a second or more; the dashboard says when it is the limit
--rate <PER_SECOND>
Start this many requests a second, spread evenly, instead of as many as the concurrency allows; -c is then the most in flight at once, and pepe says when it holds the rate back
-d, --body <BODY>
HTTP request body
-u, --user-agent <USER_AGENT>
User-Agent string, default is pepe/{version}
-p, --proxy <PROXY>
Proxy server URL: http://user:pass@host:port or socks5://host:port
-k, --insecure
Accept invalid TLS certificates (self-signed, expired, wrong host)
--disable-compression
Disable HTTP compression, e.g. gzip
--disable-keepalive
Disable HTTP keepalive, e.g. Connection: close
--disable-redirects
Prevent http redirects
--json
Output results in JSON format
--trace-header <NAME>
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server's logs; without it, X-Request-Id, traceparent, CF-Ray, X-Amzn-Trace-Id and other common ones are looked for
--vars <FILE>
Fill the {{holes}} in the URL, headers and body from this CSV file, whose first line names them: each request takes the next row, and the rows go round again. In a flow, each chain starts with the next row's values
--webhook <URL>
Send the run's verdict to this URL when it ends: a Slack, Discord, Teams or Google Chat webhook gets a message laid out for it, anything else the JSON report; repeat for more. ${NAME} is taken from the environment. A [[webhook]] table in pepe.toml says more
--webhook-on <EVENTS>
When the --webhook URLs are sent: start, progress, anomaly, end, fail (the end when a --fail-if was crossed), comma-separated; end by default
--slack[=<CHANNEL>]
Keep a Slack message up to date as the run goes: posted at the start, edited with the numbers, anomalies in its thread, the verdict at the end. --slack alone posts in the channel `pepe slack connect` kept; --slack=#channel elsewhere
--export <FILE>
Write the report to FILE as well, in the format its extension says: .html a self-contained page (curves, thresholds, the last run), .json the report, .md a summary for a PR, .txt what pepe prints, .csv the run's numbers a row a second; repeat for more
--snapshot <FILE>
Write the JSON report so far to this file every minute while the run goes, and once more when it ends, so a long run's numbers survive a crash or a lost terminal; it has a minute-by-minute timeline of the whole run
--events <FILE>
Write the run as it goes to FILE (- for stdout), a JSON line at a time: start, progress a second, anomalies, steering, and the report last
--allow-host <HOST>
Refuse to send anywhere but these hosts: api.example.com exactly, or .example.com for it and its subdomains; repeat for more. Every target is checked before anything is sent
--max-requests <N>
Refuse a run that would send more requests than this: -n above it, or -z without a --rate that bounds it
--max-rate <PER_SECOND>
Refuse a --rate above this, and a run with no --rate at all, which sends as fast as the target answers
--max-concurrency <N>
Refuse a concurrency above this
--dry-run
Say what would be sent, to where and how much, and send nothing; as JSON with --json
--fail-if <CONDITION>
End with exit code 4 when the run crosses this, for CI and scripts: 'p99 > 300ms', 'errors > 1%'; repeat for more. The report is still printed. pepe logs takes '5xx > 2%', '4xx > 20%' and 'rate < 5/s' too. (pepe ping has --slo for the same.)
--metrics <ADDR>
Serve the live numbers for Prometheus at http://ADDR/metrics while the run goes, e.g. :9100 or 127.0.0.1:9100, so a soak run or a long ping shows up in Grafana next to the server's own
-i, --setup
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
--config <FILE>
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
--write-config <FILE>
Write the settings as they stand to this file, as a pepe.toml, and exit
--load <NAME>
Run a test saved on the setup screen (ctrl-s): ./.pepe/tests/NAME.toml; flags on the command line win over it
--keep [<NAME>]
Keep the settings as they stand as a saved test, ./.pepe/tests/NAME.toml, then run. With --load and no NAME, the loaded test is updated in place; with another NAME, it's copied
--record
Keep the run's report under its saved test when it ends, as ./.pepe/runs/NAME/<moment>.json; the run has to be a saved test (--load NAME, or --keep NAME)