diff --git a/README.md b/README.md index b5d97dfd9..ba804d398 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ Only the latest version gets security updates. We won't support older versions. * `CWAgent` - CloudWatch agent * `ECS/ContainerInsights` - ECS/ContainerInsights (Fargate metrics) * `Glue` - AWS Glue Jobs + * `LambdaInsights` - Lambda enhanced metrics ## Feature flags diff --git a/examples/lambda-insights.yml b/examples/lambda-insights.yml new file mode 100644 index 000000000..d6d1d1651 --- /dev/null +++ b/examples/lambda-insights.yml @@ -0,0 +1,27 @@ +apiVersion: v1alpha1 +discovery: + jobs: + - type: LambdaInsights + regions: + - us-east-1 + period: 300 + length: 300 + metrics: + - name: cpu_total_time + statistics: [Average, Maximum] + - name: init_duration + statistics: [Average, Maximum, Minimum, p90] + - name: memory_utilization + statistics: [Average, Maximum] + - name: used_memory_max + statistics: [Average, Maximum] + - name: rx_bytes + statistics: [Sum] + - name: tx_bytes + statistics: [Sum] + - name: tmp_used + statistics: [Average, Maximum] + - name: total_memory + statistics: [Average, Maximum] + - name: total_network + statistics: [Sum] diff --git a/pkg/config/services.go b/pkg/config/services.go index a07b8c34e..53eff37a5 100644 --- a/pkg/config/services.go +++ b/pkg/config/services.go @@ -597,6 +597,16 @@ var SupportedServices = serviceConfigs{ regexp.MustCompile(":function:(?P[^/]+)"), }, }, + { + Namespace: "LambdaInsights", + Alias: "lambdainsights", + ResourceFilters: []*string{ + aws.String("lambda:function"), + }, + DimensionRegexps: []*regexp.Regexp{ + regexp.MustCompile(":function:(?P[^/]+)"), + }, + }, { Namespace: "AWS/Logs", Alias: "logs",