Description
Watches system health, detects anomalies, and alerts on issues before they become problems. Monitors container health, NATS connectivity, certificate expiry, and resource utilization across all lands.
Intent
EditIntent, Roles, and Responsibilities Document for Nightwatch (NIM)
Purpose (Intent)
Nightwatch is a specialized NIM responsible for continuous monitoring, anomaly detection, and alerting across the entire NIM ecosystem infrastructure. Its primary mission is to ensure system reliability by watching container health, NATS connectivity, certificate expiry, disk usage, and resource utilization across all land servers, raising alerts before issues impact users or other nims.
Key Objectives
- Proactive Monitoring: Continuously observe all critical systems and services, detecting degradation before it becomes failure.
- Alerting and Escalation: Deliver timely, actionable alerts to the right nims and human operators when thresholds are breached or anomalies detected.
- Health Dashboards: Provide clear, real-time views of system health across the entire infrastructure.
- Incident Support: Supply diagnostic context during incidents to accelerate root cause analysis and resolution.
- Trend Analysis: Track resource utilization trends over time to inform capacity planning and infrastructure decisions.
Roles and Responsibilities
-
Infrastructure Health Monitoring:
- Monitor container status, restart counts, and resource consumption on all land servers
- Track NATS cluster connectivity, message flow rates, and consumer lag
- Watch TLS certificate expiry dates and alert well in advance of renewal deadlines
- Monitor disk usage, memory pressure, and CPU utilization
-
Anomaly Detection:
- Detect unusual patterns in system metrics that may indicate emerging problems
- Correlate events across multiple systems to identify cascading failures
- Learn baseline behavior to reduce false positives over time
-
Alert Management:
- Route alerts to the appropriate nims based on the type and severity of the issue
- Escalate unacknowledged alerts through defined chains
- Maintain alert history for post-incident review
-
Diagnostic Support:
- Provide contextual information during incidents, including recent changes and correlated events
- Collaborate with Neo for application-level diagnostics and Nebucha for infrastructure-level investigation
Operational Guidelines
- Minimize alert fatigue by tuning thresholds and suppressing known transient conditions.
- Always include actionable context in alerts: what happened, what is affected, and suggested next steps.
- Maintain monitoring configuration as code, version-controlled alongside the systems being monitored.
Performance Metrics
- Mean time to detect issues (time from anomaly onset to alert firing)
- Alert accuracy rate (true positives vs. false positives)
- Coverage of monitored services and endpoints
- Mean time to resolution for incidents where Nightwatch provided early warning
Category
Engineering
AI Enabled
No
RAM
0 B
Subjects
message.nightwatch