Skip to content

Commit 5486308

Browse files
committed
add lambda insights for enhanced metrics
Signed-off-by: Tommy Li <[email protected]>
1 parent 92e1910 commit 5486308

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Only the latest version gets security updates. We won't support older versions.
148148
* `CWAgent` - CloudWatch agent
149149
* `ECS/ContainerInsights` - ECS/ContainerInsights (Fargate metrics)
150150
* `Glue` - AWS Glue Jobs
151+
* `LambdaInsights` - Lambda enhanced metrics
151152

152153
## Feature flags
153154

Diff for: examples/lambda-insights.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: v1alpha1
2+
discovery:
3+
jobs:
4+
- type: LambdaInsights
5+
regions:
6+
- us-east-1
7+
period: 300
8+
length: 300
9+
metrics:
10+
- name: cpu_total_time
11+
statistics: [Average, Maximum]
12+
- name: init_duration
13+
statistics: [Average, Maximum, Minimum, p90]
14+
- name: memory_utilization
15+
statistics: [Average, Maximum]
16+
- name: used_memory_max
17+
statistics: [Average, Maximum]
18+
- name: rx_bytes
19+
statistics: [Sum]
20+
- name: tx_bytes
21+
statistics: [Sum]
22+
- name: tmp_used
23+
statistics: [Average, Maximum]
24+
- name: total_memory
25+
statistics: [Average, Maximum]
26+
- name: total_network
27+
statistics: [Sum]

Diff for: pkg/config/services.go

+10
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,16 @@ var SupportedServices = serviceConfigs{
597597
regexp.MustCompile(":function:(?P<FunctionName>[^/]+)"),
598598
},
599599
},
600+
{
601+
Namespace: "LambdaInsights",
602+
Alias: "lambdainsights",
603+
ResourceFilters: []*string{
604+
aws.String("lambda:function"),
605+
},
606+
DimensionRegexps: []*regexp.Regexp{
607+
regexp.MustCompile(":function:(?P<FunctionName>[^/]+)"),
608+
},
609+
},
600610
{
601611
Namespace: "AWS/Logs",
602612
Alias: "logs",

0 commit comments

Comments
 (0)