Skip to content

Commit 81530aa

Browse files
author
Braden Olsen
committed
Adds system diagnostics messages.
Adds messages to gather system diagnostics like OS, Java runtime, hardware, memory, storage, container, environment variables, and system properties. This allows for more comprehensive system monitoring.
1 parent 50c2fd6 commit 81530aa

File tree

1 file changed

+163
-203
lines changed

1 file changed

+163
-203
lines changed

tcnapi/exile/gate/v2/public.proto

Lines changed: 163 additions & 203 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,169 @@ message SubmitJobResultsRequest {
593593
Container container = 8; // Container information (if running in container)
594594
EnvironmentVariables environment_variables = 9; // Environment variables
595595
SystemProperties system_properties = 10; // System properties
596+
message OperatingSystem {
597+
string name = 1; // OS name (e.g., "Linux", "Windows")
598+
string version = 2; // OS version
599+
string architecture = 3; // System architecture (e.g., "aarch64", "x86_64")
600+
string manufacturer = 4; // OS manufacturer
601+
int32 available_processors = 5; // Number of available processors
602+
int64 system_uptime = 6; // System uptime in seconds
603+
double system_load_average = 7; // System load average
604+
int64 total_physical_memory = 8; // Total physical memory in bytes
605+
int64 available_physical_memory = 9; // Available physical memory in bytes
606+
int64 total_swap_space = 10; // Total swap space in bytes (-1 if not available)
607+
int64 available_swap_space = 11; // Available swap space in bytes (-1 if not available)
608+
}
609+
message JavaRuntime {
610+
string version = 1; // Java version
611+
string vendor = 2; // Java vendor
612+
string runtime_name = 3; // Runtime name
613+
string vm_name = 4; // VM name
614+
string vm_version = 5; // VM version
615+
string vm_vendor = 6; // VM vendor
616+
string specification_name = 7; // Specification name
617+
string specification_version = 8; // Specification version
618+
string class_path = 9; // Java class path
619+
string library_path = 10; // Java library path
620+
repeated string input_arguments = 11; // JVM input arguments
621+
int64 uptime = 12; // JVM uptime in milliseconds
622+
int64 start_time = 13; // JVM start time in milliseconds since epoch
623+
string management_spec_version = 14; // Management specification version
624+
}
625+
message Hardware {
626+
string model = 1; // Hardware model
627+
string manufacturer = 2; // Hardware manufacturer
628+
string serial_number = 3; // Hardware serial number
629+
string uuid = 4; // Hardware UUID
630+
Processor processor = 5; // Processor information
631+
}
632+
message Processor {
633+
string name = 1; // Processor name
634+
string identifier = 2; // Processor identifier
635+
string architecture = 3; // Processor architecture
636+
int32 physical_processor_count = 4; // Number of physical processors
637+
int32 logical_processor_count = 5; // Number of logical processors
638+
int64 max_frequency = 6; // Maximum frequency in Hz (-1 if unknown)
639+
bool cpu_64bit = 7; // Whether the CPU is 64-bit
640+
}
641+
message Memory {
642+
int64 heap_memory_used = 1; // Used heap memory in bytes
643+
int64 heap_memory_max = 2; // Maximum heap memory in bytes
644+
int64 heap_memory_committed = 3; // Committed heap memory in bytes
645+
int64 non_heap_memory_used = 4; // Used non-heap memory in bytes
646+
int64 non_heap_memory_max = 5; // Maximum non-heap memory in bytes (-1 if unlimited)
647+
int64 non_heap_memory_committed = 6; // Committed non-heap memory in bytes
648+
repeated MemoryPool memory_pools = 7; // Memory pool information
649+
}
650+
message MemoryPool {
651+
string name = 1; // Memory pool name
652+
string type = 2; // Memory pool type (e.g., "Heap memory", "Non-heap memory")
653+
int64 used = 3; // Used memory in bytes
654+
int64 max = 4; // Maximum memory in bytes (-1 if unlimited)
655+
int64 committed = 5; // Committed memory in bytes
656+
}
657+
message Storage {
658+
string name = 1; // Storage device name
659+
string type = 2; // Storage device type (e.g., "disk")
660+
string model = 3; // Storage device model
661+
string serial_number = 4; // Storage device serial number
662+
int64 size = 5; // Storage device size in bytes
663+
}
664+
message Container {
665+
bool is_container = 1; // Whether running in a container
666+
string container_type = 2; // Container type (e.g., "docker")
667+
string container_id = 3; // Container ID
668+
string container_name = 4; // Container name
669+
string image_name = 5; // Container image name
670+
map<string, string> resource_limits = 6; // Resource limits imposed by the container
671+
}
672+
message EnvironmentVariables {
673+
string language = 1; // LANGUAGE
674+
string path = 2; // PATH
675+
string hostname = 3; // HOSTNAME
676+
string lc_all = 4; // LC_ALL
677+
string java_home = 5; // JAVA_HOME
678+
string java_version = 6; // JAVA_VERSION
679+
string lang = 7; // LANG
680+
string home = 8; // HOME
681+
}
682+
message SystemProperties {
683+
// Java Specification
684+
string java_specification_version = 1; // java.specification.version
685+
string java_specification_vendor = 2; // java.specification.vendor
686+
string java_specification_name = 3; // java.specification.name
687+
string java_specification_maintenance_version = 4; // java.specification.maintenance.version
688+
689+
// Java Version Info
690+
string java_version = 5; // java.version
691+
string java_version_date = 6; // java.version.date
692+
string java_vendor = 7; // java.vendor
693+
string java_vendor_version = 8; // java.vendor.version
694+
string java_vendor_url = 9; // java.vendor.url
695+
string java_vendor_url_bug = 10; // java.vendor.url.bug
696+
697+
// Java Runtime
698+
string java_runtime_name = 11; // java.runtime.name
699+
string java_runtime_version = 12; // java.runtime.version
700+
string java_home = 13; // java.home
701+
string java_class_path = 14; // java.class.path
702+
string java_library_path = 15; // java.library.path
703+
string java_class_version = 16; // java.class.version
704+
705+
// Java VM
706+
string java_vm_name = 17; // java.vm.name
707+
string java_vm_version = 18; // java.vm.version
708+
string java_vm_vendor = 19; // java.vm.vendor
709+
string java_vm_info = 20; // java.vm.info
710+
string java_vm_specification_version = 21; // java.vm.specification.version
711+
string java_vm_specification_vendor = 22; // java.vm.specification.vendor
712+
string java_vm_specification_name = 23; // java.vm.specification.name
713+
string java_vm_compressed_oops_mode = 24; // java.vm.compressedOopsMode
714+
715+
// Operating System
716+
string os_name = 25; // os.name
717+
string os_version = 26; // os.version
718+
string os_arch = 27; // os.arch
719+
720+
// User Info
721+
string user_name = 28; // user.name
722+
string user_home = 29; // user.home
723+
string user_dir = 30; // user.dir
724+
string user_timezone = 31; // user.timezone
725+
string user_country = 32; // user.country
726+
string user_language = 33; // user.language
727+
728+
// File System
729+
string file_separator = 34; // file.separator
730+
string path_separator = 35; // path.separator
731+
string line_separator = 36; // line.separator
732+
string file_encoding = 37; // file.encoding
733+
string native_encoding = 38; // native.encoding
734+
735+
// Sun/Oracle Specific
736+
string sun_jnu_encoding = 39; // sun.jnu.encoding
737+
string sun_arch_data_model = 40; // sun.arch.data.model
738+
string sun_java_launcher = 41; // sun.java.launcher
739+
string sun_boot_library_path = 42; // sun.boot.library.path
740+
string sun_java_command = 43; // sun.java.command
741+
string sun_cpu_endian = 44; // sun.cpu.endian
742+
string sun_management_compiler = 45; // sun.management.compiler
743+
string sun_io_unicode_encoding = 46; // sun.io.unicode.encoding
744+
745+
// JDK/Debug
746+
string jdk_debug = 47; // jdk.debug
747+
string java_io_tmpdir = 48; // java.io.tmpdir
748+
749+
// Application Specific
750+
string env = 49; // env (custom property)
751+
string micronaut_classloader_logging = 50; // micronaut.classloader.logging
752+
753+
// Third Party Libraries
754+
string io_netty_allocator_max_order = 51; // io.netty.allocator.maxOrder
755+
string io_netty_process_id = 52; // io.netty.processId
756+
string io_netty_machine_id = 53; // io.netty.machineId
757+
string com_zaxxer_hikari_pool_number = 54; // com.zaxxer.hikari.pool_number
758+
}
596759
}
597760

598761
/**
@@ -1085,206 +1248,3 @@ message ListSearchableRecordingFieldsRequest {}
10851248
message ListSearchableRecordingFieldsResponse {
10861249
repeated string fields = 1;
10871250
}
1088-
// -- this is for the diagnostics request.
1089-
/**
1090-
* Operating system information.
1091-
*/
1092-
message OperatingSystem {
1093-
string name = 1; // OS name (e.g., "Linux", "Windows")
1094-
string version = 2; // OS version
1095-
string architecture = 3; // System architecture (e.g., "aarch64", "x86_64")
1096-
string manufacturer = 4; // OS manufacturer
1097-
int32 available_processors = 5; // Number of available processors
1098-
int64 system_uptime = 6; // System uptime in seconds
1099-
double system_load_average = 7; // System load average
1100-
int64 total_physical_memory = 8; // Total physical memory in bytes
1101-
int64 available_physical_memory = 9; // Available physical memory in bytes
1102-
int64 total_swap_space = 10; // Total swap space in bytes (-1 if not available)
1103-
int64 available_swap_space = 11; // Available swap space in bytes (-1 if not available)
1104-
}
1105-
1106-
/**
1107-
* Java runtime information.
1108-
*/
1109-
message JavaRuntime {
1110-
string version = 1; // Java version
1111-
string vendor = 2; // Java vendor
1112-
string runtime_name = 3; // Runtime name
1113-
string vm_name = 4; // VM name
1114-
string vm_version = 5; // VM version
1115-
string vm_vendor = 6; // VM vendor
1116-
string specification_name = 7; // Specification name
1117-
string specification_version = 8; // Specification version
1118-
string class_path = 9; // Java class path
1119-
string library_path = 10; // Java library path
1120-
repeated string input_arguments = 11; // JVM input arguments
1121-
int64 uptime = 12; // JVM uptime in milliseconds
1122-
int64 start_time = 13; // JVM start time in milliseconds since epoch
1123-
string management_spec_version = 14; // Management specification version
1124-
}
1125-
1126-
/**
1127-
* Hardware information.
1128-
*/
1129-
message Hardware {
1130-
string model = 1; // Hardware model
1131-
string manufacturer = 2; // Hardware manufacturer
1132-
string serial_number = 3; // Hardware serial number
1133-
string uuid = 4; // Hardware UUID
1134-
Processor processor = 5; // Processor information
1135-
}
1136-
1137-
/**
1138-
* Processor information.
1139-
*/
1140-
message Processor {
1141-
string name = 1; // Processor name
1142-
string identifier = 2; // Processor identifier
1143-
string architecture = 3; // Processor architecture
1144-
int32 physical_processor_count = 4; // Number of physical processors
1145-
int32 logical_processor_count = 5; // Number of logical processors
1146-
int64 max_frequency = 6; // Maximum frequency in Hz (-1 if unknown)
1147-
bool cpu_64bit = 7; // Whether the CPU is 64-bit
1148-
}
1149-
1150-
/**
1151-
* Memory usage information.
1152-
*/
1153-
message Memory {
1154-
int64 heap_memory_used = 1; // Used heap memory in bytes
1155-
int64 heap_memory_max = 2; // Maximum heap memory in bytes
1156-
int64 heap_memory_committed = 3; // Committed heap memory in bytes
1157-
int64 non_heap_memory_used = 4; // Used non-heap memory in bytes
1158-
int64 non_heap_memory_max = 5; // Maximum non-heap memory in bytes (-1 if unlimited)
1159-
int64 non_heap_memory_committed = 6; // Committed non-heap memory in bytes
1160-
repeated MemoryPool memory_pools = 7; // Memory pool information
1161-
}
1162-
1163-
/**
1164-
* Memory pool information.
1165-
*/
1166-
message MemoryPool {
1167-
string name = 1; // Memory pool name
1168-
string type = 2; // Memory pool type (e.g., "Heap memory", "Non-heap memory")
1169-
int64 used = 3; // Used memory in bytes
1170-
int64 max = 4; // Maximum memory in bytes (-1 if unlimited)
1171-
int64 committed = 5; // Committed memory in bytes
1172-
}
1173-
1174-
/**
1175-
* Storage device information.
1176-
*/
1177-
message Storage {
1178-
string name = 1; // Storage device name
1179-
string type = 2; // Storage device type (e.g., "disk")
1180-
string model = 3; // Storage device model
1181-
string serial_number = 4; // Storage device serial number
1182-
int64 size = 5; // Storage device size in bytes
1183-
}
1184-
1185-
/**
1186-
* Container information.
1187-
*/
1188-
message Container {
1189-
bool is_container = 1; // Whether running in a container
1190-
string container_type = 2; // Container type (e.g., "docker")
1191-
string container_id = 3; // Container ID
1192-
string container_name = 4; // Container name
1193-
string image_name = 5; // Container image name
1194-
map<string, string> resource_limits = 6; // Resource limits imposed by the container
1195-
}
1196-
1197-
/**
1198-
* Environment variables information.
1199-
*/
1200-
message EnvironmentVariables {
1201-
string language = 1; // LANGUAGE
1202-
string path = 2; // PATH
1203-
string hostname = 3; // HOSTNAME
1204-
string lc_all = 4; // LC_ALL
1205-
string java_home = 5; // JAVA_HOME
1206-
string java_version = 6; // JAVA_VERSION
1207-
string lang = 7; // LANG
1208-
string home = 8; // HOME
1209-
}
1210-
1211-
/**
1212-
* Java system properties information.
1213-
*/
1214-
message SystemProperties {
1215-
// Java Specification
1216-
string java_specification_version = 1; // java.specification.version
1217-
string java_specification_vendor = 2; // java.specification.vendor
1218-
string java_specification_name = 3; // java.specification.name
1219-
string java_specification_maintenance_version = 4; // java.specification.maintenance.version
1220-
1221-
// Java Version Info
1222-
string java_version = 5; // java.version
1223-
string java_version_date = 6; // java.version.date
1224-
string java_vendor = 7; // java.vendor
1225-
string java_vendor_version = 8; // java.vendor.version
1226-
string java_vendor_url = 9; // java.vendor.url
1227-
string java_vendor_url_bug = 10; // java.vendor.url.bug
1228-
1229-
// Java Runtime
1230-
string java_runtime_name = 11; // java.runtime.name
1231-
string java_runtime_version = 12; // java.runtime.version
1232-
string java_home = 13; // java.home
1233-
string java_class_path = 14; // java.class.path
1234-
string java_library_path = 15; // java.library.path
1235-
string java_class_version = 16; // java.class.version
1236-
1237-
// Java VM
1238-
string java_vm_name = 17; // java.vm.name
1239-
string java_vm_version = 18; // java.vm.version
1240-
string java_vm_vendor = 19; // java.vm.vendor
1241-
string java_vm_info = 20; // java.vm.info
1242-
string java_vm_specification_version = 21; // java.vm.specification.version
1243-
string java_vm_specification_vendor = 22; // java.vm.specification.vendor
1244-
string java_vm_specification_name = 23; // java.vm.specification.name
1245-
string java_vm_compressed_oops_mode = 24; // java.vm.compressedOopsMode
1246-
1247-
// Operating System
1248-
string os_name = 25; // os.name
1249-
string os_version = 26; // os.version
1250-
string os_arch = 27; // os.arch
1251-
1252-
// User Info
1253-
string user_name = 28; // user.name
1254-
string user_home = 29; // user.home
1255-
string user_dir = 30; // user.dir
1256-
string user_timezone = 31; // user.timezone
1257-
string user_country = 32; // user.country
1258-
string user_language = 33; // user.language
1259-
1260-
// File System
1261-
string file_separator = 34; // file.separator
1262-
string path_separator = 35; // path.separator
1263-
string line_separator = 36; // line.separator
1264-
string file_encoding = 37; // file.encoding
1265-
string native_encoding = 38; // native.encoding
1266-
1267-
// Sun/Oracle Specific
1268-
string sun_jnu_encoding = 39; // sun.jnu.encoding
1269-
string sun_arch_data_model = 40; // sun.arch.data.model
1270-
string sun_java_launcher = 41; // sun.java.launcher
1271-
string sun_boot_library_path = 42; // sun.boot.library.path
1272-
string sun_java_command = 43; // sun.java.command
1273-
string sun_cpu_endian = 44; // sun.cpu.endian
1274-
string sun_management_compiler = 45; // sun.management.compiler
1275-
string sun_io_unicode_encoding = 46; // sun.io.unicode.encoding
1276-
1277-
// JDK/Debug
1278-
string jdk_debug = 47; // jdk.debug
1279-
string java_io_tmpdir = 48; // java.io.tmpdir
1280-
1281-
// Application Specific
1282-
string env = 49; // env (custom property)
1283-
string micronaut_classloader_logging = 50; // micronaut.classloader.logging
1284-
1285-
// Third Party Libraries
1286-
string io_netty_allocator_max_order = 51; // io.netty.allocator.maxOrder
1287-
string io_netty_process_id = 52; // io.netty.processId
1288-
string io_netty_machine_id = 53; // io.netty.machineId
1289-
string com_zaxxer_hikari_pool_number = 54; // com.zaxxer.hikari.pool_number
1290-
}

0 commit comments

Comments
 (0)