mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-04 16:33:14 -04:00
Update python-node-exporter.py
ill get it right sooner or later
This commit is contained in:
@@ -332,7 +332,7 @@ def GetDataFunc():
|
|||||||
## VMs API
|
## VMs API
|
||||||
log.debug("Getting VMs API")
|
log.debug("Getting VMs API")
|
||||||
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/vms/"
|
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/vms/"
|
||||||
|
|
||||||
vmapi_json = {}
|
vmapi_json = {}
|
||||||
try:
|
try:
|
||||||
vmapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL)
|
vmapi = requests.get(url=uri, timeout=3, headers=h2, verify=verifySSL)
|
||||||
@@ -361,6 +361,7 @@ def GetDataFunc():
|
|||||||
log.debug("Getting Scratch Volumes")
|
log.debug("Getting Scratch Volumes")
|
||||||
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=scratch"
|
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=scratch"
|
||||||
|
|
||||||
|
volapi_json = {}
|
||||||
try:
|
try:
|
||||||
volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL)
|
volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL)
|
||||||
volapi_json = volapi.json()
|
volapi_json = volapi.json()
|
||||||
@@ -386,6 +387,7 @@ def GetDataFunc():
|
|||||||
## Volumes API for Journal Volumes
|
## Volumes API for Journal Volumes
|
||||||
log.debug("Getting Journal Volumes")
|
log.debug("Getting Journal Volumes")
|
||||||
|
|
||||||
|
volapi_json = {}
|
||||||
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=journal"
|
uri = "https://" + zvm_url + ":" + zvm_port + "/v1/volumes?volumeType=journal"
|
||||||
try:
|
try:
|
||||||
volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL)
|
volapi = requests.get(url=uri, timeout=api_timeout, headers=h2, verify=verifySSL)
|
||||||
|
|||||||
Reference in New Issue
Block a user