Skip to main content
Scout and Station each serve GET /metrics on their existing HTTP port. Metrics are off by default, including on existing installations. Enable each app separately.

Enable metrics

  1. Sign in as an admin.
  2. Open Edit Scout Settings or Edit Station Settings.
  3. Turn on the Prometheus metrics pill and click Save.
Changes apply immediately and are saved in the app’s settings database. Turn the pill off and save to stop serving metrics. Disabled endpoints return 404, including to signed-in admins. Collection failures return 503, so Prometheus records a failed scrape instead of accepting incomplete backup metrics. The settings API field is metrics_enabled. Read the current settings and preserve the other fields when updating it, as described in the Scout API and Station API. Metrics never need a session cookie or a Station token. Labels include relative job paths on Scout, and Scout IDs, instance IDs, and job names on Station. Metrics omit passwords, tokens, keys, absolute folder paths, archive filenames, and error details.

Require a token

Require auth token is in the same settings dialog. It’s on for new installs. An install that already had saved settings keeps it off after upgrading, so existing scrapes keep working. Turn it on when you’re ready. When it’s on, send a signed auth token with each request. A missing, invalid, expired, or revoked token returns 401, and a token without the right permission returns 403. Disabled metrics still return 404. To create a token, open Users & Access, go to Station Auth Tokens or Scout Auth Tokens, untick Read status, and tick Read metrics. It’s shown once, and it’s valid only in the app that issued it, so Station and each Scout need their own. Use a separate token for each client so you can revoke one without affecting the others. Read metrics allows only /metrics. It can’t upload, restore, or call /api/.... An auth token is not the Station token that Scouts use to upload backups, and a Station token doesn’t work on this route.
A token protects these routes, but it can be read if it’s sent over plain HTTP. On any network you don’t fully trust, serve the apps over HTTPS. If you turn the requirement off, keep /metrics reachable only by your monitoring network, using your firewall or reverse proxy.

Configure Prometheus

Add scrape jobs to your existing Prometheus configuration. Replace these example addresses with hostnames reachable from Prometheus, and save each token in a file only Prometheus can read. Use scheme: https if your targets are served over HTTPS, and configure your internal CA in Prometheus if needed. Leave out authorization if that app doesn’t require a token.
Reload Prometheus and check that both targets are up. You can also check an enabled endpoint directly with curl, or send the same header from Postman:
Tokens expire, so create a new one and update the file before then. Both apps include Go runtime and process metrics, plus three_to_one_go_build_info with app, version, and commit labels. Application measurements below are gauges representing current state. Deleted jobs disappear from future scrapes. They are not cumulative event counters.

Scout metrics

Scout uses its existing job discovery cache. Until the initial search completes, three_to_one_go_scout_discovering is 1 and the job list may be incomplete. Job metrics have a job_path label relative to the scan root. An unchanged job does not upload a new archive, so the last successful upload timestamp can remain old while Scout is operating normally.

Station metrics

Per-job metrics have scout_id, scout_instance_id, and job_name labels. The last-seen metric has only the two Scout labels. Archive counts and sizes come from Station’s index; scraping does not walk the archive folder.

Grafana queries

Use your existing Prometheus data source in Grafana. A few starting panels: For backup-age panels or alerts, account for the job’s schedule, unchanged jobs, and timestamps of 0 indicating no successful upload yet.