Skip to content

Commit

Permalink
chore(metrics): Rename rds_replication_slot_disk_usage_average to rds…
Browse files Browse the repository at this point in the history
…_replication_slot_disk_usage_bytes
  • Loading branch information
vmercierfr committed Nov 14, 2023
1 parent 2fdae48 commit 3a3e95d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ It collect key metrics about:
| rds_read_throughput_bytes | `aws_account_id`, `aws_region`, `dbidentifier` | Average number of bytes read from disk per second |
| rds_transaction_logs_disk_usage_bytes | `aws_account_id`, `aws_region`, `dbidentifier` | Disk space used by transaction logs (only on PostgreSQL) |
| rds_replica_lag_seconds | `aws_account_id`, `aws_region`, `dbidentifier` | For read replica configurations, the amount of time a read replica DB instance lags behind the source DB instance. Applies to MariaDB, Microsoft SQL Server, MySQL, Oracle, and PostgreSQL read replicas |
| rds_replication_slot_disk_usage_average | `aws_account_id`, `aws_region`, `dbidentifier` | Disk space used by replication slot files. Applies to PostgreSQL |
| rds_replication_slot_disk_usage_bytes | `aws_account_id`, `aws_region`, `dbidentifier` | Disk space used by replication slot files. Applies to PostgreSQL |
| rds_swap_usage_bytes | `aws_account_id`, `aws_region`, `dbidentifier` | Amount of swap space used on the DB instance. This metric is not available for SQL Server |
| rds_usage_allocated_storage_bytes | `aws_account_id`, `aws_region` | Total storage used by AWS RDS instances |
| rds_usage_db_instances_average | `aws_account_id`, `aws_region` | AWS RDS instance count |
Expand Down
2 changes: 1 addition & 1 deletion internal/app/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func NewCollector(logger slog.Logger, collectorConfiguration Configuration, awsA
"For read replica configurations, the amount of time a read replica DB instance lags behind the source DB instance. Applies to MariaDB, Microsoft SQL Server, MySQL, Oracle, and PostgreSQL read replicas",
[]string{"aws_account_id", "aws_region", "dbidentifier"}, nil,
),
replicationSlotDiskUsage: prometheus.NewDesc("rds_replication_slot_disk_usage_average",
replicationSlotDiskUsage: prometheus.NewDesc("rds_replication_slot_disk_usage_bytes",
"Disk space used by replication slot files. Applies to PostgreSQL",
[]string{"aws_account_id", "aws_region", "dbidentifier"}, nil,
),
Expand Down

0 comments on commit 3a3e95d

Please sign in to comment.