mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-05 00:43:13 -04:00
Update python-node-exporter.py
fix for one to many protection of vms
This commit is contained in:
@@ -222,7 +222,7 @@ def GetStatsFunc():
|
|||||||
log.debug(tempdb.insert(vm))
|
log.debug(tempdb.insert(vm))
|
||||||
|
|
||||||
# update database with VM name, for easier display in Grafana Legends
|
# update database with VM name, for easier display in Grafana Legends
|
||||||
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/vms/" + vm['VmIdentifier']
|
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/vms/" + vm['VmIdentifier'] +"?vpgIdentifier=" + vm['VpgIdentifier']
|
||||||
try:
|
try:
|
||||||
vapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL)
|
vapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL)
|
||||||
vapi_json = vapi.json()
|
vapi_json = vapi.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user