Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Monitoring Options

This module is provided by nixfleet-scopes. It is documented here as part of the NixFleet ecosystem reference.

All options under nixfleet.monitoring.nodeExporter. The module is auto-included by mkHost and disabled by default. Enable with nixfleet.monitoring.nodeExporter.enable = true.

Options

OptionTypeDefaultDescription
nodeExporter.enableboolfalseEnable Prometheus node exporter with fleet-tuned defaults.
nodeExporter.portport9100Port for node exporter metrics endpoint.
nodeExporter.openFirewallboolfalseOpen the node exporter port in the firewall.
nodeExporter.enabledCollectorslistOf str(see below)Collectors to enable. Fleet repos can override.
nodeExporter.disabledCollectorslistOf str(see below)Collectors to disable.

Default enabled collectors

CollectorMetrics
systemdSystemd unit state and timing
filesystemDisk usage per mountpoint
cpuCPU utilization
meminfoMemory usage
netdevNetwork interface statistics
diskstatsDisk I/O statistics
loadavgSystem load averages
pressureLinux PSI (pressure stall information)
timeSystem time and NTP sync status

Default disabled collectors

CollectorReason
textfileRequires external file management - opt-in per host
wifiIrrelevant on servers
infinibandNot used in typical fleets
nfsNot used in typical fleets
zfsFramework uses btrfs

Systemd service

The scope delegates to NixOS’s services.prometheus.exporters.node module. The resulting service is prometheus-node-exporter.service.

Example

nixfleet.monitoring.nodeExporter = {
  enable = true;
  port = 9100;
  openFirewall = true;  # allow Prometheus scrape from monitoring host
};

To add a collector not in the default set:

nixfleet.monitoring.nodeExporter.enabledCollectors =
  config.nixfleet.monitoring.nodeExporter.enabledCollectors ++ ["textfile"];

Fleet repos that use a Prometheus stack typically scrape all hosts on port 9100. Pair with a firewall rule on the monitoring host to restrict access to the scrape network.