pepe-http 0.0.0-stage → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +2 -0
- package/CHANGELOG.md +3703 -0
- package/LICENSE +21 -0
- package/README.md +114 -2
- package/binary-install.js +348 -0
- package/binary.js +124 -0
- package/completions/_pepe +870 -0
- package/completions/_pepe.ps1 +687 -0
- package/completions/pepe.bash +2062 -0
- package/completions/pepe.fish +466 -0
- package/install.js +4 -0
- package/man/pepe-api.1 +40 -0
- package/man/pepe-compare.1 +25 -0
- package/man/pepe-completions.1 +36 -0
- package/man/pepe-flow.1 +16 -0
- package/man/pepe-logs.1 +34 -0
- package/man/pepe-mcp.1 +13 -0
- package/man/pepe-ping.1 +104 -0
- package/man/pepe-ramp.1 +31 -0
- package/man/pepe-replay.1 +25 -0
- package/man/pepe-schema.1 +16 -0
- package/man/pepe-self-update.1 +19 -0
- package/man/pepe.1 +322 -0
- package/npm-shrinkwrap.json +52 -0
- package/package.json +124 -3
- package/run-pepe.js +4 -0
- package/schema/compare.schema.json +77 -0
- package/schema/ping.schema.json +188 -0
- package/schema/ramp.schema.json +74 -0
- package/schema/run.schema.json +248 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-compare 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-compare \- Hold a run\*(Aqs JSON report against an earlier one and say what moved
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe compare\fR [\fB\-\-gate\fR] [\fB\-\-svg\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fIBEFORE\fR> <\fIAFTER\fR>
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Hold a run\*(Aqs JSON report against an earlier one and say what moved
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-gate\fR
|
|
13
|
+
Exit 1 when the verdict is Slower or Worse, for CI
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-svg\fR \fI<FILE>\fR
|
|
16
|
+
Also write the verdict as a card, an SVG for a README or a page
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
19
|
+
Print help
|
|
20
|
+
.TP
|
|
21
|
+
<\fIBEFORE\fR>
|
|
22
|
+
The earlier report (`pepe \-\-json`, `\-\-snapshot`, or a ramp\*(Aqs)
|
|
23
|
+
.TP
|
|
24
|
+
<\fIAFTER\fR>
|
|
25
|
+
The later one, of the same test
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-completions 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-completions \- Tab completion for your shell: print the script, or \-\-install it
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe completions\fR [\fB\-\-install\fR] [\fB\-\-dry\-run\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fISHELL\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Tab completion for your shell: print the script, or \-\-install it
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-install\fR
|
|
13
|
+
Put the script and the man pages in place and add the line the shell\*(Aqs startup file needs, so tab completion works in the next shell
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-dry\-run\fR
|
|
16
|
+
With \-\-install: say what would be done, and do nothing
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
19
|
+
Print help
|
|
20
|
+
.TP
|
|
21
|
+
[\fISHELL\fR]
|
|
22
|
+
bash, zsh, fish or powershell; the current shell when left out
|
|
23
|
+
.br
|
|
24
|
+
|
|
25
|
+
.br
|
|
26
|
+
\fIPossible values:\fR
|
|
27
|
+
.RS 14
|
|
28
|
+
.IP \(bu 2
|
|
29
|
+
bash
|
|
30
|
+
.IP \(bu 2
|
|
31
|
+
zsh
|
|
32
|
+
.IP \(bu 2
|
|
33
|
+
fish
|
|
34
|
+
.IP \(bu 2
|
|
35
|
+
powershell
|
|
36
|
+
.RE
|
package/man/pepe-flow.1
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-flow 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-flow \- Run a sequence of requests from a flow file, each step fed by the last
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe flow\fR [\fB\-h\fR|\fB\-\-help\fR] <\fIFILE\fR>
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Run a sequence of requests from a flow file, each step fed by the last
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
13
|
+
Print help
|
|
14
|
+
.TP
|
|
15
|
+
<\fIFILE\fR>
|
|
16
|
+
The flow: a TOML file of [[step]]s (see the README)
|
package/man/pepe-logs.1
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-logs 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-logs \- Read nginx logs: requests per second now, against each minute, hour and day
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe logs\fR [\fB\-\-format\fR] [\fB\-\-window\fR] [\fB\-\-since\fR] [\fB\-\-all\fR] [\fB\-\-exact\-paths\fR] [\fB\-\-rows\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIFILES\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Read nginx logs: requests per second now, against each minute, hour and day
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-format\fR \fI<LOG_FORMAT>\fR
|
|
13
|
+
The access log\*(Aqs log_format as nginx.conf has it, on one line, when it isn\*(Aqt `combined`: \*(Aq$remote_addr [$time_local] "$request" $status $request_time\*(Aq
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-window\fR \fI<TIME>\fR [default: 60s]
|
|
16
|
+
What "now" is measured over, e.g. 10s, 1m, 5m
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-since\fR \fI<TIME>\fR
|
|
19
|
+
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
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-all\fR
|
|
22
|
+
Read all of the log before following it, however far back it goes
|
|
23
|
+
.TP
|
|
24
|
+
\fB\-\-exact\-paths\fR
|
|
25
|
+
Count /items/1 and /items/2 apart. Without it the numbers and ids in a path count as one, /items/*
|
|
26
|
+
.TP
|
|
27
|
+
\fB\-\-rows\fR \fI<N>\fR [default: 10]
|
|
28
|
+
Rows in each table of the report
|
|
29
|
+
.TP
|
|
30
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
31
|
+
Print help
|
|
32
|
+
.TP
|
|
33
|
+
[\fIFILES\fR]
|
|
34
|
+
Access and error logs, rotated ones too; `\-` or nothing reads what is piped in, and with nothing at all nginx\*(Aqs own in /var/log/nginx
|
package/man/pepe-mcp.1
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-mcp 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-mcp \- Serve pepe\*(Aqs modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe mcp\fR [\fB\-h\fR|\fB\-\-help\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Serve pepe\*(Aqs modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
13
|
+
Print help
|
package/man/pepe-ping.1
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-ping 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-ping \- Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe ping\fR [\fB\-\-every\fR] [\fB\-\-window\fR] [\fB\-\-name\fR] [\fB\-\-color\fR] [\fB\-4 \fR] [\fB\-6 \fR] [\fB\-\-all\-ips\fR] [\fB\-\-interface\fR] [\fB\-\-tcp\fR] [\fB\-\-port\fR] [\fB\-\-tcp\-rst\fR] [\fB\-\-cmd\fR] [\fB\-\-keep\-alive\fR] [\fB\-\-slo\fR] [\fB\-\-bell\fR] [\fB\-\-ymin\fR] [\fB\-\-ymax\fR] [\fB\-0 \fR] [\fB\-s\fR|\fB\-\-simple\-graphics\fR] [\fB\-\-jsonl\fR] [\fB\-\-csv\fR] [\fB\-\-save\fR] [\fB\-\-show\-body\fR] [\fB\-\-save\-body\fR] [\fB\-\-http1\fR] [\fB\-\-once\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fITARGETS\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-every\fR \fI<TIME>\fR [default: 1s]
|
|
13
|
+
Time between pings, e.g. 1s, 500ms, 2m
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-window\fR \fI<TIME>\fR [default: 60s]
|
|
16
|
+
How much of the run the graph shows, e.g. 60s, 5m; + and \- change it on screen, w shows the whole run
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-name\fR \fI<NAME>\fR
|
|
19
|
+
What to call each target, in order: \-\-name api \-\-name cdn, or \-\-name api,cdn
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-color\fR \fI<COLOR>\fR
|
|
22
|
+
A colour for each target\*(Aqs line, in order: red, green, yellow, blue, magenta, cyan, white, gray, their light\- forms, or #RRGGBB
|
|
23
|
+
.TP
|
|
24
|
+
\fB\-4\fR
|
|
25
|
+
Resolve names to IPv4 addresses only
|
|
26
|
+
.TP
|
|
27
|
+
\fB\-6\fR
|
|
28
|
+
Resolve names to IPv6 addresses only
|
|
29
|
+
.TP
|
|
30
|
+
\fB\-\-all\-ips\fR
|
|
31
|
+
Ping every address a name resolves to, each as a target of its own
|
|
32
|
+
.TP
|
|
33
|
+
\fB\-\-interface\fR \fI<NAME|IP>\fR
|
|
34
|
+
Send from this interface (en0, eth0) or local address
|
|
35
|
+
.TP
|
|
36
|
+
\fB\-\-tcp\fR
|
|
37
|
+
Only connect: a TCP ping of the port, with no request sent
|
|
38
|
+
.TP
|
|
39
|
+
\fB\-\-port\fR \fI<PORT>\fR [default: 80]
|
|
40
|
+
With \-\-tcp: the port of a target that names none
|
|
41
|
+
.TP
|
|
42
|
+
\fB\-\-tcp\-rst\fR \fI<TCP_RST>\fR [default: pong]
|
|
43
|
+
With \-\-tcp: a connection refused counts as an answer (the host is there) rather than a failure
|
|
44
|
+
.br
|
|
45
|
+
|
|
46
|
+
.br
|
|
47
|
+
\fIPossible values:\fR
|
|
48
|
+
.RS 14
|
|
49
|
+
.IP \(bu 2
|
|
50
|
+
pong: An answer: something is there to refuse
|
|
51
|
+
.IP \(bu 2
|
|
52
|
+
fail: A failure
|
|
53
|
+
.RE
|
|
54
|
+
.TP
|
|
55
|
+
\fB\-\-cmd\fR
|
|
56
|
+
The targets are commands: run each one every interval and graph how long it takes; its exit code is the status
|
|
57
|
+
.TP
|
|
58
|
+
\fB\-\-keep\-alive\fR
|
|
59
|
+
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
|
|
60
|
+
.TP
|
|
61
|
+
\fB\-\-slo\fR \fI<KEY=MS,...>\fR
|
|
62
|
+
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
|
|
63
|
+
.TP
|
|
64
|
+
\fB\-\-bell\fR
|
|
65
|
+
Ring the terminal bell when a ping fails or breaks the SLO
|
|
66
|
+
.TP
|
|
67
|
+
\fB\-\-ymin\fR \fI<MS>\fR
|
|
68
|
+
The graph\*(Aqs floor, in milliseconds
|
|
69
|
+
.TP
|
|
70
|
+
\fB\-\-ymax\fR \fI<MS>\fR
|
|
71
|
+
The graph\*(Aqs ceiling, in milliseconds; without it the graph fits what it shows
|
|
72
|
+
.TP
|
|
73
|
+
\fB\-0\fR
|
|
74
|
+
Start the graph at zero (the same as \-\-ymin 0)
|
|
75
|
+
.TP
|
|
76
|
+
\fB\-s\fR, \fB\-\-simple\-graphics\fR
|
|
77
|
+
Draw the graph with dots rather than braille, for terminals and fonts that lack it
|
|
78
|
+
.TP
|
|
79
|
+
\fB\-\-jsonl\fR
|
|
80
|
+
No screen: one JSON object per ping on stdout, as it happens
|
|
81
|
+
.TP
|
|
82
|
+
\fB\-\-csv\fR
|
|
83
|
+
No screen: one CSV line per ping on stdout, under a header
|
|
84
|
+
.TP
|
|
85
|
+
\fB\-\-save\fR \fI<FILE>\fR
|
|
86
|
+
Write the JSON report to this file when the run ends, whatever else is shown
|
|
87
|
+
.TP
|
|
88
|
+
\fB\-\-show\-body\fR
|
|
89
|
+
Keep the first kilobyte of each body for the inspector
|
|
90
|
+
.TP
|
|
91
|
+
\fB\-\-save\-body\fR \fI<FILE>\fR
|
|
92
|
+
Write the last body received to this file when the run ends
|
|
93
|
+
.TP
|
|
94
|
+
\fB\-\-http1\fR
|
|
95
|
+
Speak HTTP/1.1 even when the server offers HTTP/2; without it a ping takes h2 when the server offers it through ALPN
|
|
96
|
+
.TP
|
|
97
|
+
\fB\-\-once\fR
|
|
98
|
+
One diagnosis and out: three quick pings, then the last one\*(Aqs phases, what answered, and what to look at; no screen
|
|
99
|
+
.TP
|
|
100
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
101
|
+
Print help (see a summary with \*(Aq\-h\*(Aq)
|
|
102
|
+
.TP
|
|
103
|
+
[\fITARGETS\fR]
|
|
104
|
+
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
|
package/man/pepe-ramp.1
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-ramp 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-ramp \- Raise the load step by step to find where the target stops keeping up
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe ramp\fR [\fB\-\-from\fR] [\fB\-\-to\fR] [\fB\-\-step\fR] [\fB\-\-every\fR] [\fB\-\-until\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIURL\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Raise the load step by step to find where the target stops keeping up
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-from\fR \fI<FROM>\fR [default: 10]
|
|
13
|
+
Concurrency of the first step
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-to\fR \fI<TO>\fR [default: 100]
|
|
16
|
+
Concurrency of the last step
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-step\fR \fI<STEP>\fR [default: 10]
|
|
19
|
+
Concurrency added at each step
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-every\fR \fI<EVERY>\fR [default: 10s]
|
|
22
|
+
How long each step is held, e.g. 10s, 1m
|
|
23
|
+
.TP
|
|
24
|
+
\fB\-\-until\fR \fI<CONDITION>\fR
|
|
25
|
+
End the ramp once a step crosses this: \*(Aqp99 > 500ms\*(Aq, \*(Aqerrors > 1%\*(Aq
|
|
26
|
+
.TP
|
|
27
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
28
|
+
Print help
|
|
29
|
+
.TP
|
|
30
|
+
[\fIURL\fR]
|
|
31
|
+
HTTP url to request; without one, the setup screen opens
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-replay 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-replay \- Send the URLs of an access log in their real proportions
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe replay\fR [\fB\-\-base\-url\fR] [\fB\-\-include\-writes\fR] [\fB\-\-rows\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fILOG\fR>
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Send the URLs of an access log in their real proportions
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-base\-url\fR \fI<URL>\fR
|
|
13
|
+
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
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-include\-writes\fR
|
|
16
|
+
Replay POST, PUT, PATCH and DELETE too; only GET, HEAD and OPTIONS without it
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-rows\fR \fI<N>\fR [default: 20]
|
|
19
|
+
URLs that get a row of their own on the dashboard, most frequent first; the rest share one
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
22
|
+
Print help
|
|
23
|
+
.TP
|
|
24
|
+
<\fILOG\fR>
|
|
25
|
+
The log: nginx or Apache (common or combined), Caddy JSON, AWS ALB, or one URL or path per line
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-schema 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-schema \- Print the JSON Schema of a report: run (the default), ramp, ping or compare
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe schema\fR [\fB\-h\fR|\fB\-\-help\fR] [\fIREPORT\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Print the JSON Schema of a report: run (the default), ramp, ping or compare
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
13
|
+
Print help
|
|
14
|
+
.TP
|
|
15
|
+
[\fIREPORT\fR] [default: run]
|
|
16
|
+
Which report: run, ramp, ping or compare
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe-self-update 1 pepe "User Commands"
|
|
4
|
+
.SH NAME
|
|
5
|
+
pepe\-self\-update \- Update pepe to the latest release, or say what\*(Aqs new in it
|
|
6
|
+
.SH SYNOPSIS
|
|
7
|
+
\fBpepe self\-update\fR [\fB\-\-check\fR] [\fB\-\-verbose\fR] [\fB\-h\fR|\fB\-\-help\fR]
|
|
8
|
+
.SH DESCRIPTION
|
|
9
|
+
Update pepe to the latest release, or say what\*(Aqs new in it
|
|
10
|
+
.SH OPTIONS
|
|
11
|
+
.TP
|
|
12
|
+
\fB\-\-check\fR
|
|
13
|
+
Only say whether a newer release exists (exit code 1 if so) and what\*(Aqs in it; don\*(Aqt install it
|
|
14
|
+
.TP
|
|
15
|
+
\fB\-\-verbose\fR
|
|
16
|
+
Show the installer\*(Aqs own output
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
19
|
+
Print help
|
package/man/pepe.1
ADDED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
.ie \n(.g .ds Aq \(aq
|
|
2
|
+
.el .ds Aq '
|
|
3
|
+
.TH pepe 1 pepe "User Commands"
|
|
4
|
+
.ie \n(.g .ds Aq \(aq
|
|
5
|
+
.el .ds Aq '
|
|
6
|
+
.SH NAME
|
|
7
|
+
pepe \- HTTP load generator
|
|
8
|
+
.ie \n(.g .ds Aq \(aq
|
|
9
|
+
.el .ds Aq '
|
|
10
|
+
.SH SYNOPSIS
|
|
11
|
+
\fBpepe\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-n\fR|\fB\-\-number\fR] [\fB\-c\fR|\fB\-\-concurrency\fR] [\fB\-z\fR|\fB\-\-duration\fR] [\fB\-\-curl\fR] [\fB\-m\fR|\fB\-\-method\fR] [\fB\-H\fR|\fB\-\-headers\fR] [\fB\-t\fR|\fB\-\-timeout\fR] [\fB\-\-warmup\fR] [\fB\-\-threads\fR] [\fB\-\-rate\fR] [\fB\-d\fR|\fB\-\-body\fR] [\fB\-u\fR|\fB\-\-user\-agent\fR] [\fB\-p\fR|\fB\-\-proxy\fR] [\fB\-k\fR|\fB\-\-insecure\fR] [\fB\-\-disable\-compression\fR] [\fB\-\-disable\-keepalive\fR] [\fB\-\-disable\-redirects\fR] [\fB\-\-json\fR] [\fB\-\-trace\-header\fR] [\fB\-\-snapshot\fR] [\fB\-\-allow\-host\fR] [\fB\-\-max\-requests\fR] [\fB\-\-max\-rate\fR] [\fB\-\-max\-concurrency\fR] [\fB\-\-dry\-run\fR] [\fB\-\-fail\-if\fR] [\fB\-\-metrics\fR] [\fB\-i\fR|\fB\-\-setup\fR] [\fB\-\-config\fR] [\fB\-\-write\-config\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fIURL\fR] [\fIARGS\fR] [\fIsubcommands\fR]
|
|
12
|
+
.ie \n(.g .ds Aq \(aq
|
|
13
|
+
.el .ds Aq '
|
|
14
|
+
.SH DESCRIPTION
|
|
15
|
+
HTTP load generator
|
|
16
|
+
.ie \n(.g .ds Aq \(aq
|
|
17
|
+
.el .ds Aq '
|
|
18
|
+
.SH OPTIONS
|
|
19
|
+
.TP
|
|
20
|
+
\fB\-h\fR, \fB\-\-help\fR
|
|
21
|
+
Print help
|
|
22
|
+
.TP
|
|
23
|
+
\fB\-n\fR, \fB\-\-number\fR \fI<NUMBER>\fR [default: 100]
|
|
24
|
+
Number of requests to perform
|
|
25
|
+
.TP
|
|
26
|
+
\fB\-c\fR, \fB\-\-concurrency\fR \fI<CONCURRENCY>\fR [default: one per core]
|
|
27
|
+
Number of concurrent requests at a time
|
|
28
|
+
.TP
|
|
29
|
+
\fB\-z\fR, \fB\-\-duration\fR \fI<DURATION>\fR
|
|
30
|
+
Duration of the test, e.g. 10s, 3m, 2h (mutually exclusive with \-n)
|
|
31
|
+
.TP
|
|
32
|
+
\fB\-\-curl\fR
|
|
33
|
+
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
|
|
34
|
+
.TP
|
|
35
|
+
\fB\-m\fR, \fB\-\-method\fR \fI<METHOD>\fR [default: GET]
|
|
36
|
+
HTTP method, e.g. GET, POST, PUT, DELETE
|
|
37
|
+
.TP
|
|
38
|
+
\fB\-H\fR, \fB\-\-headers\fR \fI<HEADERS>\fR
|
|
39
|
+
HTTP headers, e.g. \-H \*(AqAccept: application/json\*(Aq
|
|
40
|
+
.TP
|
|
41
|
+
\fB\-t\fR, \fB\-\-timeout\fR \fI<TIMEOUT>\fR [default: 20]
|
|
42
|
+
Time in seconds to wait for a response
|
|
43
|
+
.TP
|
|
44
|
+
\fB\-\-warmup\fR \fI<TIME>\fR
|
|
45
|
+
Send for this long before measuring, e.g. 5s: connections open, caches fill and JITs settle without counting against the run
|
|
46
|
+
.TP
|
|
47
|
+
\fB\-\-threads\fR \fI<N|auto>\fR
|
|
48
|
+
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
|
|
49
|
+
.TP
|
|
50
|
+
\fB\-\-rate\fR \fI<PER_SECOND>\fR
|
|
51
|
+
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
|
|
52
|
+
.TP
|
|
53
|
+
\fB\-d\fR, \fB\-\-body\fR \fI<BODY>\fR
|
|
54
|
+
HTTP request body
|
|
55
|
+
.TP
|
|
56
|
+
\fB\-u\fR, \fB\-\-user\-agent\fR \fI<USER_AGENT>\fR
|
|
57
|
+
User\-Agent string, default is pepe/{version}
|
|
58
|
+
.TP
|
|
59
|
+
\fB\-p\fR, \fB\-\-proxy\fR \fI<PROXY>\fR
|
|
60
|
+
Proxy server URL: http://user:pass@host:port or socks5://host:port
|
|
61
|
+
.TP
|
|
62
|
+
\fB\-k\fR, \fB\-\-insecure\fR
|
|
63
|
+
Accept invalid TLS certificates (self\-signed, expired, wrong host)
|
|
64
|
+
.TP
|
|
65
|
+
\fB\-\-disable\-compression\fR
|
|
66
|
+
Disable HTTP compression, e.g. gzip
|
|
67
|
+
.TP
|
|
68
|
+
\fB\-\-disable\-keepalive\fR
|
|
69
|
+
Disable HTTP keepalive, e.g. Connection: close
|
|
70
|
+
.TP
|
|
71
|
+
\fB\-\-disable\-redirects\fR
|
|
72
|
+
Prevent http redirects
|
|
73
|
+
.TP
|
|
74
|
+
\fB\-\-json\fR
|
|
75
|
+
Output results in JSON format
|
|
76
|
+
.TP
|
|
77
|
+
\fB\-\-trace\-header\fR \fI<NAME>\fR
|
|
78
|
+
Response header holding the request id to show for the slowest requests and in the inspector, so they can be found in the server\*(Aqs logs; without it, X\-Request\-Id, traceparent, CF\-Ray, X\-Amzn\-Trace\-Id and other common ones are looked for
|
|
79
|
+
.TP
|
|
80
|
+
\fB\-\-snapshot\fR \fI<FILE>\fR
|
|
81
|
+
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\*(Aqs numbers survive a crash or a lost terminal; it has a minute\-by\-minute timeline of the whole run
|
|
82
|
+
.TP
|
|
83
|
+
\fB\-\-allow\-host\fR \fI<HOST>\fR
|
|
84
|
+
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
|
|
85
|
+
.TP
|
|
86
|
+
\fB\-\-max\-requests\fR \fI<N>\fR
|
|
87
|
+
Refuse a run that would send more requests than this: \-n above it, or \-z without a \-\-rate that bounds it
|
|
88
|
+
.TP
|
|
89
|
+
\fB\-\-max\-rate\fR \fI<PER_SECOND>\fR
|
|
90
|
+
Refuse a \-\-rate above this, and a run with no \-\-rate at all, which sends as fast as the target answers
|
|
91
|
+
.TP
|
|
92
|
+
\fB\-\-max\-concurrency\fR \fI<N>\fR
|
|
93
|
+
Refuse a concurrency above this
|
|
94
|
+
.TP
|
|
95
|
+
\fB\-\-dry\-run\fR
|
|
96
|
+
Say what would be sent, to where and how much, and send nothing; as JSON with \-\-json
|
|
97
|
+
.TP
|
|
98
|
+
\fB\-\-fail\-if\fR \fI<CONDITION>\fR
|
|
99
|
+
End with exit code 4 when the run crosses this, for CI and scripts: \*(Aqp99 > 300ms\*(Aq, \*(Aqerrors > 1%\*(Aq; repeat for more. The report is still printed. (pepe ping has \-\-slo for the same.)
|
|
100
|
+
.TP
|
|
101
|
+
\fB\-\-metrics\fR \fI<ADDR>\fR
|
|
102
|
+
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\*(Aqs own
|
|
103
|
+
.TP
|
|
104
|
+
\fB\-i\fR, \fB\-\-setup\fR
|
|
105
|
+
Open the setup screen to review or change the settings before starting (it opens by itself when no URL is given)
|
|
106
|
+
.TP
|
|
107
|
+
\fB\-\-config\fR \fI<FILE>\fR
|
|
108
|
+
Read settings from this file instead of ./pepe.toml; flags on the command line win over it
|
|
109
|
+
.TP
|
|
110
|
+
\fB\-\-write\-config\fR \fI<FILE>\fR
|
|
111
|
+
Write the settings as they stand to this file, as a pepe.toml, and exit
|
|
112
|
+
.TP
|
|
113
|
+
\fB\-V\fR, \fB\-\-version\fR
|
|
114
|
+
Print version
|
|
115
|
+
.TP
|
|
116
|
+
[\fIURL\fR] [default: ]
|
|
117
|
+
HTTP url to request
|
|
118
|
+
.TP
|
|
119
|
+
[\fIARGS\fR] [default: ]
|
|
120
|
+
List of arguments to pass to curl command
|
|
121
|
+
.ie \n(.g .ds Aq \(aq
|
|
122
|
+
.el .ds Aq '
|
|
123
|
+
.SH SUBCOMMANDS
|
|
124
|
+
.TP
|
|
125
|
+
pepe\-ping(1)
|
|
126
|
+
Ping a URL: a request a second, each split into DNS, connect, TLS, first byte and download, on a graph
|
|
127
|
+
.TP
|
|
128
|
+
pepe\-ramp(1)
|
|
129
|
+
Raise the load step by step to find where the target stops keeping up
|
|
130
|
+
.TP
|
|
131
|
+
pepe\-compare(1)
|
|
132
|
+
Hold a run\*(Aqs JSON report against an earlier one and say what moved
|
|
133
|
+
.TP
|
|
134
|
+
pepe\-api(1)
|
|
135
|
+
Load\-test every endpoint of an OpenAPI spec
|
|
136
|
+
.TP
|
|
137
|
+
pepe\-flow(1)
|
|
138
|
+
Run a sequence of requests from a flow file, each step fed by the last
|
|
139
|
+
.TP
|
|
140
|
+
pepe\-replay(1)
|
|
141
|
+
Send the URLs of an access log in their real proportions
|
|
142
|
+
.TP
|
|
143
|
+
pepe\-logs(1)
|
|
144
|
+
Read nginx logs: requests per second now, against each minute, hour and day
|
|
145
|
+
.TP
|
|
146
|
+
pepe\-schema(1)
|
|
147
|
+
Print the JSON Schema of a report: run (the default), ramp, ping or compare
|
|
148
|
+
.TP
|
|
149
|
+
pepe\-mcp(1)
|
|
150
|
+
Serve pepe\*(Aqs modes as tools for an agent over stdio (the Model Context Protocol); the guardrail flags given here hold for every call
|
|
151
|
+
.TP
|
|
152
|
+
pepe\-self\-update(1)
|
|
153
|
+
Update pepe to the latest release, or say what\*(Aqs new in it
|
|
154
|
+
.TP
|
|
155
|
+
pepe\-completions(1)
|
|
156
|
+
Tab completion for your shell: print the script, or \-\-install it
|
|
157
|
+
.TP
|
|
158
|
+
pepe\-help(1)
|
|
159
|
+
Print this message or the help of the given subcommand(s)
|
|
160
|
+
.ie \n(.g .ds Aq \(aq
|
|
161
|
+
.el .ds Aq '
|
|
162
|
+
.SH "DASHBOARD KEYS"
|
|
163
|
+
.TP
|
|
164
|
+
\fBspace, p\fR
|
|
165
|
+
Pause or resume sending; a timed run\*(Aqs clock stops while paused
|
|
166
|
+
.TP
|
|
167
|
+
\fB+, \-\fR
|
|
168
|
+
Raise or lower concurrency by about 10%, live
|
|
169
|
+
.TP
|
|
170
|
+
\fBs, i\fR
|
|
171
|
+
Stop sending and keep the results on screen
|
|
172
|
+
.TP
|
|
173
|
+
\fBr\fR
|
|
174
|
+
Restart with the same settings (and the current concurrency)
|
|
175
|
+
.TP
|
|
176
|
+
\fBe\fR
|
|
177
|
+
Back to the setup screen (or, in API mode, the plan)
|
|
178
|
+
.TP
|
|
179
|
+
\fBtab, left, right, 1\-3\fR
|
|
180
|
+
Switch view
|
|
181
|
+
.TP
|
|
182
|
+
\fBup, down, j, k, PgUp, PgDn, home, end\fR
|
|
183
|
+
Select a request in the log
|
|
184
|
+
.TP
|
|
185
|
+
\fBf\fR
|
|
186
|
+
Filter requests by status: 2xx, 3xx, 4xx, 5xx, no response, failed
|
|
187
|
+
.TP
|
|
188
|
+
\fBl\fR
|
|
189
|
+
Filter requests by latency: at or above p50, p90 or p99
|
|
190
|
+
.TP
|
|
191
|
+
\fB/\fR
|
|
192
|
+
Search the status and response text
|
|
193
|
+
.TP
|
|
194
|
+
\fBx\fR
|
|
195
|
+
Show only failed requests
|
|
196
|
+
.TP
|
|
197
|
+
\fBc\fR
|
|
198
|
+
Clear all filters
|
|
199
|
+
.TP
|
|
200
|
+
\fBenter\fR
|
|
201
|
+
Inspect the selected request; esc goes back
|
|
202
|
+
.TP
|
|
203
|
+
\fB?\fR
|
|
204
|
+
Show all keys
|
|
205
|
+
.TP
|
|
206
|
+
\fBq, esc, Ctrl\-C\fR
|
|
207
|
+
Quit
|
|
208
|
+
.SH "SETUP SCREEN KEYS"
|
|
209
|
+
.TP
|
|
210
|
+
\fBtab\fR
|
|
211
|
+
Switch mode: Single URL, Ramp or API
|
|
212
|
+
.TP
|
|
213
|
+
\fBup, down\fR
|
|
214
|
+
Move between fields; left, right change a choice
|
|
215
|
+
.TP
|
|
216
|
+
\fBenter\fR
|
|
217
|
+
Start the run (or load the spec, in API mode)
|
|
218
|
+
.TP
|
|
219
|
+
\fBctrl\-t\fR
|
|
220
|
+
Send the request once and show the response
|
|
221
|
+
.TP
|
|
222
|
+
\fBctrl\-s\fR
|
|
223
|
+
Save the form as pepe.toml
|
|
224
|
+
.TP
|
|
225
|
+
\fBF1\fR
|
|
226
|
+
Show all keys (? too, outside a text field)
|
|
227
|
+
.TP
|
|
228
|
+
\fBesc\fR
|
|
229
|
+
Quit
|
|
230
|
+
.SH "RAMP KEYS"
|
|
231
|
+
.TP
|
|
232
|
+
\fBup, down\fR
|
|
233
|
+
Pick a step and see everything measured about it; esc follows the run again
|
|
234
|
+
.TP
|
|
235
|
+
\fBspace\fR
|
|
236
|
+
Pause or resume; a step\*(Aqs clock stops while paused
|
|
237
|
+
.TP
|
|
238
|
+
\fBn\fR
|
|
239
|
+
End this step now and go on to the next
|
|
240
|
+
.TP
|
|
241
|
+
\fBs\fR
|
|
242
|
+
Stop the ramp here and keep the results
|
|
243
|
+
.TP
|
|
244
|
+
\fBr, e\fR
|
|
245
|
+
Run again; back to the setup screen
|
|
246
|
+
.TP
|
|
247
|
+
\fB?\fR
|
|
248
|
+
Show all keys
|
|
249
|
+
.SH "PING KEYS"
|
|
250
|
+
.TP
|
|
251
|
+
\fBtab, 1\-3\fR
|
|
252
|
+
Graph, Phases or Pings
|
|
253
|
+
.TP
|
|
254
|
+
\fBup, down\fR
|
|
255
|
+
Pick a target, or a ping in the list
|
|
256
|
+
.TP
|
|
257
|
+
\fBspace\fR
|
|
258
|
+
Pause or resume the pings
|
|
259
|
+
.TP
|
|
260
|
+
\fB+, \-, w\fR
|
|
261
|
+
Half or twice the time on the graph; the whole run
|
|
262
|
+
.TP
|
|
263
|
+
\fB0, l, s, f\fR
|
|
264
|
+
Start at zero; a log scale; dots instead of braille; hide the failures
|
|
265
|
+
.TP
|
|
266
|
+
\fBt\fR
|
|
267
|
+
The table over the whole run, or over what the graph shows
|
|
268
|
+
.TP
|
|
269
|
+
\fBa, x\fR
|
|
270
|
+
Pings: one target or all; failures only
|
|
271
|
+
.TP
|
|
272
|
+
\fBenter\fR
|
|
273
|
+
Pings: everything about the picked one
|
|
274
|
+
.TP
|
|
275
|
+
\fB?\fR
|
|
276
|
+
Show all keys
|
|
277
|
+
.SH EXAMPLES
|
|
278
|
+
.TP
|
|
279
|
+
\fBpepe ping https://example.com api.example.com \-\-slo total=500\fR
|
|
280
|
+
A request a second to each, split into DNS, connect, TLS, first byte and download, on a graph
|
|
281
|
+
.TP
|
|
282
|
+
\fBpepe compare before.json after.json\fR
|
|
283
|
+
What moved between two runs, and whether it is more than runs wobble
|
|
284
|
+
.TP
|
|
285
|
+
\fBpepe logs /var/log/nginx/access.log /var/log/nginx/error.log\fR
|
|
286
|
+
Requests per second now, against each minute, hour and day of the log
|
|
287
|
+
.TP
|
|
288
|
+
\fBpepe replay access.log \-\-base\-url https://staging.example.com \-c 50 \-z 2m\fR
|
|
289
|
+
The log\*(Aqs URLs, in their real proportions
|
|
290
|
+
.TP
|
|
291
|
+
\fBpepe flow checkout.toml \-c 20 \-z 1m\fR
|
|
292
|
+
A sequence of requests, each step fed by the one before
|
|
293
|
+
.TP
|
|
294
|
+
\fBpepe https://example.com\fR
|
|
295
|
+
100 requests, one per core at a time, with the dashboard
|
|
296
|
+
.TP
|
|
297
|
+
\fBpepe \-z 30s \-c 50 https://example.com\fR
|
|
298
|
+
Thirty seconds at concurrency 50
|
|
299
|
+
.TP
|
|
300
|
+
\fBpepe \-\-curl \-\- curl \-X POST https://httpbin.org/post \-d \*(Aq{"a":1}\*(Aq\fR
|
|
301
|
+
The request a curl command would send
|
|
302
|
+
.TP
|
|
303
|
+
\fBpepe ramp https://example.com \-\-to 200 \-\-until \*(Aqp99 > 500ms\*(Aq\fR
|
|
304
|
+
Raise the load until p99 passes 500 ms
|
|
305
|
+
.TP
|
|
306
|
+
\fBpepe \-\-json \-n 1000 https://example.com > results.json\fR
|
|
307
|
+
No dashboard; a JSON report
|
|
308
|
+
.SH ENVIRONMENT
|
|
309
|
+
.TP
|
|
310
|
+
\fBPEPE_NO_UPDATE_CHECK\fR
|
|
311
|
+
Set to anything to skip the look for a newer release
|
|
312
|
+
.TP
|
|
313
|
+
\fBPEPE_GITHUB_TOKEN\fR
|
|
314
|
+
A GitHub token for pepe self\-update, for forks or rate\-limited CI
|
|
315
|
+
.TP
|
|
316
|
+
\fBNO_COLOR\fR
|
|
317
|
+
Set to anything to draw without colour: reverse video and shades instead
|
|
318
|
+
.TP
|
|
319
|
+
\fBPEPE_THEME\fR
|
|
320
|
+
light or dark, for the terminal\*(Aqs background; otherwise COLORFGBG decides
|
|
321
|
+
.SH "SEE ALSO"
|
|
322
|
+
pepe\-ping(1), pepe\-ramp(1), pepe\-api(1), pepe\-self\-update(1), and \fBhttps://github.com/omarmhaimdat/pepe\fR
|