Record db table sizes in datadog where we can use them to generate relevant alerts (#5377)
This commit is contained in:
parent
bc2dbd8e7f
commit
bc8c177966
1 changed files with 3 additions and 0 deletions
|
|
@ -123,5 +123,8 @@ task record_db_table_counts: :environment do
|
|||
table_size: estimate,
|
||||
}
|
||||
)
|
||||
DataDogStatsClient.gauge(
|
||||
"postgres.db_table_size", estimate, tags: { table_name: table_name }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue