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
430196b5
Unverified
Commit
430196b5
authored
Nov 07, 2018
by
Ben Kochie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update database metric prefix
Avoid conflict with postgres_exporter `pg_`.
parent
f4c4ef9c
Pipeline
#98369
passed with stage
in 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
README.md
+2
-2
lib/gitlab_monitor/database/tuple_stats.rb
lib/gitlab_monitor/database/tuple_stats.rb
+1
-1
No files found.
README.md
View file @
430196b5
...
...
@@ -18,9 +18,9 @@ metrics.
1.
Database
*
[
Per-table tuple stats
](
lib/gitlab_monitor/database/tuple_stats.rb
)
--
`
p
g_stat_table_*`
`g
itlab_database
_stat_table_*`
*
[
Row count queries
](
lib/gitlab_monitor/database/row_count.rb
)
--
`
db_rows_count
`
`
gitlab_database_rows
`
*
[
CI builds
](
lib/gitlab_monitor/database/ci_builds.rb
)
--
`ci_pending_builds`
,
`ci_created_builds`
,
`ci_stale_builds`
,
`ci_running_builds`
...
...
lib/gitlab_monitor/database/tuple_stats.rb
View file @
430196b5
...
...
@@ -35,7 +35,7 @@ module GitLab
result
.
each
do
|
table_name
,
tuple_stats
|
tuple_stats
.
each
do
|
column_name
,
value
|
@metrics
.
add
(
"
p
g_stat_table_
#{
column_name
}
"
,
value
.
to_s
,
table_name:
table_name
)
@metrics
.
add
(
"g
itlab_database
_stat_table_
#{
column_name
}
"
,
value
.
to_s
,
table_name:
table_name
)
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