Skip to content

stat.flexfs

stat.flexfs collects usage statistics from admin servers, stores them in its database, and sends periodic usage reports via SMTP. It also manages license grants that are returned to admin servers as part of the stats relay flow.

SubcommandDescription
startStart the statistics server
init credsInitialize the credentials file
init systemdCreate and enable a systemd service unit
deinit credsRemove the credentials file
deinit systemdRemove the systemd service unit
versionPrint the build version
licensePrint license information
Terminal window
stat.flexfs start [flags]
FlagTypeDefaultDescription
--credsFilestring~/.flexfs/stat/credsCredentials file path

All flags on this page are internal.

FlagTypeDefaultDescription
--bindAddrstring0.0.0.0:443Address and port to bind
--dbFolderstring~/.flexfs/statDatabase folder path
--keyFolderstring~/.flexfs/licenseSigning key folder path
--mockTimeboolfalseSimulate time as 5 minutes after last reported_at
--noSSLboolfalseDisable SSL for the REST API
--pprofboolfalseEnable pprof profiler
--smtpAddrstringSMTP server address (overrides creds file)
--smtpFromstringSMTP from email address (overrides creds file)
--smtpPassstringSMTP server password (overrides creds file)
--smtpTostringSMTP to email addresses (overrides creds file)
--smtpUserstringSMTP server username (overrides creds file)
--sqliteOptsstring(default tuning)Database connection tuning options
--sslCertstring~/.flexfs/ssl/certSSL certificate file path
--sslKeystring~/.flexfs/ssl/keySSL private key file path
--verbose, -vboolfalseEnable verbose logging