Skip to content
6 changes: 4 additions & 2 deletions docs/resources/dummy-neuron-monitor/dummy_neuron_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def get_instance_labels(instance_info):
'region': instance_info['instance_region'],
'subnet_id': instance_info['subnet_id']
}
if 'ultraserver_id' in instance_info:
Comment thread
sky333999 marked this conversation as resolved.
instance_labels['ultraserver_id'] = instance_info['ultraserver_id']
return instance_labels


Expand Down Expand Up @@ -845,8 +847,8 @@ def signal_handler(*_):
'"instance_id":"i-09db9b55e0095612f","instance_type":"trn1n.32xlarge",'
'"instance_availability_zone":"us-east-1c","instance_availability_zone_id":"use1-az6",'
'"instance_region":"us-east-1","ami_id":"ami-030686a4e905e98d3",'
'"subnet_id":"subnet-06a7754948e8a000f","error":""},"neuron_hardware_info":{"neuron_device_count":16,'
'"neuroncore_per_device_count":2,"error":""}}')
'"subnet_id":"subnet-06a7754948e8a000f","ultraserver_id":"u-cafb07773a569a23","error":""},'
'"neuron_hardware_info":{"neuron_device_count":16,"neuroncore_per_device_count":2,"error":""}}')
if len(line) == 0:
continue
if original_file_hash:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"Service": {},
"Timestamp": {},
"Type": {},
"UltraServer": {},
"Version": {},
"availability_zone": {},
"kubernetes": {},
Expand All @@ -44,6 +45,7 @@
"Service",
"Timestamp",
"Type",
"UltraServer",
"Version",
"CloudWatchMetrics"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"NodeName": {},
"Timestamp": {},
"Type": {},
"UltraServer": {},
"Version": {},
"availability_zone": {},
"kubernetes": {},
Expand All @@ -27,6 +28,7 @@
"NodeName",
"Timestamp",
"Type",
"UltraServer",
"Version",
"CloudWatchMetrics"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"NodeName": {},
"Timestamp": {},
"Type": {},
"UltraServer": {},
"Version": {},
"availability_zone": {},
"kubernetes": {},
Expand All @@ -36,6 +37,7 @@
"NodeName",
"Timestamp",
"Type",
"UltraServer",
"Version",
"CloudWatchMetrics"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"NodeName": {},
"Timestamp": {},
"Type": {},
"UltraServer": {},
"Version": {},
"availability_zone": {},
"kubernetes": {},
Expand All @@ -28,6 +29,7 @@
"NodeName",
"Timestamp",
"Type",
"UltraServer",
"Version",
"CloudWatchMetrics"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"Service": {},
"Timestamp": {},
"Type": {},
"UltraServer": {},
"Version": {},
"availability_zone": {},
"kubernetes": {},
Expand All @@ -43,6 +44,7 @@
"Service",
"Timestamp",
"Type",
"UltraServer",
"Version",
"CloudWatchMetrics"
]
Expand Down