Metrics
sfp metrics
sfp metricssfp metrics report
sfp metrics reportUSAGE
$ 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 metrics querysfp-pro
sfp (community)
Query Types
Simple Name Query (-n)
-n)Raw Query (-q)
-q)Label Query (-l)
-l)sfp metrics display
sfp metrics displaysfp-pro
sfp (community)
Categories
Category
Metrics Shown
Sample Output
Last updated