Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
27 changes: 27 additions & 0 deletions examples/lambda-insights.yml
Original file line number Diff line number Diff line change
@@ -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]
10 changes: 10 additions & 0 deletions pkg/config/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,16 @@ var SupportedServices = serviceConfigs{
regexp.MustCompile(":function:(?P<FunctionName>[^/]+)"),
},
},
{
Namespace: "LambdaInsights",
Alias: "lambdainsights",
ResourceFilters: []*string{
aws.String("lambda:function"),
},
DimensionRegexps: []*regexp.Regexp{
regexp.MustCompile(":function:(?P<FunctionName>[^/]+)"),
},
},
{
Namespace: "AWS/Logs",
Alias: "logs",
Expand Down