You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting error when running the below script at the line marked below Possible bug. When running ListAllNodes in postman, return "null" for attributes. Unable to bypass "Null" for attributes.
General Exception: attributes is a required parameter.
Retu
def send_node_stats(sf_element_factory, prefix):
"""
send a subset of ListNodeStats API call results to graphite.
Note: Calls ListAllNodes to get node name to use in metric path.
"""
metrics_list = ['cpu', 'usedMemory', 'networkUtilizationStorage',
'networkUtilizationCluster', 'cBytesOut', 'cBytesIn', 'sBytesOut',
'sBytesIn', 'mBytesOut', 'mBytesIn']
print("failing maybe here")
node_list = sf_element_factory.list_all_nodes().to_json()['nodes']
node_list = sf_element_factory.list_all_nodes()
print("failing here")
print(node_list)
nodeinfo_by_id = list_to_dict(node_list, key="nodeID")
nodestats = sf_element_factory.list_node_stats().to_json()['nodeStats']['nodes']
LOG.warning(nodestats)
for ns_dict in nodestats:
LOG.warning(ns_dict)
node_name = nodeinfo_by_id[ns_dict['nodeID']]['name']
for key in metrics_list:
if to_graphite:
graphyte.send(prefix + '.' + node_name + '.' + key, to_num(ns_dict[key]))
else:
LOG.warning(node_name + ' ' + key + ' ' + str(ns_dict[key]))
The text was updated successfully, but these errors were encountered:
Getting error when running the below script at the line marked below Possible bug. When running ListAllNodes in postman, return "null" for attributes. Unable to bypass "Null" for attributes.
""""""""""""""" node_list = sf_element_factory.list_all_nodes().to_json()['nodes'] """""""""""""""""""
General Exception: attributes is a required parameter.
Retu
def send_node_stats(sf_element_factory, prefix):
"""
send a subset of ListNodeStats API call results to graphite.
Note: Calls ListAllNodes to get node name to use in metric path.
"""
metrics_list = ['cpu', 'usedMemory', 'networkUtilizationStorage',
'networkUtilizationCluster', 'cBytesOut', 'cBytesIn', 'sBytesOut',
'sBytesIn', 'mBytesOut', 'mBytesIn']
print("failing maybe here")
node_list = sf_element_factory.list_all_nodes().to_json()['nodes']
node_list = sf_element_factory.list_all_nodes()
The text was updated successfully, but these errors were encountered: