Skip to main content
Run s2 metrics account --help (or basin, stream) for a description of each.

Time range

Without flags, a metric covers the last 30 days. Set either end as a duration before now or as a Unix timestamp in seconds:
When only the end is given, the start is 30 days before it.

Counts and throughput

Operation counts, throughput and billing are summed over the time range:
Pass --interval minute, hour or day to see each interval instead of the sum:

Storage

Storage is a point-in-time value, so it is shown as the latest value followed by up to 12 points spread over the time range:

Estimated billable usage

Pass --interval hour or day for the total per interval.

Access token activity

The most recent use of each given access token, by outcome and source address. It can lag by a couple of minutes.
Denials are listed first. The network policy docs explain how to use this to debug denied requests.

JSON output

-o json prints every data point as returned by the metrics API, for any metric:

Metrics concepts

Review metric sets, parameters, scopes, and response types.