To enable runtime metrics related to the state of the go runtime, build version, process info, use the -runtime-metrics flag.
For more details, see below:
To enable metrics related to toxiproxy internals, use the -proxy-metrics flag.
The total number of bytes received/sent on a given proxy link in a given direction
sequenceDiagram
Client->>+Toxiproxy: toxiproxy_proxy_received_bytes_total{direction="upstream"}
Toxiproxy->>+Server: toxiproxy_proxy_sent_bytes_total{direction="upstream"}
Server->>+Toxiproxy: toxiproxy_proxy_received_bytes_total{direction="downstream"}
Toxiproxy->>+Client: toxiproxy_proxy_sent_bytes_total{direction="downstream"}
Type
Counter
Labels
| Label | Description | Example |
|---|---|---|
| direction | Direction of the link | upstream / downstream |
| listener | Listener address of this proxy | 0.0.0.0:8080 |
| proxy | Proxy name | my-proxy |
| upstream | Upstream address of this proxy | httpbin.org:80 |