Commit 927f12e0 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Gather `seq_scan` from `pg_stat_user_tables` per table

Closes #13
parent 13d6dbad
Pipeline #38884 passed with stage
in 5 minutes and 13 seconds
PATH PATH
remote: . remote: .
specs: specs:
gitlab-monitor (1.0.0) gitlab-monitor (1.1.0)
pg (~> 0.18.4) pg (~> 0.18.4)
quantile (~> 0.2.0) quantile (~> 0.2.0)
redis-namespace (~> 1.5.2) redis-namespace (~> 1.5.2)
......
...@@ -5,7 +5,7 @@ module GitLab ...@@ -5,7 +5,7 @@ module GitLab
# #
# It takes a connection string (e.g. "dbname=test port=5432") # It takes a connection string (e.g. "dbname=test port=5432")
class TupleStatsCollector < Base class TupleStatsCollector < Base
COLUMNS = %w(relname seq_tup_read idx_tup_fetch n_tup_ins n_tup_upd n_tup_del n_tup_hot_upd n_dead_tup) COLUMNS = %w(relname seq_tup_read idx_tup_fetch n_tup_ins n_tup_upd n_tup_del n_tup_hot_upd n_dead_tup seq_scan)
.join(",") .join(",")
QUERY = <<-SQL.freeze QUERY = <<-SQL.freeze
SELECT #{COLUMNS} SELECT #{COLUMNS}
......
module GitLab module GitLab
module Monitor module Monitor
VERSION = "1.0.0".freeze VERSION = "1.1.0".freeze
end end
end end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment