Skip to Content
Xeonr Developer Docs

Status pages

Public pages that show your synthetic flows' state, served by Lantern at a built-in URL or a hostname of your own, and restyled with your own CSS.

A status page is a public page that shows the current state of your synthetic flows, grouped into sections, for the people who use your product. Lantern serves it with no sign-in. Visitors see names, states and uptime. They never see flow IDs, hosts, steps, failure messages or secrets.

Status pages belong to an organisation, and only its admins can create or change them. Edit one in the console under Synthetics → status pages, or keep it as YAML and apply it with the lntrn CLI.

Creating a page

status.lantern.yaml
slug: acme                  # the built-in URL: https://acme.status.lntrn.dev/
title: Acme                 # the header and the browser tab
published: true             # an unpublished page answers "not found"
show_uptime: true           # uptime and daily bars on detailed sections
sections:
  - name: Checkout
    description: Placing and paying for orders
    display: DISPLAY_SIMPLE
    flow_ids:
      - 7c9e6679-7425-40de-944b-e07fc1f90ae7
  - name: Accounts
    display: DISPLAY_DETAILED
    auto_include: {tags: [accounts]}
display_names:
  7c9e6679-7425-40de-944b-e07fc1f90ae7: Place an order
lntrn synthetics status-pages apply -f status.lantern.yaml
lntrn synthetics status-pages list
lntrn synthetics status-pages export acme -o status.lantern.yaml

apply matches pages by id, then slug, then hostname. It creates a page that matches none and replaces the fields of one that does. --dry-run shows what apply would do without changing anything.

Sections and auto-include

A page is a list of sections, shown in order. Each section has a name, an optional description and a display mode:

displayShows
DISPLAY_SIMPLEEach flow's name and state, one row each.
DISPLAY_DETAILEDEach flow on its own row. With show_uptime, also its 30, 60 and 90-day uptime and one bar per day for the last 90 days.

collapsed: true starts a section folded to its header. The header still shows the section's overall state and how many components it has. Visitors can open or fold any section.

A section gets its flows in two ways:

  • flow_ids: flows you place by hand, in the order you list them. These never move to another section.
  • auto_include: every enabled flow that has a tag in tags, or whose owner is one of teams (team slugs or URNs, with all of each team's sub-teams) or one of sub_teams (sub-team slugs or IDs). A flow with no owner of its own counts as owned by its service's owner. These are worked out again each time the page is read, so a new flow with that tag or owner appears without editing the page. They are sorted by name and come after the hand-placed flows.

A flow appears only once on a page, in the first section that claims it. Hand-placed flows are claimed first, then each section's auto-include, in page order. A page-level auto_include collects any matching flows that no section claimed into a final, untitled section. A section that ends up with no flows is not shown.

display_names gives a flow a public name by flow ID. For example, it can show "Place an order" instead of "checkout prod: order write path". A flow without one shows its own name.

States

Each flow, section and page has one of four states:

StateMeaning
Operational (up)The flow's latest run passed at every location.
Degraded (degraded)A flow is failing at some locations, but fewer than its min_failing_locations. A section or page is degraded when some of its flows are down or degraded.
Down (down)The flow is failing at min_failing_locations or more locations. A section or page is down when every flow in it that has reported is down.
No data (no-data)No run has been reported recently.

A status page shows only the state. It never shows why a flow failed: failure messages name steps, assertions, headers and hosts, so they stay in the console, on the flow's own page.

The page re-reads its data every minute, and Lantern caches each page for 30 seconds.

Where a page is served

Built-in URL

Every page is served at https://<slug>.status.lntrn.dev/ as soon as it is published. This needs no DNS records and no verification, and the certificate is Lantern's. A slug is a DNS label (lower-case letters, digits and inner hyphens, up to 63 characters) and must be unique across Lantern.

A hostname of your own

A page can also be served at a custom hostname of your own, such as status.acme.com. This is optional. To set one up:

  1. Set hostname: status.acme.com on the page and apply it. Lantern returns two DNS records for you to create:

    TypeNameValue
    CNAMEstatus.acme.comlantern.prod.wtf
    TXT_lantern-verify.status.acme.comthe page's token, shown in the console and by apply
  2. Create both records in your DNS.

  3. Verify the records, either with check now in the console or with the CLI:

    lntrn synthetics status-pages verify acme

    Once both records resolve, Lantern issues a certificate for the hostname and starts serving the page there. The console shows the certificate's state.

Lantern checks the CNAME again every ten minutes. If the CNAME is removed, Lantern stops serving the page at that hostname, but the page itself and its built-in URL keep working. To remove a custom hostname, set hostname to an empty value.

logo_url puts an image in the header, before the title. The value can be an https:// URL, or a base64 data: URI of a PNG, JPEG, GIF, WebP or SVG image of up to 256 KiB. Without a logo, the header shows the title's first letter on a tile.

Customising with CSS

custom_css is a stylesheet that Lantern serves with the page, straight after its own. You can use it to restyle everything: colours, type, spacing, shapes and how each state looks. The class names and variables listed below are stable, so a page's CSS keeps working across Lantern releases.

Keep the stylesheet in its own file next to the YAML:

status.lantern.yaml
slug: acme
title: Acme
custom_css_file: acme.css     # read relative to this file by lntrn

You can also write the CSS inline under custom_css:. In the console, the custom CSS field has a preview that updates as you type, before you save.

Variables

The quickest change is to override the variables on .lntrn-status. Every part of the page reads its colours, fonts and radii from these:

VariableUsed for
--lntrn-status-bgThe page background
--lntrn-status-surface, --lntrn-status-surface-2Cards, and empty bars and hover states
--lntrn-status-borderBorders and dividers
--lntrn-status-text, --lntrn-status-text-mutedText, and secondary text
--lntrn-status-accent, --lntrn-status-linkThe logo tile and focus rings, and links
--lntrn-status-up, --lntrn-status-degraded, --lntrn-status-down, --lntrn-status-no-dataEach state's colour
--lntrn-status-up-soft (and -degraded-soft, -down-soft, -no-data-soft)Each state's tint, behind chips and the summary. By default a mix of the state's colour.
--lntrn-status-tone, --lntrn-status-tone-softThe colour and tint of the state of the element you are styling. Set automatically from data-status.
--lntrn-status-font, --lntrn-status-font-display, --lntrn-status-font-monoBody text, headings and the title, and counts and chips
--lntrn-status-radius, --lntrn-status-radius-smCorners of the summary and simple sections, and of entries
--lntrn-status-max-width, --lntrn-status-gapThe column's width, and the space between sections

By default the page is drawn in the Xeonr console's style: each section is a panel with a header row, flows are rows separated by hairlines, and states are pills. It follows the visitor's light or dark preference. To use one palette for everyone, set the variables and color-scheme on .lntrn-status.

Class names

.lntrn-status                       the whole page (also carries data-status)
└ .lntrn-status-page                the centred column
  ├ header.lntrn-status-header
  │   ├ img.lntrn-status-logo       or span.lntrn-status-logo.lntrn-status-logo-initial
  │   └ .lntrn-status-title
  ├ section.lntrn-status-summary    the page's overall state
  │   ├ .lntrn-status-summary-icon
  │   ├ h1.lntrn-status-headline    "All systems operational", …
  │   └ .lntrn-status-summary-meta  "12 services · updated 10:42"
  ├ .lntrn-status-sections
  │   └ section.lntrn-status-section          data-status, data-display, data-collapsed
  │       ├ button.lntrn-status-section-header
  │       │   ├ .lntrn-status-section-chevron
  │       │   ├ .lntrn-status-section-name
  │       │   ├ .lntrn-status-section-count
  │       │   └ .lntrn-status-chip            the section's state
  │       ├ .lntrn-status-section-description
  │       └ ul.lntrn-status-entries
  │           └ li.lntrn-status-entry         data-status: one flow
  │               ├ .lntrn-status-entry-head
  │               │   ├ .lntrn-status-entry-name
  │               │   ├ .lntrn-status-uptime > .lntrn-status-uptime-value (data-window) > .lntrn-status-uptime-label
  │               │   └ .lntrn-status-chip > .lntrn-status-chip-dot
  │               ├ .lntrn-status-bars > .lntrn-status-bar   data-status per day (detailed)
  │               └ .lntrn-status-bars-legend
  └ footer.lntrn-status-footer
      ├ .lntrn-status-updated
      └ .lntrn-status-powered

These data attributes are on the elements shown above:

  • data-status is up, degraded, down or no-data. It is on the page, the summary, sections, entries, chips and day bars. A day bar is up at 99.9% or more, degraded from 99%, and down below that.
  • data-display is simple or detailed, on each section.
  • data-collapsed is true or false, on each section. It follows the visitor opening and folding the section.
  • data-window is 30d, 60d or 90d, on each uptime value.

Lantern's own rules use one class each, and its state rules have no weight at all. Your stylesheet comes after Lantern's, so a plain .lntrn-status-entry rule wins without !important.

A worked example

This stylesheet sets a dark brand palette, a display face for headings, square corners, a pink "down", and simple sections laid out two to a row:

acme.css
@font-face {
  font-family: 'Acme Display';
  src: url(data:font/woff2;base64,d09GMgABAAAA…) format('woff2');
  font-display: swap;
}

.lntrn-status {
  --lntrn-status-bg: #0c0a12;
  --lntrn-status-surface: #16121f;
  --lntrn-status-border: rgba(255, 255, 255, 0.07);
  --lntrn-status-text: #f2eef8;
  --lntrn-status-text-muted: #978cac;
  --lntrn-status-accent: #9b3ee4;
  --lntrn-status-down: #ff6b9a;
  --lntrn-status-font-display: 'Acme Display', system-ui, sans-serif;
  --lntrn-status-radius: 0;
  --lntrn-status-radius-sm: 0;
  color-scheme: dark;
}

/* Simple sections: two flows to a row on wide screens. */
@media (min-width: 720px) {
  .lntrn-status-section[data-display='simple'] .lntrn-status-entries {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lntrn-status-section[data-display='simple'] .lntrn-status-entry {
    border-top: 1px solid var(--lntrn-status-border);
  }
}

/* A failing flow stands out. */
.lntrn-status-entry[data-status='down'] {
  border-color: var(--lntrn-status-tone);
  box-shadow: 0 0 0 1px var(--lntrn-status-tone-soft);
}

/* Chips as plain text. */
.lntrn-status-chip {
  background: none;
  padding: 0;
}

What is not allowed

The stylesheet must be CSS and nothing else. Lantern checks it when you save it and refuses anything that breaks these rules, naming the rule and the line:

  • No more than 128 KiB.
  • No < anywhere, not even in a comment. A stylesheet never needs it, and it could end the <style> element the CSS is served in.
  • No @import.
  • No external resources. url(), image(), image-set() and src() may only hold a data: URI of a font (font/…) or an image (image/…). A status page loads nothing from anywhere else, so its visitors are never revealed to a third party. Embed fonts and images as base64. For the logo, use logo_url instead.
  • No legacy script hooks: expression(), javascript:, the behavior property and -moz-binding are all refused. Lantern decodes CSS escapes before checking, so \75 rl( is treated the same as url(.

Page text, such as the headlines and the "Operational" labels, comes from Lantern. CSS can restyle it but not change it. The page's structure, sections and flows come from the page itself, not from CSS.

On this page