Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
927f12e0
Commit
927f12e0
authored
Feb 07, 2017
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Gemfile.lock
Gemfile.lock
+1
-1
lib/gitlab_monitor/database/tuple_stats.rb
lib/gitlab_monitor/database/tuple_stats.rb
+1
-1
lib/gitlab_monitor/version.rb
lib/gitlab_monitor/version.rb
+1
-1
No files found.
Gemfile.lock
View file @
927f12e0
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)
...
...
lib/gitlab_monitor/database/tuple_stats.rb
View file @
927f12e0
...
...
@@ -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
}
...
...
lib/gitlab_monitor/version.rb
View file @
927f12e0
module
GitLab
module
Monitor
VERSION
=
"1.
0
.0"
.
freeze
VERSION
=
"1.
1
.0"
.
freeze
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment