Back to Toxiproxy

Metrics

METRICS.md

2.12.01.8 KB
Original Source

Metrics

Runtime Metrics

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:

Proxy Metrics

To enable metrics related to toxiproxy internals, use the -proxy-metrics flag.

toxiproxy_proxy_received_bytes_total / toxiproxy_proxy_sent_bytes_total

The total number of bytes received/sent on a given proxy link in a given direction

mermaid
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

LabelDescriptionExample
directionDirection of the linkupstream / downstream
listenerListener address of this proxy0.0.0.0:8080
proxyProxy namemy-proxy
upstreamUpstream address of this proxyhttpbin.org:80