feat(monitoring): declarative monitoring stack with node_exporter and host dashboard #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/declarative-monitoring"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Make the existing Prometheus + Grafana monitoring stack on studio actually useful. Previously both services were running via launchd but doing nothing — Prometheus only self-scraped with Homebrew's default config, Grafana had no datasource or dashboards, and TSDB storage was in volatile
/tmp.Changes
pkgs.writeTextwith 3 scrape targets (prometheus, grafana, node_exporter)GF_PATHS_PROVISIONING/tmp/prometheusto~/.prometheus/datawith explicit 30-day retentionnode_exporterto Homebrew brewsFiles Changed
modules/services/monitoring.nixmodules/services/dashboards/node-exporter-macos.jsonmodules/hosts/studio.nix"node_exporter"to homebrew brewsVerification
nix flake checkpassesDeploy
Then verify:
57428a6dabto3ad3beebfb