jf stats

Return statistics for a specific product on a given server. Requires authentication.

Synopsis

jf stats <product-name> [options]

Aliases: jf st

Arguments

ArgumentRequiredDescription
<product-name>YesProduct name. Supported: artifactory or rt

Options

FlagShortDefaultDescription
--formattableOutput format: table, json, simple-json, or sarif
--access-tokenAccess token. Default uses the logged-in user token
--server-idServer ID from jf config

Examples

Get Artifactory Statistics

jf stats artifactory

Use artifactory or rt as the product name. Authentication is required.

Output as JSON

jf st rt --format=json

Use a Specific Server

jf stats artifactory --server-id=<your-server-id>

When to Use

Use jf stats to retrieve server-level statistics for monitoring, dashboards, or health checks. Common scenarios:

  • Monitoring scripts: Periodically check Artifactory statistics and alert on anomalies
  • Capacity planning: Review storage and artifact counts for infrastructure decisions
  • CI/CD health checks: Verify the server is healthy before starting builds

Expected Output

$ jf stats artifactory
Product:    Artifactory
Version:    7.77.5
Revision:   77700900
Addons:     build,docker,npm,maven,...
Storage:    45.2 GB used / 100 GB total

Use --format=json for machine-readable output suitable for scripts:

jf st rt --format=json | jq '.version'

What’s Next

To discover all configurable options, run jf options.