Skip to content

Commit

Permalink
RDS: add the multi_az label to the aws_rds_info metric
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Jun 5, 2023
1 parent 89c6c2f commit 14bba87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rds/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
var (
dInfo = utils.Desc("aws_rds_info", "RDS instance info",
"region", "availability_zone", "endpoint", "ipv4", "port",
"engine", "engine_version", "instance_type", "storage_type",
"engine", "engine_version", "instance_type", "storage_type", "multi_az",
"secondary_availability_zone", "cluster_id", "source_instance_id",
)
dStatus = utils.Desc("aws_rds_status", "Status of the RDS instance", "status")
Expand Down Expand Up @@ -184,6 +184,8 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
aws.StringValue(i.DBInstanceClass),
aws.StringValue(i.StorageType),

strconv.FormatBool(aws.BoolValue(i.MultiAZ)),

aws.StringValue(i.SecondaryAvailabilityZone),

utils.IdWithRegion(c.region, aws.StringValue(i.DBClusterIdentifier)),
Expand Down

0 comments on commit 14bba87

Please sign in to comment.