Tencent-SCF - Metrics

Lets you watch the metrics of a specific function.

serverless metrics

Options

  • --function or -f The function you want to fetch the metrics for.
  • --stage or -s The stage you want to view the function metrics for. If not provided, the plugin will use the default stage listed in serverless.yml. If that doesn't exist either it'll just fetch the metrics from the dev stage.
  • --region or -r The region you want to view the function metrics for. If not provided, the plugin will use the default region listed in serverless.yml. If that doesn't exist either it'll just fetch the metrics from the ap-guangzhou region.
  • --startTime A specific unit in time to start fetching metrics from (ie: "2019-7-12 00:10:00").
  • --endTime A specific unit in time to end fetching metrics from (ie: "2019-7-12 00:10:00").

Examples

Note: There's a small lag between invoking the function and actually having access to the metrics. It takes a few seconds for the metrics to show up right after invoking the function.

See service wide metrics for the last 24h

serverless metrics

Displays service wide metrics for the last 24h.

See service wide metrics for a specific timespan

serverless metrics --startTime "2019-11-01 00:00:00" --endTime "2019-11-02 00:00:00"

Displays service wide metrics for the time between November 1, 2019 and November 2, 2019.

See all metrics for the function hello of the last 24h

serverless metrics --function hello

Displays all hello function metrics for the last 24h.

See metrics for the function hello of a specific timespan

serverless metrics --function hello --startTime "2019-11-01 00:00:00" --endTime "2019-11-02 00:00:00"

Displays all hello function metrics for the time between November 1, 2019 and November 2, 2019.

Edit this page

Tencent-SCF - Metrics

Lets you watch the metrics of a specific function.

serverless metrics

Options

  • --function or -f The function you want to fetch the metrics for.
  • --stage or -s The stage you want to view the function metrics for. If not provided, the plugin will use the default stage listed in serverless.yml. If that doesn't exist either it'll just fetch the metrics from the dev stage.
  • --region or -r The region you want to view the function metrics for. If not provided, the plugin will use the default region listed in serverless.yml. If that doesn't exist either it'll just fetch the metrics from the ap-guangzhou region.
  • --startTime A specific unit in time to start fetching metrics from (ie: "2019-7-12 00:10:00").
  • --endTime A specific unit in time to end fetching metrics from (ie: "2019-7-12 00:10:00").

Examples

Note: There's a small lag between invoking the function and actually having access to the metrics. It takes a few seconds for the metrics to show up right after invoking the function.

See service wide metrics for the last 24h

serverless metrics

Displays service wide metrics for the last 24h.

See service wide metrics for a specific timespan

serverless metrics --startTime "2019-11-01 00:00:00" --endTime "2019-11-02 00:00:00"

Displays service wide metrics for the time between November 1, 2019 and November 2, 2019.

See all metrics for the function hello of the last 24h

serverless metrics --function hello

Displays all hello function metrics for the last 24h.

See metrics for the function hello of a specific timespan

serverless metrics --function hello --startTime "2019-11-01 00:00:00" --endTime "2019-11-02 00:00:00"

Displays all hello function metrics for the time between November 1, 2019 and November 2, 2019.