GET /metrics on their existing HTTP port. Metrics are off by default, including on existing installations. Enable each app separately.
Enable metrics
- Sign in as an admin.
- Open Edit Scout Settings or Edit Station Settings.
- Turn on the Prometheus metrics pill and click Save.
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. Usescheme: 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.
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 havescout_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.