Record db table sizes in datadog where we can use them to generate relevant alerts (#5377)

This commit is contained in:
Molly Struve 2020-01-06 15:52:47 -05:00 committed by GitHub
parent bc2dbd8e7f
commit bc8c177966
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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