Metrics

sfp metrics

Commands for reporting and querying metrics from sfp supported metric providers.

  • sfp metrics report

  • sfp metrics query

  • sfp metrics display


sfp metrics report

Report a custom metric to any sfp supported metric provider.

USAGE
  $ sfp metrics report -m <value> -t gauge|counter|timer [-v <value>] [-g <value>]
    [--sfp-server-url <value>] [-e <value>] [--application-token <value>]
    [--loglevel trace|debug|info|warn|error|fatal]

FLAGS
  -g, --tags=<value>              Tags for metric (JSON format)
  -m, --metric=<value>            (required) Metric name to publish
  -t, --type=<option>             (required) Type of metric
                                  <options: gauge|counter|timer>
  -v, --value=<value>             Value of metric
  -e, --email=<value>             Email for server authentication
      --sfp-server-url=<value>    URL of sfp server
      --application-token=<value> Application token for server authentication
      --loglevel=<option>         [default: info] Logging level
                                  <options: trace|debug|info|warn|error|fatal>

DESCRIPTION
  Report a custom metric to any sfp supported metric provider. Supports StatsD, DataDog,
  NewRelic, Splunk, and sfp server (sfp-pro only).

EXAMPLES
  $ sfp metrics:report -m <metric> -t <type> -v <value>

  $ sfp metrics:report -m build.duration -t timer -v 12000 --sfp-server-url http://localhost:3029 -e [email protected]

  $ sfp metrics:report -m custom.counter -t counter --tags '{"team":"platform"}'

sfp metrics query

sfp-pro
sfp (community)

Availability

From

January 26

Query metrics from sfp server using simple metric names or MetricsQL expressions.

Query Types

Simple Name Query (-n)

Use for straightforward metric queries. The sfpowerscripts. prefix is automatically added:

Raw Query (-q)

Use for advanced MetricsQL expressions:

Label Query (-l)

List distinct values for a label:


sfp metrics display

sfp-pro
sfp (community)

Availability

From

January 26

Display a summary dashboard of key metrics organized by category.

Categories

Category
Metrics Shown

build

Builds Scheduled, Packages Built, Packages Failed, Avg Duration

deploy

Deployments, Successful/Failed Deploys, Packages Deployed, Avg Duration

validate

Validations, Successful/Failed Validations, Avg Duration

release

Releases, Successful/Failed Releases, Packages Released, Avg Duration

prepare

Orgs Succeeded, Orgs Failed, Avg Duration

Sample Output

Last updated