moduleGitlabmoduleHealthChecksclassDbCheckextendSimpleAbstractCheckclass<<selfprivatedefmetric_prefix'db_ping'enddefis_successful?(result)result=='1'enddefcheckcatch_timeout10.secondsdoifGitlab::Database.postgresql?ActiveRecord::Base.connection.execute('SELECT 1 as ping')&.first&.[]('ping')elseActiveRecord::Base.connection.execute('SELECT 1 as ping')&.first&.first&.to_sendendendendendendend