Server

Monitoring.

Farwing publishes counts and totals for a monitoring system. It does not publish file names, email addresses or paths.

The server feed

GET /metrics returns Prometheus text. Call it with an API key in the Authorization header. Any scope is enough, so the key you give the scraper does not need to be able to change files. A portal session is refused: a scrape comes from a machine, not from a signed-in browser.

Make the key under Profile → API keys. The API reference shows how to send it. Point the scraper at:

https://files.example.com/metrics

Useful series include:

  • farwing_data_service_up is 1 when the transfer port is open. When it is 0, session counts are left out rather than reported as zero.
  • farwing_data_sessions counts transfers in flight and tickets issued but not yet used.
  • farwing_transfers counts transfer records by state.
  • farwing_job_runner_up is 1 when the automation runner is up.
  • farwing_build_info carries the version that is running.

The same reply includes license state, user and key counts, storage locations, packages, hot folders, folder syncs and audit forwarding. Read the HELP line on each series for what it counts.

Traffic usage

Admin → Transfers → Usage is the charts, the CSV export and scheduled email reports. A weekly report can be added and removed there; the server refuses an address that is not an email address. Per-minute usage is kept 30 days. Per-hour rows are kept, and Free mode shows the last 30 days of them.

The same page mints a read-only token for a second Prometheus feed, GET /api/v1/usage/metrics, which is the traffic series. The token is shown once, when it is made. Your scraper sends it as Authorization: Bearer <token>. Without a token, only a signed-in administrator can read the feed. It is separate from /metrics and is not included in Free mode.

  • farwing_traffic_bps is the speed now, in bytes per second, with dir="up" or dir="down".
  • farwing_traffic_transfers counts transfers that are moving (state="active") or waiting their turn (state="waiting").
  • farwing_license_days_left is the number of days until the license ends. It is left out when there is no license, or the license does not end.