Skip to content

Fix variable editor cursor, sandbox dialog, leaner monitoring - #45

Merged
iRazvan2745 merged 7 commits into
masterfrom
fix/variable-cursor-sandbox-dialog-metrics
Nov 23, 2026
Merged

iRazvan2745 merged 7 commits into
masterfrom
fix/variable-cursor-sandbox-dialog-metrics

Conversation

@iRazvan2745

@iRazvan2745 iRazvan2745 commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Variable editor cursor: the inline variable editor's CodeMirror cursor was black by default, so it couldn't be seen on dark backgrounds. It now uses --foreground.
  • Sandbox dialog: creating a sandbox from the add palette now opens a dialog (tracked by the addSandbox search param) instead of going to the /create/sandbox page, which is removed. Its fields other than secrets stay in the URL.
  • Leaner monitoring (MONITORING_VERSION 5):
    • Alloy scrapes every 30s instead of every 15s.
    • Drops metric series nothing queries: node_exporter interrupts/softirqs/systemd/logind/lnstat, cAdvisor advtcp/tcp/udp, Alloy's self metrics, and every Caddy series the HTTP charts don't use.
    • Query grids and rate() windows follow the 30s interval (windows are at least 120s).
  • Caddy as a resource: each cluster's Caddy is now a compose resource named caddy (never prefixed) in its internal project, deployed by DeployResource like any other.
    • Removes the DeployCaddy job, the sidecar /api/v1/caddy/deploy route and the Caddy settings dialog. The Ingress card's Configure button opens the resource.
    • Migration 20261123134402_caddy_resource adds clusters.caddy_resource_id and cancels DeployCaddy rollouts that are still queued or running.
    • A cluster whose Caddy predates this adopts it as a draft the first time its Ingress card loads, and never deploys it then. The draft keeps the running Caddy's image, global Caddyfile, environment (extra variables go to Variables), extra ports, bind mounts and placement. Mounts Compose can't hold are listed in a comment at the top of the draft.
    • ProvisionCluster saves the cluster-storage Caddy as the resource's draft and queues a deployment of it.
    • Internal-project resources are editable now, except monitoring. The API refuses name prefixes on Caddy.
    • Initializing monitoring no longer redeploys Caddy. The Ingress card warns when Caddy's Caddyfile lacks metrics { per_host otlp } or Caddy pushes metrics to an outdated endpoint. Upgrading monitoring from version 3 or lower logs a reminder to deploy the Caddy resource.
  • Docs: the docs image no longer pins the :latest tag.

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@blacksmith-sh

This comment has been minimized.

- Warn on the Ingress card when the running Caddy pushes metrics to an
  outdated or missing endpoint, and log it when monitoring upgrades from
  before the Alloy rename, instead of silently losing HTTP metrics.
- Only report missing metrics subdirectives when Caddy is deployed.
- Save setup's Caddy spec as the resource draft and deploy it with the
  resource's Variables, so the next canvas deploy doesn't roll it back.
- Keep a running Caddy's bind mounts when adopting it, replacing the
  template's at the same path, and list mounts Compose can't hold.
- Refuse name prefixes on the cluster's Caddy resource in the API.
- Keep the sandbox dialog's non-secret fields in the URL again.
Only the cluster's monitoring resource is read-only now, so the test inserts its cluster_monitoring row.
@iRazvan2745
iRazvan2745 merged commit d289376 into master Nov 23, 2026
3 checks passed
@iRazvan2745
iRazvan2745 deleted the fix/variable-cursor-sandbox-dialog-metrics branch November 23, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant