watchlog
Health Uyari
- License — License: AGPL-3.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Basarisiz
- rm -rf — Recursive force deletion command in .github/workflows/ci.yml
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Open-source monitoring for Kubernetes, Docker and Linux servers. One agent finds your databases, queues and web servers, says in one sentence why something broke, and alerts from day one. Self-hosted or Cloud.
WatchLog
Open-source monitoring for Kubernetes, Docker and Linux servers. Install one agent and see every node, pod, container, systemd service and process, and the network between them, in about five minutes. No PromQL, no dashboards to build.
Website · Live demo · Docs · Install guide · Changelog · Blog

What you get
- One install. A Helm chart for Kubernetes, or one command per Linux server (a deb, an rpm or
docker runwork too). - Ready-made views. Cluster overview, nodes, workloads, pods with restart and OOM reasons, events; and on Linux servers, every systemd service, process group and container (Linux servers). Press ⌘K to jump to any of them by name.
- Why it broke. Every alert and problem gets its probable cause in one sentence, with the evidence behind it: "web fails because api was scaled to 0: nothing answers its calls." Twelve fixed rules over what WatchLog already collects, across the service map, on Kubernetes and Linux servers; the same line in Slack, Telegram and email. No AI in the product, no scores; see probable cause.
- A service map without code changes. eBPF shows who connects to whom, failed connections, connect latency, bytes and DNS errors. External services are named by DNS.
- Your databases, caches, queues and web servers. Redis, PostgreSQL, MySQL and MariaDB, MongoDB, Nginx, Traefik, RabbitMQ and Kafka are found by themselves; press Monitor for their own page, the reasons behind a problem (the session holding a row lock, the consumer group that lost its members, the upstream sending 5xx) and default alerts. Read-only access, and HTTP stats from eBPF with nothing to set up.
- Certificates and scheduled jobs. Every TLS certificate your ports, Services and Ingress hosts present, with an alert 14 days before it expires; every systemd timer, cron job and Kubernetes CronJob, with an alert when one fails, misses a run or runs far longer than usual. Found by themselves; a cron job's command line never leaves the server (certificates and scheduled jobs).
- Your own metrics, on dashboards you build. Send the numbers your apps and exporters report (a Prometheus
/metricsendpoint, Prometheus remote write, or one HTTP call): orders, failed payments, queue depth, the last good backup. Each sits on the workload or server it belongs to; put them on dashboards made of widgets, pin them, alert on them, and tell WatchLog about your deploys from CI. No query language (Your metrics). - Logs when you need them, and sizes that fit. A container's last lines on its page, streamed and never stored (logs on demand). Requests and limits compared with what each container really uses, in plain sentences (right-sizing).
- Alerts that work on day one. Crash loops, OOM kills, node pressure, failing connections and more, sent to Slack, Telegram, email or webhooks.
- A small, read-only agent. Under 64 MB of memory and 1 % of a core. It never reads Secrets, ConfigMaps, environment values or payloads; see what it can access.
- For your team. Owners, Admins and Viewers, invited by email; an MCP server and a REST API for your AI assistant and scripts, read-only.
- Self-hosted and free, for as many Kubernetes clusters, Server fleets, nodes and servers as you run, under AGPL-3.0.


Look around yourself in the live demo: read-only, no sign-up.
Install in five minutes
Kubernetes
helm install watchlog oci://ghcr.io/watchlog-light/charts/watchlog --version 1.7.3 \
--namespace watchlog --create-namespace
kubectl -n watchlog port-forward svc/watchlog-web 8080
Open http://localhost:8080 and enter the setup code from kubectl -n watchlog logs deploy/watchlog-backend -c backend | grep "setup code". The cluster appears within a minute.
Linux servers, with Docker Compose
mkdir watchlog && cd watchlog
curl -fsSLO https://raw.githubusercontent.com/watchlog-light/watchlog/v1.7.3/deploy/docker/compose.yaml
curl -fsSL -o .env https://raw.githubusercontent.com/watchlog-light/watchlog/v1.7.3/deploy/docker/.env.example
# set WATCHLOG_DB_PASSWORD, WATCHLOG_SECRET_KEY (openssl rand -base64 32), WATCHLOG_PUBLIC_URL in .env
docker compose up -d && docker compose logs backend | grep "setup code"
Then add your servers from Settings → Clusters → Add cluster → Servers: it shows the command to run on each one.
The install guide covers requirements, PodSecurity, more clusters, upgrades (never with manual steps) and uninstalling.
Documentation
- Install · Configuration · WatchLog Cloud (beta) · Security: what the agent can access · FAQ
- Probable cause · Container logs on demand · Right-sizing hints · Certificates and scheduled jobs · Your metrics and dashboards · Egress watch · What changed (Pro) · All clusters and fleets (Pro) · Alerts and notifications · Ask your cluster (MCP) · REST API
- Applications: Redis · PostgreSQL · MySQL and MariaDB · MongoDB · Nginx · Traefik · RabbitMQ · Kafka
- Specification and architecture decisions
- Contributing · Security policy · Code of conduct
Repository layout
| Path | What |
|---|---|
agent/ |
Go agent (node, cluster and Docker modes) and eBPF code |
backend/ |
Node.js 24 + TypeScript + Fastify API and alert worker |
web/ |
Vue 3 + Vite dashboard |
packages/design-tokens/ |
Colour tokens, Tailwind theme, logo |
packages/api-types/ |
API types shared with the dashboard |
ee/ |
Enterprise modules (commercial licence) |
deploy/ |
Docker Compose files, Helm charts and end-to-end tests |
docs/ |
Spec, decisions, security, user docs and release notes |
Development
Prerequisites: Node.js 24 (.nvmrc), corepack (corepack enable provides the pinned pnpm), Go 1.27, Docker, GNU Make.
pnpm i # install JS dependencies
pnpm infra:up # PostgreSQL 16, VictoriaMetrics, Redis 7 (waits until healthy)
pnpm dev # backend (watch) on :4080 and dashboard on http://localhost:4088
make agent # build the agent into bin/ and print its version
pnpm dev applies database migrations first, so run pnpm infra:up before it. On a fresh database the backend prints a one-time setup code in its log; open http://localhost:4088, enter the code and create the admin account. For headless installs, set WATCHLOG_ADMIN_EMAIL and WATCHLOG_ADMIN_PASSWORD instead.
| Service | Local address |
|---|---|
| Dashboard (Vite) | http://localhost:4088 (WATCHLOG_WEB_PORT) |
| Backend API | http://127.0.0.1:4080/api/v1/health |
| PostgreSQL | postgres://watchlog:[email protected]:54320/watchlog |
| VictoriaMetrics | http://127.0.0.1:8428 |
| Redis | redis://127.0.0.1:63790 |
Infrastructure host ports can be changed with WATCHLOG_PG_PORT, WATCHLOG_VM_PORT and WATCHLOG_REDIS_PORT.
Demo environment
Real data for the dev stack: one Lima VM with a kind cluster (kind-demo: the demo app in namespace shop, failing pods in wl-test) and a Docker host (containers that are unhealthy, exited, OOM-killed, crash-looping and CPU-limited, plus a small Compose app). Their agents are built from your checkout and report to pnpm dev.
mkdir -p ~/.config/watchlog && touch ~/.config/watchlog/demo.env && chmod 600 ~/.config/watchlog/demo.env
# In ~/.config/watchlog/demo.env, tokens from Settings → Clusters (a Kubernetes cluster and a Docker fleet):
# WATCHLOG_DEMO_KUBE_TOKEN=wl_ct_…
# WATCHLOG_DEMO_DOCKER_TOKEN=wl_ct_…
pnpm dev # in another terminal
deploy/test/demo-up.sh # creates or updates the VM watchlog-demo; run it again any time
deploy/test/demo-down.sh # removes the demo (add --vm to delete the VM too)
VM=<name> uses another Lima VM. Once installed, the agents keep their tokens, so the file can be removed. GOPROXY works as for make images.
Checks
pnpm lint # ESLint + type checks for all TS packages
pnpm test # Vitest in every package (backend tests need `pnpm infra:up`)
pnpm api-types:generate # regenerate packages/api-types after changing a route schema
pnpm format:check # Prettier
pnpm check:license # SPDX headers
make agent-lint agent-test
make images # build agent, backend and web images locally (never pushed)
bash deploy/test/helm/upgrade-test.sh # upgrades from older chart values
bash deploy/test/k8s/e2e.sh # kind cluster: helm install and the acceptance checks
bash deploy/test/k8s/isolation-test.sh # kind nodes as limited containers: nothing of the host leaks
Host isolation (ADR-121): deploy/test/k8s/isolation-test.sh runs where Docker, kind, kubectl, helm and
python3 are, e.g. in a Lima VM (limactl shell <vm> bash deploy/test/k8s/isolation-test.sh). It limits the kind
node containers to 2 CPUs and 3 GiB, installs the watchlog chart with nodeMetricsScope=cgroup, makes TCP
connections and DNS lookups from the VM and from a plain Docker container, and checks through the API that none
of them appears, that the agents' pod filter counts them, that the demo app's edges are there, and that node
capacity, disks, interfaces and boot time are the node containers' own. KEEP=1 keeps the cluster; it honoursGOPROXY and BACKEND_RUNTIME_IMAGE like e2e.sh.
Phones and tablets (ADR-120): with pnpm dev and the demo running, pnpm -C web test:responsive opens every dashboard route in Google Chrome at 360, 390, 768, 1024 and 1280 px. It fails on horizontal page scroll, text under 12 px or touch targets under 44 px, and saves screenshots at phone and tablet size to web/e2e/screenshots/. Sign in with WATCHLOG_E2E_EMAIL and WATCHLOG_E2E_PASSWORD; WATCHLOG_E2E_ONLY=overview,nodes and WATCHLOG_E2E_WIDTHS=390 narrow a run.
The agent image is built FROM scratch (ADR-020). If gcr.io is unreachable from your network, override the backend's distroless runtime image:make images BACKEND_RUNTIME_IMAGE=node:24-bookworm-slim.
If proxy.golang.org is blocked, fetch the agent's Go modules through another proxy:GOPROXY=https://goproxy.io,direct make images (the e2e script deploy/test/k8s/e2e.sh honours GOPROXY too).
CI keeps Go's default proxy. The eBPF objects are committed; regenerate them with make bpf after changing agent/internal/ebpf/bpf/
(DEBIAN_MIRROR=https://cdn-aws.deb.debian.org if deb.debian.org is unreachable for the builder's apt).
License
Everything outside ee/ is licensed under the GNU Affero General Public License v3.0 only. The eBPF programs in agent/internal/ebpf/bpf/ are dual-licensed GPL-2.0-only OR MIT, as the kernel requires a GPL-compatible licence. Code in ee/ is under a separate commercial licence. Contributors sign the CLA.
The WatchLog name and logo are trademarks and aren't covered by these licences. Forks you distribute need their own name and logo; saying "works with WatchLog" or "based on WatchLog" is fine. See TRADEMARKS.md.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi