0.0.0-alpha • Published 4 years ago
serverless-log-metric-filter v0.0.0-alpha
Serverless-Log-Metric-Filter
Installation
- with NPM
npm install --save-dev serverless-log-metric-filter- with Yarn
yarn add --dev serverless-log-metric-filter- Then update
serverless.ymlfile
plugins:
- serverless-log-metric-filter- Alternatively, install with the Serverless plugin command (Serverless Framework 1.22 or higher):
sls plugin install -n serverless-log-metric-filterUsage
- To use fallback values, in your
serverless.ymlfile
custom:
logMetricFilter:
enabled: true- To add custom values, in your
serverless.ymlfile
custom:
logMetricFilter:
enabled: true
filterPattern: Task timed out after
metricName: TimeOut
metricNameSpace: Lambda
metricValue: 1- To disable for specific functions, in your
serverless.ymlfile
functions:
exampleFunction:
logMetricFilter: falseLicense
Copyright (c) 2021 Salem Qemlas. See the included LICENSE for rights and limitations under the terms of the MIT license.
0.0.0-alpha
4 years ago