kipitiny

Monitoring

Service health, uptime checks from outside, email, notifications and the events they carry.

Markdown for LLMs

kipitiny watches services in two ways: from inside (are the containers running and healthy?) and from outside (does the domain answer?). Both, and every deploy, backup or update, can be sent to a notification channel.

Service health

A deployed app is healthy when a replica of its current deployment runs and passes its healthcheck (the image's, the compose healthcheck, or the probe kipitiny injects; see Deploys). A service with no healthy replica for 2 minutes is reported (service.unhealthy), and again when it recovers (service.healthy): a restart or a slow start pages no one.

The reconciler restarts crashed replicas on its own; each restart is an event too (service.restarted).

Resource alerts

kipitiny samples the CPU, memory and network of every running service every 10 seconds (the charts on its page), and the disk of every server. It sends an event when one runs out of room:

  • Out of memory (service.oom_killed): the kernel killed a process of a replica because it went past its memory limit, or the server ran out of memory. Sent at once, then at most once per 15 minutes for the same service.
  • Memory high (service.memory_high): a service uses 90% of its memory limit for 5 minutes. A service without a limit is measured against the server's RAM. service.memory_ok follows once it stays below for a minute.
  • CPU high (service.cpu_high): a service uses 90% of its CPU limit (the server's cores when it has none) for 10 minutes, then service.cpu_ok after a minute below.
  • Disk low (server.disk_low): less than 10% free for a minute on the filesystem holding a server's Docker data (images, containers, volumes), then server.disk_ok once there is more again. Clean up in System › Cleanup or grow the disk.

The thresholds apply to every service and server; change them in Settings › Notifications › Resource alerts. Limits are set per service in the compose file (mem_limit, cpus; see Compose). Like service health, the alert state is kept in memory: after a manager restart an ongoing problem is reported again.

Logs

A service's Logs tab follows the output of its running replicas, merged in time order (the last 200 lines first, then live; up to 2000 kept on the page).

  • Lines are coloured by level, read from the common formats: JSON ("level"), logfmt (level=), ERROR/WARN/INFO words, nginx [error], PostgreSQL ERROR:/LOG:, Redis and klog prefixes, and access-log statuses (5xx as errors, 4xx as warnings). The indented lines of a stack trace take the level of the line above. The app's own ANSI colours are kept.
  • Filter by text, minimum level or replica; the error and warning counts filter to them in one click.
  • Pause freezes the view while new lines keep arriving; wrap, a download of the lines shown, and clear complete the toolbar.

Deployment logs (on Deployments) are coloured the same way, with failures and successes highlighted.

Uptime checks

An uptime check requests an app's public URL, https://<domain><path>, on a schedule, the way a visitor would: through DNS, TLS and Traefik. It catches what container health can't, such as an expired certificate, a wrong DNS record or a blocked port. Set it on the app's Overview (apps with a domain only), or in the compose file as x-kipitiny.uptime; a project synced from git can only set it there.

  • Path (default /), interval 30 s to 1 h (default 60 s), timeout 1 to 60 s (default 10 s, shorter than the interval).
  • Expected status: a given HTTP status, or by default anything below 400.
  • The service is down after 3 failed checks in a row, and up again after 2 successful ones, so one slow answer doesn't flood the channels (uptime.down, uptime.up).
  • The last 60 results are shown with their response time; hourly availability is kept for 30 days. Both survive manager restarts and updates.
  • A check pauses while the service is stopped or not deployed yet.

Email

Settings › Email sets the SMTP servers kipitiny sends email through, its email providers: your provider's relay (Amazon SES, Postmark, Resend, Gmail, Office 365…), not a mail server of its own. Saving checks that kipitiny can connect and sign in; Send a test mails an address you type.

Add as many as you need, each with a name: invites can go out through one sender and alerts through another, or each team's channel through its own account.

  • Invites go through the provider tagged Invites; another becomes it with Send invites through it. With a single provider, that's the one.
  • Each email notification channel picks its provider in Send through. A provider can't be removed while a channel sends through it.

Add a provider by picking its service first:

  • Resend: only an API key and a sender. kipitiny fills in its relay (smtp.resend.com, TLS on port 465, user resend), and How do I set up Resend? walks through verifying the sender's domain and creating a key with Sending access.
  • Other SMTP server: any provider's host, port, security and credentials.

For another server:

  • Security: STARTTLS (port 587), TLS (port 465), or none, for a relay on the same host or network only. Signing in needs TLS or STARTTLS, so the password never travels in clear text.
  • Sender: an address your provider lets you send from, with an optional name (kipitiny <ops@example.com>). If test emails land in spam, set up SPF and DKIM for its domain at your provider.

The password is stored in the manager's database like other integration credentials and is never shown again.

Notifications

Settings › Notifications sends events to channels. A channel is either:

  • a Discord webhook (https://discord.com/api/webhooks/…);
  • Email to one or more recipients (comma-separated), through one of the providers set in Email. Subjects start with [kipitiny];
  • Push notifications to admins' browsers and phones (see below).

Each channel picks its events (by default problems and recoveries, restores and new versions, but not routine successes), and Test sends a sample message. A message links back to the page in kipitiny. A problem that repeats, such as a crash-looping service, is sent at most once per 15 minutes.

EventWhen
deploy.succeeded, deploy.failedA deployment ends.
service.unhealthy, service.healthyNo healthy replica for 2 minutes, then recovered.
service.restartedThe reconciler restarted a service's container stopped outside kipitiny.
uptime.down, uptime.upAn uptime check failed 3 times in a row, then passed twice.
error.new, error.regressionAn app with error tracking reported a new error, or a resolved one again.
error.spikeAn app's deploy raised errors well above the release before (details).
service.oom_killedA replica was killed for using too much memory.
service.memory_high, service.memory_okA service's memory stayed over its threshold, then went back below.
service.cpu_high, service.cpu_okA service's CPU stayed over its threshold, then went back below.
server.disk_low, server.disk_okA server's Docker disk has less free space than its threshold, then more again.
server.updates_pending, server.reboot_requiredA server's security check finds new security updates, or that a reboot is needed.
job.succeeded, job.failedA scheduled job run ends; failed when it exits non-zero or times out.
backup.succeeded, backup.failedA backup ends (manual or scheduled).
verify.succeeded, verify.failedA backup's restore test ends.
restore.succeeded, restore.failedA restore ends.
git.sync.succeeded, git.sync.failedA git sync changed something, or failed.
cleanup.failedThe scheduled cleanup had errors.
update.availableA new kipitiny version is published (once per version).

Push notifications

A push channel shows its events as notifications on every device where an admin turned them on, like an app's, even with the manager closed. Members get none, since events are about every project.

  1. In Settings › Notifications, add a Push channel and pick its events.
  2. On each device, open Account › Push notifications, choose Turn on for this device and allow notifications when the browser asks.

Push needs the manager over HTTPS (or at localhost). On iPhone and iPad (iOS 16.4 or later), first install the manager on the home screen, open it from there, then turn push on.

Messages go through the browser's push service (Google for Chrome, Mozilla, Apple, Microsoft), so the manager must reach the internet. They are encrypted for the device: the push service sees only when a message is sent and its size. A device that turns notifications off is forgotten on the next message; Account lists your devices and removes any of them.

The AI agents connected through MCP see the same state with get_app_status (containers, health, usage, uptime results) and get_deployment_log.