Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #
PATH
remote: .
specs:
gitlab-monitor (1.0.0)
gitlab-monitor (1.1.0)
pg (~> 0.18.4)
quantile (~> 0.2.0)
redis-namespace (~> 1.5.2)
Loading
Loading
Loading
Loading
@@ -5,7 +5,7 @@ module GitLab
#
# It takes a connection string (e.g. "dbname=test port=5432")
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(",")
QUERY = <<-SQL.freeze
SELECT #{COLUMNS}
Loading
Loading
module GitLab
module Monitor
VERSION = "1.0.0".freeze
VERSION = "1.1.0".freeze
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment