@glassmkr/crucible 0.13.18 → 0.13.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alerts/rules.js +1 -1
- package/dist/alerts/rules.js.map +1 -1
- package/dist/collect/__tests__/c11-c18.test.js.map +1 -1
- package/dist/collect/__tests__/c7-c10.test.js +32 -0
- package/dist/collect/__tests__/c7-c10.test.js.map +1 -1
- package/dist/collect/__tests__/memory-topology.test.d.ts +1 -0
- package/dist/collect/__tests__/memory-topology.test.js +239 -0
- package/dist/collect/__tests__/memory-topology.test.js.map +1 -0
- package/dist/collect/__tests__/smart.test.js +18 -3
- package/dist/collect/__tests__/smart.test.js.map +1 -1
- package/dist/collect/fd.d.ts +15 -6
- package/dist/collect/fd.js +65 -6
- package/dist/collect/fd.js.map +1 -1
- package/dist/collect/memory-topology.d.ts +7 -0
- package/dist/collect/memory-topology.js +152 -0
- package/dist/collect/memory-topology.js.map +1 -0
- package/dist/collect/smart.d.ts +1 -1
- package/dist/collect/smart.js +23 -4
- package/dist/collect/smart.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/privileged.d.ts +2 -2
- package/dist/lib/privileged.js +18 -0
- package/dist/lib/privileged.js.map +1 -1
- package/dist/lib/types.d.ts +35 -0
- package/package.json +1 -1
package/dist/lib/types.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export interface Snapshot {
|
|
|
33
33
|
expected_reboot_reason?: string;
|
|
34
34
|
/** EDAC memory-error counters per memory controller + DIMM. */
|
|
35
35
|
ecc_edac?: EdacSnapshot;
|
|
36
|
+
/** DIMM population + channel balance from SMBIOS Type 17 (dmidecode).
|
|
37
|
+
* Omitted on VMs / when dmidecode is unavailable. */
|
|
38
|
+
memory_topology?: MemoryTopology;
|
|
36
39
|
/** PSI pressure-stall counters per resource (cpu, memory, io). */
|
|
37
40
|
psi?: PsiSnapshot;
|
|
38
41
|
/** /proc/vmstat swap-in/out rates. */
|
|
@@ -590,6 +593,38 @@ export interface MemoryInfo {
|
|
|
590
593
|
swap_total_mb: number;
|
|
591
594
|
swap_used_mb: number;
|
|
592
595
|
}
|
|
596
|
+
/** One SMBIOS Type 17 Memory Device record (a physical DIMM slot). */
|
|
597
|
+
export interface MemoryDimm {
|
|
598
|
+
locator: string;
|
|
599
|
+
bank_locator: string | null;
|
|
600
|
+
socket: number | null;
|
|
601
|
+
channel: string | null;
|
|
602
|
+
slot: number | null;
|
|
603
|
+
populated: boolean;
|
|
604
|
+
size_mb: number | null;
|
|
605
|
+
rank: number | null;
|
|
606
|
+
type: string | null;
|
|
607
|
+
speed_mts: number | null;
|
|
608
|
+
configured_mts: number | null;
|
|
609
|
+
manufacturer: string | null;
|
|
610
|
+
part_number: string | null;
|
|
611
|
+
}
|
|
612
|
+
/** DIMM population topology derived from dmidecode -t 17. These are the raw
|
|
613
|
+
* COLLECTED facts only; the controller/quadrant-balance judgment (Tier 2) is
|
|
614
|
+
* derived dashboard-side from these + the snapshot's cpu_model against a
|
|
615
|
+
* CPU-family map, so the map can be updated without an agent re-release. */
|
|
616
|
+
export interface MemoryTopology {
|
|
617
|
+
source: "dmidecode";
|
|
618
|
+
total_slots: number;
|
|
619
|
+
populated_slots: number;
|
|
620
|
+
available_channels: number;
|
|
621
|
+
populated_channels: number;
|
|
622
|
+
/** Any populated DIMM whose configured speed is below its rated speed. */
|
|
623
|
+
downclocked: boolean;
|
|
624
|
+
/** >1 distinct part number / size / rank among populated DIMMs. */
|
|
625
|
+
mixed_parts: boolean;
|
|
626
|
+
dimms: MemoryDimm[];
|
|
627
|
+
}
|
|
593
628
|
export interface DiskInfo {
|
|
594
629
|
device: string;
|
|
595
630
|
mount: string;
|