v2.31.1 f37fe67

traffic.md RawHistoryFolder

gordon traffic

Inspect Gordon traffic plane status.

Subcommands

Command Description
gordon traffic status Show traffic entrypoints, counters, and reload status

Usage

gordon traffic status --remote prod
gordon traffic status --remote https://gordon.example.com --json

Remote mode queries the running Gordon admin API. Local mode does not synthesize runtime traffic state from a fresh config load; use a configured remote target for authoritative counters and reload status.

Flags

Flag Description
--json Output machine-readable JSON
--remote, -r Remote Gordon instance or saved remote name

JSON Output

{
  "last_reload_status": "ok",
  "entrypoints": [
    {
      "name": "postgres",
      "address": "0.0.0.0:5432",
      "protocol": "tcp",
      "active": true,
      "active_tcp_connections": 1,
      "active_udp_sessions": 0,
      "total_accepted": 12,
      "total_refused": 0,
      "total_errors": 0,
      "bytes_in": 4096,
      "bytes_out": 8192,
      "smart_tcp": {
        "http_accepted": 0,
        "h2c_accepted": 0,
        "https_fallback_accepted": 0,
        "tls_passthrough_accepted": 0,
        "raw_fallback_accepted": 0,
        "entrypoint_cidr_refused": 0,
        "raw_fallback_cidr_refused": 0,
        "proxy_refused": 0,
        "unknown_no_fallback_refused": 0,
        "malformed_rejected": 0,
        "sniff_timeout": 0,
        "client_hello_too_large": 0
      }
    }
  ],
  "routers": [],
  "services": [],
  "counters": {
    "active_tcp_connections": 1,
    "active_udp_sessions": 0,
    "total_accepted": 12,
    "total_refused": 0,
    "total_errors": 0,
    "bytes_in": 4096,
    "bytes_out": 8192,
    "smart_tcp": {
      "http_accepted": 0,
      "h2c_accepted": 0,
      "https_fallback_accepted": 0,
      "tls_passthrough_accepted": 0,
      "raw_fallback_accepted": 0,
      "entrypoint_cidr_refused": 0,
      "raw_fallback_cidr_refused": 0,
      "proxy_refused": 0,
      "unknown_no_fallback_refused": 0,
      "malformed_rejected": 0,
      "sniff_timeout": 0,
      "client_hello_too_large": 0
    }
  }
}
source
1# gordon traffic
2
3Inspect Gordon traffic plane status.
4
5## Subcommands
6
7| Command | Description |
8|---------|-------------|
9| `gordon traffic status` | Show traffic entrypoints, counters, and reload status |
10
11## Usage
12
13```bash
14gordon traffic status --remote prod
15gordon traffic status --remote https://gordon.example.com --json
16```
17
18Remote mode queries the running Gordon admin API. Local mode does not synthesize runtime traffic state from a fresh config load; use a configured remote target for authoritative counters and reload status.
19
20## Flags
21
22| Flag | Description |
23|------|-------------|
24| `--json` | Output machine-readable JSON |
25| `--remote`, `-r` | Remote Gordon instance or saved remote name |
26
27## JSON Output
28
29```json
30{
31  "last_reload_status": "ok",
32  "entrypoints": [
33    {
34      "name": "postgres",
35      "address": "0.0.0.0:5432",
36      "protocol": "tcp",
37      "active": true,
38      "active_tcp_connections": 1,
39      "active_udp_sessions": 0,
40      "total_accepted": 12,
41      "total_refused": 0,
42      "total_errors": 0,
43      "bytes_in": 4096,
44      "bytes_out": 8192,
45      "smart_tcp": {
46        "http_accepted": 0,
47        "h2c_accepted": 0,
48        "https_fallback_accepted": 0,
49        "tls_passthrough_accepted": 0,
50        "raw_fallback_accepted": 0,
51        "entrypoint_cidr_refused": 0,
52        "raw_fallback_cidr_refused": 0,
53        "proxy_refused": 0,
54        "unknown_no_fallback_refused": 0,
55        "malformed_rejected": 0,
56        "sniff_timeout": 0,
57        "client_hello_too_large": 0
58      }
59    }
60  ],
61  "routers": [],
62  "services": [],
63  "counters": {
64    "active_tcp_connections": 1,
65    "active_udp_sessions": 0,
66    "total_accepted": 12,
67    "total_refused": 0,
68    "total_errors": 0,
69    "bytes_in": 4096,
70    "bytes_out": 8192,
71    "smart_tcp": {
72      "http_accepted": 0,
73      "h2c_accepted": 0,
74      "https_fallback_accepted": 0,
75      "tls_passthrough_accepted": 0,
76      "raw_fallback_accepted": 0,
77      "entrypoint_cidr_refused": 0,
78      "raw_fallback_cidr_refused": 0,
79      "proxy_refused": 0,
80      "unknown_no_fallback_refused": 0,
81      "malformed_rejected": 0,
82      "sniff_timeout": 0,
83      "client_hello_too_large": 0
84    }
85  }
86}
87```
88
89## Related
90
91- [Traffic configuration](../config/traffic.md)
92- [Standalone services](../config/services.md)
93- [Server status](./status.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close