Ghost is a single Node process in front of MySQL, with images on disk and, for most publications, paying members and a newsletter attached. It rarely falls over, which is how a self-hosted Ghost ends up with no monitoring at all, or with one check on an endpoint that would stay green if the database were unplugged.

This guide sets up external monitoring for a self-hosted Ghost site (version 6, the current major; nearly all of it applies to 5.x). Endpoint behaviour was checked against Ghost's source and documentation, not a guess at what a route probably does. The status-code monitors run on CronAlert's free plan; keyword assertions and heartbeats are Pro ($5/month) and are marked. Examples use blog.example.com.

What Ghost exposes

RouteAuthReturnsWhat it proves
GET /ghost/api/admin/site/none200 JSON: title, url, version, …Node process and proxy. Not the database
GET /ghost/api/content/posts/?key=…&limit=1Content API key200 JSON with posts and meta; 401 on an unknown keyMySQL: key lookup plus a posts query
GET /noneThe rendered homepageTheme rendering and the content layer
GET /rss/, /sitemap.xmlnoneXMLFeed readers and crawlers can still fetch
GET /members/api/member/none204 when logged outThe members app is mounted and routed
GET /ghost/none200, the admin app's HTML shellAlmost nothing: a static file
any route during boot503, "We'll be right back."Ghost is starting or migrating

Ghost listens on port 2368 by default and expects a reverse proxy in front for TLS. Monitor the public hostname, so that every check also covers DNS, the certificate, and the proxy.

Step 1: the endpoint that checks nothing (and why to keep it anyway)

Ghost has no /health route. The route that gets used in its place is /ghost/api/admin/site/: it is registered as a public Admin API endpoint, needs no login, and returns a small JSON document describing the site. Read the code that builds that document and every field comes from the settings cache or configuration. No query runs. A Ghost whose MySQL connection has died will keep answering it with 200.

It is still worth one free monitor, because it isolates the layers:

  • HTTP monitor on https://blog.example.com/ghost/api/admin/site/, expected status 200, timeout 10 seconds.
  • On Pro, contains "version", so a proxy's default page cannot pass.

When this is green and the next monitor is red, you know immediately that the process is fine and the database is the problem. When both are red, it is the process, the proxy, or the host. Do not use content changed on it: the version field changes on every upgrade.

Step 2: the check that reaches MySQL

The Content API is the read-only API themes and front ends use. A request to it does two things with the database: Ghost looks up the key you sent, then runs the query for the resource. By default the response is not cached. That makes it the health check Ghost never shipped.

  1. In Ghost Admin, go to Settings → Advanced → Integrations → Add custom integration, name it "Uptime monitor", and copy the Content API key (a 26-character hex string).
  2. Add an HTTP monitor on https://blog.example.com/ghost/api/content/posts/?key=YOUR_KEY&limit=1, expected status 200.
  3. Add the custom header Accept-Version: v6.0, which Ghost's docs ask API clients to send to state the minimum API version they expect.
  4. On Pro, contains "posts".

An unknown key returns 401, so if someone deletes the integration the monitor tells you. Content API keys are passed in the URL by design and grant read access to published content only, the same content your homepage already serves, so a key in a monitor is within its intended use. Give the monitor its own integration anyway, so it can be revoked on its own. Custom headers are available on every plan.

If your host enables Ghost's public posts cache, this request can be answered from that cache; on a default self-hosted install it is not, and the key lookup hits the database either way.

Step 3: the pages readers actually load (Pro for keywords)

Two more HTTP monitors cover what people and machines fetch:

  • The homepage, https://blog.example.com/, expected 200, with contains a string from your theme's footer or your publication name. A broken theme upload or a failed template helper produces an error page that a status check may catch and a keyword always does.
  • The feed, https://blog.example.com/rss/, expected 200, contains <rss. Feed readers and many newsletter and syndication tools poll this, and they fail silently.

One assertion per monitor, so pick the string that matters most on each. If a CDN or full-page cache sits in front of Ghost, the homepage monitor is testing the cache as much as Ghost, which is another reason the Content API check in step 2 matters: API routes are normally not cached. Keyword monitoring covers the match types and why a 200 is not always up covers the cached-page trap.

Step 4: members and Portal

If the site takes signups or payments, the members app is the revenue path. Ghost mounts it under /members/, and one route is safe to probe without a session: GET /members/api/member/ answers 204 No Content for a logged-out visitor. Monitor it with expected status 204. A 404 or 502 there means the members routes are not reaching Ghost, typically after a proxy change that special-cased /members or /ghost.

Two dependencies sit outside your server. The Portal script (the signup and account popup) is loaded from jsDelivr by default, not from your Ghost, so a strict Content-Security-Policy or a network that blocks the CDN breaks signup while every monitor on your own host is green. And payments go through Stripe. Neither is yours to fix, but both are worth knowing about during an incident; monitoring third-party dependencies covers how to watch upstreams without paging on them.

Newsletters are the blind spot. Ghost's docs are explicit that bulk newsletter sending requires Mailgun and that SMTP is for transactional mail only. A failed send is recorded in Ghost's database and shown in Admin; there is no webhook event for it and nothing an outside check can read. Watch the send report after each issue, and treat Mailgun's own dashboard as the source of truth for delivery.

Step 5: restarts, upgrades, and the 503 page

Ghost's boot sequence starts the HTTP server first, in maintenance mode, then initialises the database and runs migrations, then switches maintenance off. While that is happening every request gets a 503 and an HTML page titled "We'll be right back." So every restart and every ghost update produces a short, real window of 503s.

This interacts well with how incidents open. On a 1-minute interval (paid plans) an incident needs two consecutive failed checks, so a restart that finishes inside a minute or so shows as a single red row in the check history and no alert. On the free plan's 3-minute interval a single failure alerts, so an unlucky check during a restart will page you; that is a true report of a brief outage. For a major-version upgrade with long migrations, set a maintenance window (Pro) first.

The failure worth knowing: if MySQL is unreachable at boot, Ghost logs the error and exits. With a process manager set to restart it, that becomes a loop of brief 503s and connection errors, and all your monitors go red together. Check the database before the Ghost logs.

Step 6: a publishing heartbeat (Pro)

Scheduled posts are published by a scheduler that runs inside the Ghost process. Its queue does not survive a restart; Ghost rebuilds it from the database at boot, and a post whose time passed while Ghost was down is published late, on the next start. Nothing is lost, but a publication with a fixed schedule wants to know when "9:00 every weekday" did not happen.

Ghost can tell you itself. Custom integrations can send webhooks, and one of the events is post.published. A webhook is an HTTP POST with a JSON body, and a CronAlert heartbeat URL accepts any GET or POST as a ping and ignores the body:

  1. Create a heartbeat monitor. For a daily publication set the expected interval to 1 day and the grace to a few hours; for weekly, 7 days and a day of grace.
  2. In the same custom integration, Add webhook: event Post published, target URL the heartbeat's ping URL.

Now a day with no published post raises an alert, whether the cause is a stopped scheduler, a Ghost that was down at the publish time, or an editor on holiday. That last one is the trade-off: this suits publications with a real cadence and is noise for a blog that posts when inspired. Ghost gives a webhook two seconds to respond, which the ping endpoint comfortably meets. Choosing a grace period covers the tuning.

Step 7: backups (Pro)

ghost backup is useful and narrower than its name. Per the Ghost-CLI docs it writes a zip containing the content as JSON, a full members CSV, installed themes, images, files and media, and the routes and redirects files. It needs Ghost running, and it is an export, not a database dump: the JSON is built from an allowlist of tables, and email records, comments, API keys, integrations, webhooks, and post revisions are among those left out. For a restore that brings back the site as it was, take the database and the content directory directly:

#!/usr/bin/env bash
# /etc/cron.daily/ghost-backup
set -euo pipefail
SITE=/var/www/ghost
DEST=/srv/backups/ghost/$(date +%F); mkdir -p "$DEST"
mysqldump --single-transaction -u ghost -p"$DB_PASS" ghost_prod | gzip > "$DEST/db.sql.gz"
tar -czf "$DEST/content.tar.gz" -C "$SITE" content config.production.json
# ship $DEST off the host: rclone copy "$DEST" remote:ghost/$(date +%F) ...
curl -fsS --max-time 10 --retry 3 https://cronalert.com/api/heartbeat/YOUR-TOKEN

Create a heartbeat with a 1-day interval and a few hours of grace. set -e means a failed dump or a full disk never reaches the ping, so silence is the alarm. On the Docker install, run mysqldump through docker compose exec db and archive the content volume. Monitoring database backups covers restore testing.

If you run the Docker stack with analytics or the social web

Ghost 6's Docker Compose setup (still labelled a preview in the docs) runs Caddy, Ghost, and MySQL, with optional profiles for web analytics and for a self-hosted ActivityPub service. By default new installs use Ghost's hosted ActivityPub service, so most sites have nothing extra to monitor. If you enabled the activitypub profile, Caddy routes /.well-known/webfinger and /.ghost/activitypub/* to that container, and a monitor on the WebFinger URL for your site's handle (shown in Admin's social web settings) with a keyword on your domain checks that federation discovery works; the Mastodon guide explains the WebFinger check. Only the database container has a healthcheck in the stock compose file, so the outside monitors above are the only thing watching Ghost itself.

What not to monitor

  • /ghost/, the admin. It returns the admin app's static HTML shell with 200 whether or not anything behind it works.
  • The Admin API with a staff token. Admin API keys can write. Never put one in a monitor; the Content API key does the job read-only.
  • MySQL's port from outside. Step 2 tests the database through Ghost, which is the path that matters, without exposing 3306.
  • The site JSON with content changed. It changes on upgrades and settings edits and would alert on your own work.

Reading an alert

AlertLikely causeFirst thing to check
Everything: Expected status 200, got 503Ghost booting or migrating; a crash loop if it persistsghost log; is MySQL up?
Everything: 502 or timeoutGhost process down, or the hostghost status, systemctl status, or the container
Site JSON green, Content API redDatabase unreachable or erroring at runtimeMySQL service, disk space, connection limits
Content API: got 401The integration or its key was deletedSettings → Advanced → Integrations
Homepage keyword missing, APIs greenTheme error, or a cache serving the wrong pageActive theme; purge the cache
Members /api/member/ not 204Proxy routing for /membersProxy config
Publishing heartbeat overdueNothing was published: scheduler, downtime at publish time, or no postThe post's status in Admin
Backup heartbeat overdueCron not running, dump failed, disk fullRun the script by hand
Certificate alertRenewal stoppedProxy or ACME client logs

Frequently asked questions

Is it safe to put the Content API key in a monitor URL?

Yes. It is read-only, limited to published content, and designed to be embedded in public front-end code. Use a dedicated integration so you can rotate it independently.

Does this apply to Ghost(Pro)?

The outside checks (homepage, feed, Content API, members endpoint) work on any Ghost site. The restart, backup, and Docker sections are for self-hosters; on Ghost(Pro) those are the host's job.

Which monitor should I create if I only create one?

The Content API check from step 2. It goes through DNS, TLS, the proxy, Ghost, and MySQL in one request, and it runs on the free plan.

Can I show the blog on a status page?

Yes; every plan includes one status page. Show the homepage monitor. Avoid listing the Content API monitor publicly, since its URL contains the key.

Which parts are free?

All the status-code monitors, including the expected-204 members check and the custom Accept-Version header, plus certificate monitoring. Keyword assertions, the publishing and backup heartbeats, and maintenance windows need Pro at $5/month.

Get started

Create the custom integration, copy the Content API key, and add the one monitor that reaches the database. Create a free CronAlert account to set it up. Related reading: monitoring a headless CMS, monitoring WordPress, monitoring reverse proxies, monitoring a VPS, and monitoring Docker self-hosted services.