Update python-node-exporter.py

fix for one to many protection of vms
This commit is contained in:
2023-03-25 00:02:03 -04:00
parent bb4b538bb5
commit a265a84517
+1 -1
View File
@@ -222,7 +222,7 @@ def GetStatsFunc():
log.debug(tempdb.insert(vm))
# 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:
vapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL)
vapi_json = vapi.json()