summaryrefslogtreecommitdiff
path: root/internal/cli/cmd_daemon.go
AgeCommit message (Collapse)Author
2026-04-16Add /metrics Prometheus endpoint to daemon modePaul Buetow
Exposes a gauge per host tracking the Unix timestamp of the last records file update. Excluded hosts (from the excluded_host table) are labeled excluded="true" so alerting rules can filter them out. Uses manual Prometheus text format to avoid adding a new dependency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14refactor(cli): split run* handlers into files (ask 24)Paul Buetow
Move runImport, runQuery, runReportFromFiles, runDaemon, runCreateClientKey, and runTests into dedicated cmd_*.go files. Keep Execute routing in cli.go. defaultListenFromEnv stays with daemon. Made-with: Cursor