Analyzer ngx-req-latency-us

Name

ngx-req-latency-us - Nginx Request Latency

Resource Category

Latency.

Application Type & Technical Stack

  • OpenResty

Parameters

The following parameters (or global variables) can be overridden by the user when running the analyzer or tool:

need_packets

Type: bool

Description: Also capture the network packets of the matched requests

Default Value: None

buffer_size

Type: int

Description: buffer size for capturing packets in MB.

Default Value: 50

snap_len

Type: int

Description: max capture bytes of the packet

Default Value: 68

req_status

Type: int

Description: Interested Request Status, default all status

Default Value: None

req_host

Type: string

Description: host name of the request

Default Value: None

req_uri

Type: string

Description: uri of the request

Default Value: None

req_time

Type: int

Description: total request time greater than specified in millisecond

Default Value: None

upstream_time

Type: int

Description: upstream response time greater than specified in millisecond

Default Value: None

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run ngx-req-latency-us -p PID

# trace a shell command directly
orxray analyzer run ngx-req-latency-us -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run ngx-req-latency-us -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run ngx-req-latency-us --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Plain Texts

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.