Commit ccc81dcb authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Merge branch 'bjk/pg_stats' into 'master'

Update database metric prefix

See merge request gitlab-org/gitlab-monitor!76
parents 0947ae59 430196b5
Pipeline #98599 passed with stage
in 24 seconds
......@@ -18,9 +18,9 @@ metrics.
1. Database
* [Per-table tuple stats](lib/gitlab_monitor/database/tuple_stats.rb) --
`pg_stat_table_*`
`gitlab_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`
......
......@@ -35,7 +35,7 @@ module GitLab
result.each do |table_name, tuple_stats|
tuple_stats.each do |column_name, value|
@metrics.add("pg_stat_table_#{column_name}", value.to_s, table_name: table_name)
@metrics.add("gitlab_database_stat_table_#{column_name}", value.to_s, table_name: table_name)
end
end
......
Markdown is supported
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