feat: Rewrite monitoring dashboards + fix Nix modules #42
No reviewers
Labels
No labels
backlog
bug
enhancement
in-progress
review
todo
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ymrtech/nix-config!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/monitoring-dashboards"
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
Complete overhaul of the monitoring stack: 9 rewritten Grafana dashboards with 90 panels, plus 6 Nix module fixes.
Dashboard Changes
New Dashboard:
Rewritten Dashboards:
Total: 90 panels across 9 dashboards
All dashboards use verified LogsQL/PromQL expressions, correct queryType fields (stats/statsRange/logs), and proper datasource UIDs.
Nix Module Fixes
/etc/audit/rules.d/tosecurity.audit.rulesservices.monitoring-serverprefixValidation
All configurations evaluate successfully (giga, command, mail).
Deployment Notes
After merge and deploy:
sudo systemctl restart grafana- vpn: Add externalLabels = { instance = "vpn"; } so metrics are properly labeled - mail: Add services.monitoring-agent to send metrics and logs to central server This ensures all hosts (except command) send monitoring data to public.ymrAdd externalLabels = { instance = "mail"; } to ensure metrics from mail host are properly labeled in VictoriaMetrics instead of showing as localhost.Break every panel down by host so baselines don't mix across machines: - Z-score stats (CPU/mem/disk) compute per instance, not pooled avg() - Add host template variable (All/giga/public/vpn/mail) via {instance=~"$host"} - VL error panels group by _HOSTNAME - Legends identify instance/host; no more phantom baselines - Fix PromQL selector placement (matchers on metric, not expression tail)81132f7167to64bfd0bd79