Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
Package cmd implements the gohai CLI.
|
Package cmd implements the gohai CLI. |
|
internal
|
|
|
cli
Package cli holds CLI-only output helpers β never imported by the SDK under pkg/gohai/, only by cmd/.
|
Package cli holds CLI-only output helpers β never imported by the SDK under pkg/gohai/, only by cmd/. |
|
cloudmetadata
Package cloudmetadata is the shared HTTP client every cloud-provider collector (ec2, gce, azure, digital_ocean, openstack, oci, linode, alibaba, scaleway) uses to talk to its provider's link-local metadata endpoint.
|
Package cloudmetadata is the shared HTTP client every cloud-provider collector (ec2, gce, azure, digital_ocean, openstack, oci, linode, alibaba, scaleway) uses to talk to its provider's link-local metadata endpoint. |
|
collector
Package collector defines the Collector interface gohai uses to plug fact collectors into the registry.
|
Package collector defines the Collector interface gohai uses to plug fact collectors into the registry. |
|
collector/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
executor
Package executor abstracts OS command execution.
|
Package executor abstracts OS command execution. |
|
executor/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
|
platform
Package platform provides cross-platform OS/distro detection used by gohai collectors to dispatch to the correct per-OS implementation.
|
Package platform provides cross-platform OS/distro detection used by gohai collectors to dispatch to the correct per-OS implementation. |
|
validate
Package validate provides JSON Schema validation for gohai output.
|
Package validate provides JSON Schema validation for gohai output. |
|
pkg
|
|
|
gohai
Package gohai is the public SDK for collecting system facts.
|
Package gohai is the public SDK for collecting system facts. |
|
gohai/collectors/alibaba
Package alibaba collects Alibaba Cloud ECS instance metadata from the link-local metadata server at http://100.100.100.200/.
|
Package alibaba collects Alibaba Cloud ECS instance metadata from the link-local metadata server at http://100.100.100.200/. |
|
gohai/collectors/azure
Package azure collects Azure instance metadata from the link-local metadata server at http://169.254.169.254/metadata/instance.
|
Package azure collects Azure instance metadata from the link-local metadata server at http://169.254.169.254/metadata/instance. |
|
gohai/collectors/block_device
Package blockdevice reports block device sysfs attributes for each device found under /sys/block.
|
Package blockdevice reports block device sysfs attributes for each device found under /sys/block. |
|
gohai/collectors/command
Package command provides Ohai command/ps parity: runs `ps -ef` and stores its raw output lines.
|
Package command provides Ohai command/ps parity: runs `ps -ef` and stores its raw output lines. |
|
gohai/collectors/cpu
Package cpu collects CPU topology, model, feature flags, cache layout, NUMA layout, and hardware vulnerability mitigation status.
|
Package cpu collects CPU topology, model, feature flags, cache layout, NUMA layout, and hardware vulnerability mitigation status. |
|
gohai/collectors/digital_ocean
Package digital_ocean collects DigitalOcean droplet metadata from the link-local metadata server at http://169.254.169.254/metadata/v1.json.
|
Package digital_ocean collects DigitalOcean droplet metadata from the link-local metadata server at http://169.254.169.254/metadata/v1.json. |
|
gohai/collectors/disk
Package disk collects per-device disk I/O counters (node_exporter-style).
|
Package disk collects per-device disk I/O counters (node_exporter-style). |
|
gohai/collectors/dmi
Package dmi reports SMBIOS / DMI data β BIOS, baseboard, chassis, and product identity.
|
Package dmi reports SMBIOS / DMI data β BIOS, baseboard, chassis, and product identity. |
|
gohai/collectors/docker
Package docker reports Docker server version, containers, and images on the host.
|
Package docker reports Docker server version, containers, and images on the host. |
|
gohai/collectors/ec2
Package ec2 collects AWS EC2 instance metadata from the link-local metadata server at http://169.254.169.254/.
|
Package ec2 collects AWS EC2 instance metadata from the link-local metadata server at http://169.254.169.254/. |
|
gohai/collectors/filesystem
Package filesystem collects filesystems known to the host, both mounted and (on Linux, via lsblk) unmounted.
|
Package filesystem collects filesystems known to the host, both mounted and (on Linux, via lsblk) unmounted. |
|
gohai/collectors/fips
Package fips reports whether the kernel is running in FIPS mode (FIPS 140-2 / 140-3).
|
Package fips reports whether the kernel is running in FIPS mode (FIPS 140-2 / 140-3). |
|
gohai/collectors/gce
Package gce collects instance and project metadata from the Google Compute Engine metadata server (http://metadata.google.internal/).
|
Package gce collects instance and project metadata from the Google Compute Engine metadata server (http://metadata.google.internal/). |
|
gohai/collectors/gpu
Package gpu reports graphics / compute cards present on the host.
|
Package gpu reports graphics / compute cards present on the host. |
|
gohai/collectors/grub2
Package grub2 reads the GRUB2 environment block and reports the key=value pairs it contains.
|
Package grub2 reads the GRUB2 environment block and reports the key=value pairs it contains. |
|
gohai/collectors/hardware
Package hardware collects macOS-specific hardware facts β the identity, memory, and firmware fields surfaced by `system_profiler SPHardwareDataType`, attached storage from `SPStorageDataType`, and battery / AC charger info from `SPPowerDataType`.
|
Package hardware collects macOS-specific hardware facts β the identity, memory, and firmware fields surfaced by `system_profiler SPHardwareDataType`, attached storage from `SPStorageDataType`, and battery / AC charger info from `SPPowerDataType`. |
|
gohai/collectors/hostname
Package hostname collects the short hostname, fully qualified domain name, DNS domain, and friendly machine name.
|
Package hostname collects the short hostname, fully qualified domain name, DNS domain, and friendly machine name. |
|
gohai/collectors/hostnamectl
Package hostnamectl parses `hostnamectl` output on Linux to report static hostname, chassis type, deployment environment, kernel info, and hardware model.
|
Package hostnamectl parses `hostnamectl` output on Linux to report static hostname, chassis type, deployment environment, kernel info, and hardware model. |
|
gohai/collectors/init
Package initd detects the init system a Linux host is using β systemd, upstart, sysvinit, openrc, or runit β by reading /proc/1/comm.
|
Package initd detects the init system a Linux host is using β systemd, upstart, sysvinit, openrc, or runit β by reading /proc/1/comm. |
|
gohai/collectors/interrupts
Package interrupts reports IRQ statistics and per-CPU event counts as found in /proc/interrupts on Linux.
|
Package interrupts reports IRQ statistics and per-CPU event counts as found in /proc/interrupts on Linux. |
|
gohai/collectors/ipc
Package ipc reports Linux IPC subsystem kernel parameters: semaphore limits, message queue limits, and shared memory limits, all read from the /proc/sys/kernel/ sysctl tree.
|
Package ipc reports Linux IPC subsystem kernel parameters: semaphore limits, message queue limits, and shared memory limits, all read from the /proc/sys/kernel/ sysctl tree. |
|
gohai/collectors/kernel
Package kernel reports kernel identity (name, release, version, machine, processor, high-level OS) plus macOS Rosetta 2 translation state.
|
Package kernel reports kernel identity (name, release, version, machine, processor, high-level OS) plus macOS Rosetta 2 translation state. |
|
gohai/collectors/kernel_modules
Package kernelmodules enumerates loaded kernel modules (Linux) / kexts (macOS).
|
Package kernelmodules enumerates loaded kernel modules (Linux) / kexts (macOS). |
|
gohai/collectors/languages
Package languages reports installed programming language runtimes on the host.
|
Package languages reports installed programming language runtimes on the host. |
|
gohai/collectors/libvirt
Package libvirt collects libvirt domain information from a KVM/QEMU host.
|
Package libvirt collects libvirt domain information from a KVM/QEMU host. |
|
gohai/collectors/linode
Package linode detects Linode hosts and reports their public / private IPs.
|
Package linode detects Linode hosts and reports their public / private IPs. |
|
gohai/collectors/livepatch
Package livepatch reports the status of kernel livepatches loaded on a Linux host.
|
Package livepatch reports the status of kernel livepatches loaded on a Linux host. |
|
gohai/collectors/load
Package load collects system load averages (1/5/15-minute).
|
Package load collects system load averages (1/5/15-minute). |
|
gohai/collectors/lsb
Package lsb reports Linux Standard Base identification fields via the `lsb_release` CLI β matches Ohai's linux/lsb plugin.
|
Package lsb reports Linux Standard Base identification fields via the `lsb_release` CLI β matches Ohai's linux/lsb plugin. |
|
gohai/collectors/machine_id
Package machineid reports the host's stable machine identifier.
|
Package machineid reports the host's stable machine identifier. |
|
gohai/collectors/mdadm
Package mdadm reports Linux software RAID arrays discovered via /proc/mdstat and enriched with `mdadm --detail /dev/<device>`.
|
Package mdadm reports Linux software RAID arrays discovered via /proc/mdstat and enriched with `mdadm --detail /dev/<device>`. |
|
gohai/collectors/memory
Package memory reports system memory totals, usage buckets, kernel allocations, page-cache state, and hugepages / DirectMap layout on Linux; on macOS it adds the wired / speculative / compressed buckets that the Darwin VM reports.
|
Package memory reports system memory totals, usage buckets, kernel allocations, page-cache state, and hugepages / DirectMap layout on Linux; on macOS it adds the wired / speculative / compressed buckets that the Darwin VM reports. |
|
gohai/collectors/network
Package network reports network interfaces, structured per-address data (family / prefix / scope / netmask / broadcast), per-interface I/O counters, the routing table, and top-level default interface + gateway facts (v4 + v6).
|
Package network reports network interfaces, structured per-address data (family / prefix / scope / netmask / broadcast), per-interface I/O counters, the routing table, and top-level default interface + gateway facts (v4 + v6). |
|
gohai/collectors/oci
Package oci collects Oracle Cloud Infrastructure instance metadata from the link-local metadata server at http://169.254.169.254/opc/v2.
|
Package oci collects Oracle Cloud Infrastructure instance metadata from the link-local metadata server at http://169.254.169.254/opc/v2. |
|
gohai/collectors/openstack
Package openstack collects OpenStack (Nova) instance metadata from the link-local metadata server at http://169.254.169.254/.
|
Package openstack collects OpenStack (Nova) instance metadata from the link-local metadata server at http://169.254.169.254/. |
|
gohai/collectors/os_release
Package osrelease parses /etc/os-release into typed fields.
|
Package osrelease parses /etc/os-release into typed fields. |
|
gohai/collectors/package_mgr
Package packagemgr detects which package manager the host is configured to use β apt on Debian-family, dnf/yum on RHEL-family, brew on macOS, etc.
|
Package packagemgr detects which package manager the host is configured to use β apt on Debian-family, dnf/yum on RHEL-family, brew on macOS, etc. |
|
gohai/collectors/packages
Package packages reports the list of installed packages on the host.
|
Package packages reports the list of installed packages on the host. |
|
gohai/collectors/pci
Package pci enumerates PCI devices attached to the host.
|
Package pci enumerates PCI devices attached to the host. |
|
gohai/collectors/platform
Package platform reports OS identification β canonical name, version, family, and architecture.
|
Package platform reports OS identification β canonical name, version, family, and architecture. |
|
gohai/collectors/process
Package process collects a snapshot of running processes.
|
Package process collects a snapshot of running processes. |
|
gohai/collectors/root_group
Package rootgroup reports the primary group name for the root user.
|
Package rootgroup reports the primary group name for the root user. |
|
gohai/collectors/rpm
Package rpm reports RPM macro definitions from `rpm --showrc`.
|
Package rpm reports RPM macro definitions from `rpm --showrc`. |
|
gohai/collectors/scaleway
Package scaleway collects Scaleway instance metadata from the link-local metadata server at http://169.254.42.42/.
|
Package scaleway collects Scaleway instance metadata from the link-local metadata server at http://169.254.42.42/. |
|
gohai/collectors/scsi
Package scsi enumerates SCSI devices visible to the host by parsing the output of `lsscsi`.
|
Package scsi enumerates SCSI devices visible to the host by parsing the output of `lsscsi`. |
|
gohai/collectors/selinux
Package selinux reports SELinux status, mode, and policy information.
|
Package selinux reports SELinux status, mode, and policy information. |
|
gohai/collectors/services
Package services reports systemd service states on Linux.
|
Package services reports systemd service states on Linux. |
|
gohai/collectors/sessions
Package sessions reports currently logged-in user sessions.
|
Package sessions reports currently logged-in user sessions. |
|
gohai/collectors/shard
Package shard derives a deterministic shard seed from stable host identity.
|
Package shard derives a deterministic shard seed from stable host identity. |
|
gohai/collectors/shells
Package shells reports the list of valid login shells installed on the host (contents of /etc/shells).
|
Package shells reports the list of valid login shells installed on the host (contents of /etc/shells). |
|
gohai/collectors/ssh
Package ssh collects SSH host key fingerprints from /etc/ssh/.
|
Package ssh collects SSH host key fingerprints from /etc/ssh/. |
|
gohai/collectors/sysconf
Package sysconf reports POSIX sysconf(3) values for clock tick rate, page size, and processor counts.
|
Package sysconf reports POSIX sysconf(3) values for clock tick rate, page size, and processor counts. |
|
gohai/collectors/sysctl
Package sysctl collects kernel parameters by running `sysctl -a`.
|
Package sysctl collects kernel parameters by running `sysctl -a`. |
|
gohai/collectors/systemd_paths
Package systemdpaths reports standard systemd directory paths by running `systemd-path` and parsing its "name: /path" output.
|
Package systemdpaths reports standard systemd directory paths by running `systemd-path` and parsing its "name: /path" output. |
|
gohai/collectors/tc
Package tc reports Linux traffic control (qdisc) configuration via `tc -s qdisc show`.
|
Package tc reports Linux traffic control (qdisc) configuration via `tc -s qdisc show`. |
|
gohai/collectors/timezone
Package timezone collects the system timezone (IANA name, short abbreviation, and offset from UTC).
|
Package timezone collects the system timezone (IANA name, short abbreviation, and offset from UTC). |
|
gohai/collectors/uptime
Package uptime collects system uptime, boot time, and (on Linux) aggregate CPU idle time.
|
Package uptime collects system uptime, boot time, and (on Linux) aggregate CPU idle time. |
|
gohai/collectors/users
Package users enumerates system user and group accounts from /etc/passwd and /etc/group, plus the effective current user.
|
Package users enumerates system user and group accounts from /etc/passwd and /etc/group, plus the effective current user. |
|
gohai/collectors/virtualbox
Package virtualbox collects VirtualBox guest additions data from a guest VM.
|
Package virtualbox collects VirtualBox guest additions data from a guest VM. |
|
gohai/collectors/virtualization
Package virtualization detects every hypervisor and container runtime the host participates in β as guest, host, or both.
|
Package virtualization detects every hypervisor and container runtime the host participates in β as guest, host, or both. |
|
gohai/collectors/vmware
Package vmware collects VMware Tools data from a VMware guest VM.
|
Package vmware collects VMware Tools data from a VMware guest VM. |
|
gohai/collectors/zpools
Package zpools reports ZFS pool status by running `zpool list -H -o name,size,alloc,free,health,altroot`.
|
Package zpools reports ZFS pool status by running `zpool list -H -o name,size,alloc,free,health,altroot`. |
|
gohai/ocsf
Package ocsf provides OCSF-shaped output for gohai's system facts.
|
Package ocsf provides OCSF-shaped output for gohai's system facts. |
|
Package schemas embeds the generated JSON Schema for gohai.Facts.
|
Package schemas embeds the generated JSON Schema for gohai.Facts. |
|
gen
command
Package main generates schemas/gohai.schema.json from gohai.Facts.
|
Package main generates schemas/gohai.schema.json from gohai.Facts. |
Click to show internal directories.
Click to hide internal directories.