From b2e04a9e0ffc9feaec5ceec870093648a01e170e Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Sat, 28 Jan 2023 22:32:40 -0500 Subject: [PATCH] Update python-node-exporter.py --- app/python-node-exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/python-node-exporter.py b/app/python-node-exporter.py index 9f27e79..3a4991f 100644 --- a/app/python-node-exporter.py +++ b/app/python-node-exporter.py @@ -95,7 +95,7 @@ def GetDataFunc(): for ds in ds_json : log.debug("!!!!!!!!!!!!!!!! Datastore Info!!!!!!!!!!!!!!!!!") log.debug(ds['DatastoreName']) - log.debug(ds["Health"]["Status"]) + #log.debug(ds["Health"]["Status"]) log.debug(ds["Stats"]["NumVRAs"]) log.debug(ds["Stats"]["NumIncomingVMs"]) log.debug(ds["Stats"]["NumOutgoingVMs"]) @@ -114,7 +114,7 @@ def GetDataFunc(): log.debug(ds["Stats"]["Usage"]["Zerto"]["Appliances"]["UsedInBytes"]) log.debug(ds["Stats"]["Usage"]["Zerto"]["Appliances"]["ProvisionedInBytes"]) - metricsDictionary["datastore_health_status{datastoreIdentifier=\"" + ds['DatastoreIdentifier'] + "\",DatastoreName=\"" + ds['DatastoreName'] + "\"}"] = ds["Health"]["Status"] + #metricsDictionary["datastore_health_status{datastoreIdentifier=\"" + ds['DatastoreIdentifier'] + "\",DatastoreName=\"" + ds['DatastoreName'] + "\"}"] = ds["Health"]["Status"] metricsDictionary["datastore_vras{datastoreIdentifier=\"" + ds['DatastoreIdentifier'] + "\",DatastoreName=\"" + ds['DatastoreName'] + "\"}"] = ds["Stats"]["NumVRAs"] metricsDictionary["datastore_incoming_vms{datastoreIdentifier=\"" + ds['DatastoreIdentifier'] + "\",DatastoreName=\"" + ds['DatastoreName'] + "\"}"] = ds["Stats"]["NumIncomingVMs"] metricsDictionary["datastore_outgoing_vms{datastoreIdentifier=\"" + ds['DatastoreIdentifier'] + "\",DatastoreName=\"" + ds['DatastoreName'] + "\"}"] = ds["Stats"]["NumOutgoingVMs"]