Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.85 KB

METRICS.md

File metadata and controls

44 lines (31 loc) · 1.85 KB

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

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