# Repository Briefing: ccfos/nightingale
> Source: https://repoforai.com/repo/ccfos/nightingale (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ccfos/nightingale
- **Official Docs / Website**: https://n9e.io
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Go
- **License**: Apache-2.0
- **Engineering Health**: A+ (97/100 · Maintenance 35/35 · Adoption 22/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v9.4.0 (2026-11-27) — https://github.com/ccfos/nightingale/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, Docker, Self-Hosted, API
- **Momentum**: 13,545 ★ total (+2 24h / +25 7d) · 1,809 forks
- **Topics**: `aiops`, `alerting`, `alertmanager`, `clickhouse`, `golang`, `logs`, `loki`, `mcp-server`, `metrics`, `monitoring`, `nightingale`, `observability`
- **When to Use**: Best for: Platform and SRE teams that want shared ownership, routing, and traceability across existing metrics, log, and SQL stores without moving telemetry. Skip if: A single-source Prometheus and Alertmanager setup already meets your needs, or you need self-contained on-call scheduling and built-in rule rollback.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Cross-source evaluation: Define alerts with PromQL, log queries, or SQL and reuse rules across instances of the same source type.
- Alert traceability: Follow evaluation queries and results through active or historical events to notification delivery records.
- Ownership and automation: Business groups and team permissions define responsibility; JSON exports and the HTTP API support external CI workflows.
- Agent controls: Updates to existing rules and dashboards present proposed changes for confirmation; MCP write tools are opt-in.
- Distributed evaluation: Distribute rules across alert engines and run n9e-edge near remote data sources.
- Release progression: v9.2.0 supports mixed data sources within a dashboard panel; v9.4.0 adds monthly recurring mutes, including last-day scheduling.
```

## Quick Start / Clone
```bash
git clone https://github.com/ccfos/nightingale.git
cd nightingale/docker/compose-bridge
docker compose up -d
```
