​
Select Service
ves-io-schema-dc_cluster_group-CustomDataAPI-Metrics
Published April 5, 2023 | Last modified March 20, 2025
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_BYTES
Copied!
vesctl 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_PACKETS
Copied!
Request 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-build436303540_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'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 11 Mar 2025 00:55:47 GMT
Vary: 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": ""
}
Copied!