Skip to main content
版本:v1.8

AWS CLOUDWATCH-LOG-METRIC-FILTER

描述

Terraform module which creates Cloudwatch resources on AWS

参数说明

属性

名称描述类型是否必须默认值
create_cloudwatch_log_metric_filterWhether to create the Cloudwatch log metric filterboolfalse
log_group_nameThe name of the log group to associate the metric filter withstringtrue
metric_transformation_default_valueThe value to emit when a filter pattern does not match a log event.stringfalse
metric_transformation_nameThe name of the CloudWatch metric to which the monitored log information should be published (e.g. ErrorCount)stringtrue
metric_transformation_namespaceThe destination namespace of the CloudWatch metric.stringtrue
metric_transformation_valueWhat to publish to the metric. For example, if you're counting the occurrences of a particular term like 'Error', the value will be '1' for each occurrence. If you're counting the bytes transferred the published value will be the value in the log event.stringfalse
nameA name for the metric filter.stringtrue
patternA valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.stringtrue
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse