dcloud monitoring metrics get-dataDatapoints of up to eight metrics of one resource, one per period
metrics is comma-separated. start and end are ISO 8601; end defaults to now. period is seconds, a whole number of minutes; at most 1440 points per series. Metrics are kept 14 days.
Synopsis
dcloud monitoring metrics get-data --resource-type resourceType --resource-id resourceId --metrics metrics --start start [flags]Flags
--resource-typeRequiredenum
instance, db_node, vpn_connection, eks_cluster, cdn_distribution, app: as resources lists it
One of:
instance,db_node,vpn_connection,eks_cluster,cdn_distribution,app--resource-idRequiredstring
The resource’s id as resources lists it (i-… for an instance, a uuid otherwise): 1–64 letters, digits and dashes. An id the organization does not have answers empty series, not 404
--metricsRequiredstring
Comma-separated, 1–8 names, up to 400 characters, each one of cpu_percent, disk_read_iops, disk_write_iops, disk_read_bps, disk_write_bps, network_in_bps, network_out_bps, disk_used_percent, connections, replication_lag_bytes, query_slowdown, docdb_up, tunnel_up, tunnel_in_bps, tunnel_out_bps, bgp_prefixes, api_available, control_plane_ready, nodes_ready, nodes_not_ready, cdn_requests, cdn_cache_hits, cdn_cache_misses, cdn_hit_ratio, cdn_bytes_out, cdn_origin_bytes, waf_blocked, waf_counted, waf_challenged, waf_rate_limited, deploy_duration_seconds, deploys_succeeded, deploys_failed. A metric the resource type does not record answers no points
--startRequiredstring
ISO 8601; must be before end
--endOptionalstring
ISO 8601; now when omitted
--periodOptionalnumber
Seconds per point, a whole number of minutes from 60 to 86400 (default 60). (end − start) / period may be at most 1440, else 400
Constraints: integer
--statisticOptionalenum
How the minutes of a period are combined: avg (default), max, min, sum or count
One of:
avg,max,min,sum,count
Example
dcloud monitoring metrics get-data --resource-type instance --resource-id example --metrics example --start exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.