Good morning. I got the following trouble:
I create an acq-spec to collect the data afterwards with associated request(
curl -X GET 'https://mylocal.gve.goog/api/stats/data/dp' -H 'vmware-api-session-id: sessionId'
)
{
"counters": {
"set_id":"101"
},
"expiration": 0,
"interval": 30,
"memo_": "Create acq Specs for * hosts",
"resources": [
{
"id_value": "*",
"predicate": "EQUAL",
"type": "HOST"
}
]
}
But this way I can't collect any data.
However with this configuration it's work.
{
"counters": {
"set_id":"101"
},
"expiration": 0,
"interval": 30,
"memo_": "Create acq Specs for host-1017",
"resources": [
{
"id_value": "host-1017",
"predicate": "EQUAL",
"type": "HOST"
}
]
}
I try to add a multiple RsrcId inside the "resources" property but I get an error:
"resources": [
{
"id_value": "host-1016",
"predicate": "EQUAL",
"type": "HOST"
},{
"id_value": "host-1017",
"predicate": "EQUAL",
"type": "HOST"
}
]
{
"messages": [
{
"args": [],
"default_message": "Invalid Resource: duplicate Resource Types are present",
"localized": "Invalid Resource: duplicate Resource Types are present",
"id": "com.vmware.vstats.acq_specs_duplicate_resource_type"
}
]
}
The question. How I can add multiples resources(HOST or VM) to monitoring?
Greetings