-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphdefs.go
96 lines (94 loc) · 4.06 KB
/
graphdefs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package mackerel
import (
"github.com/mackerelio/mackerel-client-go"
)
var GraphDefs []*mackerel.GraphDefsParam = []*mackerel.GraphDefsParam{
{
Name: "custom.lambda.platform.initReport.duration",
DisplayName: "Init Duration",
Unit: "seconds",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.initReport.duration.duration", DisplayName: "duration", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.report.billedDuration",
DisplayName: "Billed Duration",
Unit: "seconds",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.report.billedDuration.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.report.billedDuration.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.report.billedDuration.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.report.duration",
DisplayName: "Invoke Duration",
Unit: "seconds",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.report.duration.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.report.duration.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.report.duration.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.report.initDuration",
DisplayName: "Invoke Init Duration",
Unit: "seconds",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.report.initDuration.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.report.initDuration.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.report.initDuration.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.report.maxMemoryUsed",
DisplayName: "Max Memory Used",
Unit: "bytes",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.report.maxMemoryUsed.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.report.maxMemoryUsed.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.report.maxMemoryUsed.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.report.memorySize",
DisplayName: "Memory Size",
Unit: "bytes",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.report.memorySize.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.report.memorySize.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.report.memorySize.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.runtimeDone.duration",
DisplayName: "Done Duration",
Unit: "seconds",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.runtimeDone.duration.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.runtimeDone.duration.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.runtimeDone.duration.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.platform.runtimeDone.producedBytes",
DisplayName: "Produced Bytes",
Unit: "bytes",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.platform.runtimeDone.producedBytes.avg", DisplayName: "avg", IsStacked: false},
{Name: "custom.lambda.platform.runtimeDone.producedBytes.max", DisplayName: "max", IsStacked: false},
{Name: "custom.lambda.platform.runtimeDone.producedBytes.min", DisplayName: "min", IsStacked: false},
},
},
{
Name: "custom.lambda.osstat.loadavg",
DisplayName: "loadavg",
Unit: "float",
Metrics: []*mackerel.GraphDefsMetric{
{Name: "custom.lambda.osstat.loadavg.loadavg1", DisplayName: "loadavg1", IsStacked: false},
{Name: "custom.lambda.osstat.loadavg.loadavg5", DisplayName: "loadavg5", IsStacked: false},
{Name: "custom.lambda.osstat.loadavg.loadavg15", DisplayName: "loadavg15", IsStacked: false},
},
},
}