Estimated Reading Time: 1 minutes|Last Updated: 11/3/2021, 10:50:40 AM

# Create Dymetrics

# usage

Usage: oredge dymetrics create [OPTIONS]

OPTIONS:
    --name string                      name.
    --interval integer                 interval, 60(default).
    --sql string                       sql.
    --note string                      note.
    --http integer                     http id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

# example

  1. create dymetrics.
# oredge dymetrics create --name test --http 1 --sql 'select host, uri, count(*), avg(req_size), max(req_size) from reqs group by host, uri limit 10' 
ID: 1