Skip to main content
Upstream source: Current installation guide. Prometheus needs a scrape configuration as well as a persistent metrics directory. This first instance scrapes itself only; add explicit targets before expecting host or application metrics.

Towbar manifest

.towbar/services/prometheus.compose.yml

Compose project

Configure

  1. Prepare the example server, connect the repository, and map production to the branch containing these files. Replace the example server IP.
  2. Commit every file shown below under deploy/prometheus/. The Towbar manifest points to the Compose file; it does not create it for you.
  3. Sync the repository and inspect the resolved Compose project. Save the runtime values below if this example declares any.
  4. Keep this service private until you put authentication in front of its UI and API.
  5. Edit prometheus.yml to add only targets reachable from this Compose network. The sample self-scrape cannot discover Towbar Services automatically.
  6. Deploy it manually and run the verification below before enabling auto-deploy.

Verify

Check Status → Targets from a trusted connection or query up{job="prometheus"} from the server. Back up the metrics volume if the historical samples matter. For field constraints, see Compose guide.
Last modified on September 27, 2026