type | string | Có | — | Phải là "process_mon" |
processName | string | Có | — | Tên process cần match. Hỗ trợ glob (*, ?, [). Case-insensitive. Ví dụ: "nginx", "java*", "node*" |
executablePath | string | Không | — | Đường dẫn executable đầy đủ để thu hẹp match (AND với processName). Exact match |
minCount | int | Không | 1 | Số process tối thiểu. Nếu count < minCount → status down, severity critical |
maxCount | int | Không | — | Số process tối đa. Nếu count > maxCount → status warning, severity warning |
collectCpuMemory | bool | Không | false | Thu thập tổng CPU% và memory bytes aggregate của tất cả process match |
collectPerProcess | bool | Không | false | Thu thập detail per-process (CPU, RSS, VMS, threads, FDs, disk I/O, uptime). Mỗi process có label pid và name |
collectConnections | bool | Không | = collectPerProcess | Thu thập số open connection của mỗi matched PID. Mặc định theo collectPerProcess. Cần ConnAdapter và có thể cần CAP_SYS_PTRACE |
maxProcesses | int | Không | 20 | Giới hạn số process emit per-process detail (busiest-by-CPU được giữ). Dùng để bound metric cardinality |