Auto Analyze

Table of Contents

Introduction

Analyzes for certain resources.

Back to TOC

Usage

Usage: orxray auto-analyze [RESOURCES] [OPTIONS]

If you want to specify multiple resources, separate them with commas, such as "cpu,memory".

RESOURCES:
    cpu
    memory
    disk
    net
    latency

OPTIONS:
    -A, --app-id integer               Application ID.
    -p, --pid integer                  pid. If pid is negative, will auto find the pgid of the -pid.
    -a, --agent integer                Agent ID, please use agent default command to set default agent.


GLOBAL OPTIONS:
    --help
    --config                           Specify the config file, default is ~/.orxray/config.

Back to TOC

Example

Specify the CPU resource to analyze.

$ orxray auto-analyze cpu -A 267
For more details, please visit https://example.xray.openresty.com.cn/targets/1/history?batch_id=1.

Specify CPU and disk resources to analyze.

$ orxray auto-analyze cpu,disk -A 267
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=2 for more details.

Analyze the CPU resources of a process.

$ orxray auto-analyze cpu -A 267 -p 2121
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=3 for more details.

Analyze the CPU resources of the specified process group.

$ orxray auto-analyze cpu -A 267 -p -2120
Go to https://example.xray.openresty.com.cn/targets/1/history?batch_id=4 for more details.

Back to TOC