​
Select Service
ves-io-schema-dc_cluster_group-CustomDataAPI-Metrics
Published April 5, 2023 | Last modified September 22, 2026
Examples of performing dc_cluster_group CustomDataAPI Metrics
Usecase:
Perform Metrics on dc_cluster_group
Request:
Request using vesctl:
vesctl request rpc dc_cluster_group.CustomDataAPI.Metrics -i request.yaml --uri /public/namespaces/namespace-literal/dc_cluster_groups/metrics --http-method POST
where file request.yaml has following contents:
fieldSelector:- TX_THROUGHPUT_BYTESvesctl yaml response:
data:- data: - key: DC_CLUSTER_GROUP: dc-cluster-group-1 DST_SITE: site-2 SRC_SITE: site-1 value: - timestamp: 1593622800 value: "1024" - key: DC_CLUSTER_GROUP: dc-cluster-group-1 DST_SITE: site-3 SRC_SITE: site-1 value: - timestamp: 1593622800 value: "1024"- data: - key: DC_CLUSTER_GROUP: dc-cluster-group-1 DST_SITE: site-2 SRC_SITE: site-1 value: - timestamp: 1593622800 value: "10" - key: DC_CLUSTER_GROUP: dc-cluster-group-1 DST_SITE: site-3 SRC_SITE: site-1 value: - timestamp: 1593622800 value: "100" type: TX_THROUGHPUT_PACKETSRequest using curl:
curl -X 'POST' -d '{"field_selector":["TX_THROUGHPUT_BYTES"]}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1655461974_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/namespace-literal/dc_cluster_groups/metrics'curl response:
HTTP/1.1 200 OKContent-Type: application/jsonDate: Fri, 19 Jun 2026 22:02:53 GMTVary: Accept-Encoding
{ "data": [ { "type": "TX_THROUGHPUT_BYTES", "data": [ { "key": { "DC_CLUSTER_GROUP": "dc-cluster-group-1", "DST_SITE": "site-2", "SRC_SITE": "site-1" }, "value": [ { "timestamp": 1593622800, "value": "1024", "trend_value": null } ] }, { "key": { "DC_CLUSTER_GROUP": "dc-cluster-group-1", "DST_SITE": "site-3", "SRC_SITE": "site-1" }, "value": [ { "timestamp": 1593622800, "value": "1024", "trend_value": null } ] } ], "unit": "UNIT_MILLISECONDS" }, { "type": "TX_THROUGHPUT_PACKETS", "data": [ { "key": { "DC_CLUSTER_GROUP": "dc-cluster-group-1", "DST_SITE": "site-2", "SRC_SITE": "site-1" }, "value": [ { "timestamp": 1593622800, "value": "10", "trend_value": null } ] }, { "key": { "DC_CLUSTER_GROUP": "dc-cluster-group-1", "DST_SITE": "site-3", "SRC_SITE": "site-1" }, "value": [ { "timestamp": 1593622800, "value": "100", "trend_value": null } ] } ], "unit": "UNIT_MILLISECONDS" } ], "step": ""}