Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 5453bc2

Browse files
committed
DBA-886-CREATE-MAX-STORAGE-METRIC
1 parent f6012f4 commit 5453bc2

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

basic/metrics.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ var Metrics = []Metric{
151151
prometheusName: "aws_rds_login_failures_average",
152152
prometheusHelp: "LoginFailures",
153153
},
154+
{
155+
cwName: "MaxAllocatedStorage",
156+
prometheusName: "rds_max_allocated_storage_bytes",
157+
prometheusHelp: "Upper limit in gibibytes to which Amazon RDS can automatically scale the storage of the DB instance.",
158+
},
154159
{
155160
cwName: "NetworkReceiveThroughput",
156161
prometheusName: "aws_rds_network_receive_throughput_average",

enhanced/metrics.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ import (
2020
//
2121
//nolint:lll
2222
type osMetrics struct {
23-
Engine string `json:"engine" help:"The database engine for the DB instance."`
24-
InstanceID string `json:"instanceID" help:"The DB instance identifier."`
25-
InstanceResourceID string `json:"instanceResourceID" help:"A region-unique, immutable identifier for the DB instance, also used as the log stream identifier."`
26-
NumVCPUs int `json:"numVCPUs" help:"The number of virtual CPUs for the DB instance."`
27-
Timestamp time.Time `json:"timestamp" help:"The time at which the metrics were taken."`
28-
Uptime string `json:"uptime" help:"The amount of time that the DB instance has been active."`
29-
Version float64 `json:"version" help:"The version of the OS metrics' stream JSON format."`
23+
Engine string `json:"engine" help:"The database engine for the DB instance."`
24+
InstanceID string `json:"instanceID" help:"The DB instance identifier."`
25+
InstanceResourceID string `json:"instanceResourceID" help:"A region-unique, immutable identifier for the DB instance, also used as the log stream identifier."`
26+
NumVCPUs int `json:"numVCPUs" help:"The number of virtual CPUs for the DB instance."`
27+
Timestamp time.Time `json:"timestamp" help:"The time at which the metrics were taken."`
28+
Uptime string `json:"uptime" help:"The amount of time that the DB instance has been active."`
29+
Version float64 `json:"version" help:"The version of the OS metrics' stream JSON format."`
30+
MaxAllocatedStorage float64 `json:"maxAllocatedStorage" help:"Upper limit in gibibytes to which Amazon RDS can automatically scale the storage of the DB instance."`
3031

3132
CPUUtilization cpuUtilization `json:"cpuUtilization"`
3233
DiskIO []diskIO `json:"diskIO"`

0 commit comments

Comments
 (0)