Skip to content

Commit

Permalink
add max allocated storage metric
Browse files Browse the repository at this point in the history
Signed-off-by: andrefrco <andre.frco@gmail.com>
  • Loading branch information
andrefrco committed Oct 25, 2024
1 parent f6012f4 commit fb30956
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions basic/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ var Metrics = []Metric{
prometheusName: "aws_rds_login_failures_average",
prometheusHelp: "LoginFailures",
},
{
cwName: "MaxAllocatedStorage",
prometheusName: "rds_max_allocated_storage_bytes",
prometheusHelp: "Upper limit in gibibytes to which Amazon RDS can automatically scale the storage of the DB instance.",
},
{
cwName: "NetworkReceiveThroughput",
prometheusName: "aws_rds_network_receive_throughput_average",
Expand Down
15 changes: 8 additions & 7 deletions enhanced/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ import (
//
//nolint:lll
type osMetrics struct {
Engine string `json:"engine" help:"The database engine for the DB instance."`
InstanceID string `json:"instanceID" help:"The DB instance identifier."`
InstanceResourceID string `json:"instanceResourceID" help:"A region-unique, immutable identifier for the DB instance, also used as the log stream identifier."`
NumVCPUs int `json:"numVCPUs" help:"The number of virtual CPUs for the DB instance."`
Timestamp time.Time `json:"timestamp" help:"The time at which the metrics were taken."`
Uptime string `json:"uptime" help:"The amount of time that the DB instance has been active."`
Version float64 `json:"version" help:"The version of the OS metrics' stream JSON format."`
Engine string `json:"engine" help:"The database engine for the DB instance."`
InstanceID string `json:"instanceID" help:"The DB instance identifier."`
InstanceResourceID string `json:"instanceResourceID" help:"A region-unique, immutable identifier for the DB instance, also used as the log stream identifier."`
NumVCPUs int `json:"numVCPUs" help:"The number of virtual CPUs for the DB instance."`
Timestamp time.Time `json:"timestamp" help:"The time at which the metrics were taken."`
Uptime string `json:"uptime" help:"The amount of time that the DB instance has been active."`
Version float64 `json:"version" help:"The version of the OS metrics' stream JSON format."`
MaxAllocatedStorage float64 `json:"maxAllocatedStorage" help:"Upper limit in gibibytes to which Amazon RDS can automatically scale the storage of the DB instance."`

CPUUtilization cpuUtilization `json:"cpuUtilization"`
DiskIO []diskIO `json:"diskIO"`
Expand Down

0 comments on commit fb30956

Please sign in to comment.