ccfos/nightingale
Self-hosted Go alerting control plane for metrics, logs, and SQL, with an AI agent
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Nightingale is a Go alerting control plane for existing observability stores. It queries configured sources, evaluates rule conditions, processes resulting events, and routes notifications; telemetry can stay in its original stores. The source tree separates alerting, data-source access, the web front end, and the agent into alert/, datasource/, front/, and aiagent/. The manifest specifies Go 1.25.0 and includes MetricsQL, ClickHouse Go v2, and the Elasticsearch v8 client. Rules can be distributed across alert engines, with n9e-edge available for evaluation near remote sources.
The built-in web agent calls Nightingale tools across multiple steps without being a dependency of alert evaluation. Bundled or custom Skills supply procedures, references, and scripts; Skills can also be imported from Git. External clients can call tools at /mcp over Streamable HTTP under the caller’s API permissions, with reads exposed by default and writes explicitly enabled. A2A delegates a task to the built-in agent rather than exposing individual tools; the manifest includes a2a-go/v2.
Key Capabilities & Differentiators
Nightingale evaluates PromQL, log queries, and SQL against sources such as Prometheus, VictoriaMetrics, Elasticsearch, Loki, and ClickHouse. A rule can target multiple instances of the same source type. Business groups and team permissions define ownership, while OIDC, OAuth2, LDAP, and CAS cover sign-in integrations. Conditional event pipelines can enrich or rewrite labels, apply mutes, and route notifications; evaluation records, event history, and delivery results help distinguish a rule that never fired from a notification that failed to arrive.
Native destinations include Slack, PagerDuty, Flashduty, Jira, Teams, and others; webhooks and scripts handle custom destinations. Ibex is a separate integration for predefined remediation scripts. The built-in agent can correlate metrics and logs, inspect evaluation and delivery records, generate PromQL or SQL, and author alerting configuration. Updates to existing rules and dashboards present proposed changes for confirmation. Model endpoints can use OpenAI-compatible APIs, Claude, Gemini, or compatible self-hosted models.
Trade-offs & Limitations
Compared with keeping Prometheus rules and Alertmanager routing as-is, Nightingale is most useful when separate teams need a common workflow for metrics, logs, and SQL. It can import Prometheus rule YAML, including expressions, durations, labels, and annotations, but it does not fully convert alertmanager.yml. Rebuild routing and verify outcomes in parallel before switching notification delivery. Grafana can remain the visualization layer, and PagerDuty or Flashduty can continue handling schedules and escalation; Nightingale concentrates on evaluation, event processing, and routing.
Centralization adds a service and metadata infrastructure to operate, and it does not remove query load from the source systems. JSON exports and the HTTP API enable external version control, but built-in rule revision history and rollback are absent. The agent is optional; when enabled, it sends prompts and the data it uses to the configured model endpoint. A self-hosted application therefore does not, by itself, keep AI data local. Keep agent access scoped to the permissions and model endpoints your organization is prepared to trust.
Hardware & Deployment Guide
The docker/compose-bridge stack requires Git and Docker Compose for the documented checkout-based evaluation path. It starts Nightingale, MySQL, Redis, VictoriaMetrics, and Categraf, with the UI on local port 17000. It uses example credentials and exposes service ports, so do not publish it unchanged. Linux release binaries cover amd64 and arm64, with etc/config.toml as the configuration reference; Kubernetes deployment is available through Helm. For production, pin a release, configure TLS and credentials, restrict network access, back up the metadata database, and monitor evaluation and notification failures.
Multiple instances share a metadata database and Redis and should use external time-series storage; the embedded TSDB is local to a single instance. Size for rule count, evaluation frequency, and source query cost, and treat optional model inference as a separate workload. For MCP clients, verify token authentication in the deployed configuration, since some Compose examples disable it. Recent releases add mixed-source dashboard panels in v9.2.0, more native destinations such as Teams and Twilio in v9.3.0, and monthly recurring mutes and Bark notifications in v9.4.0.
Platform and SRE teams that want shared ownership, routing, and traceability across existing metrics, log, and SQL stores without moving telemetry.
A single-source Prometheus and Alertmanager setup already meets your needs, or you need self-contained on-call scheduling and built-in rule rollback.
Quick Start & Installation
git clone https://github.com/ccfos/nightingale.git cd nightingale/docker/compose-bridge docker compose up -d
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| nightingale ★ | 13.5k | +25 | Go | Apache-2.0 | Self-hosted Go alerting control plane for metrics, logs, and SQL, with an AI age |
| pentagi | 35.7k | +509 | Go | MIT | Self-hosted multi-agent penetration testing with logs and reports for human revi |
| sealos | 18.4k | +14 | Go | — | A Kubernetes-backed desktop Ops Agent for deploying and running full-stack apps |
| multica | 59.2k | +967 | Go | — | A shared task board that dispatches coding agents to machines you control. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ccfos/nightingale.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about nightingale
How do the built-in agent, MCP, and A2A fit together?
/mcp over Streamable HTTP with a Nightingale token; the server applies the caller’s API permissions, exposes read tools by default, and requires explicit configuration for write tools. A2A is the separate path for delegating tasks to the built-in agent.Does Nightingale need a GPU, and what should I size first?
Can we self-host Nightingale commercially and keep AI data in our network?
When is it worth adopting alongside or instead of Prometheus and Alertmanager?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy