/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/shared_examples/metrics/ |
H A D | active_record_subscriber_shared_examples.rb | 5 db_config_name = ::Gitlab::Database.db_config_names.first 6 db_config_name += "_replica" if db_role == :secondary 7 db_config_name 80 "db_#{db_config_name}_count": 0, 115 db_config_name 120 …receive(:increment).with(:gitlab_transaction_db_count_total, 1, { db_config_name: db_config_name }) 123 …receive(:increment).with(:gitlab_transaction_db_count_total, 1, { db_config_name: db_config_name }) 128 …e(:increment).with(:gitlab_transaction_db_write_count_total, 1, { db_config_name: db_config_name }) 130 …e(:increment).with(:gitlab_transaction_db_write_count_total, 1, { db_config_name: db_config_name }) 134 …(:increment).with(:gitlab_transaction_db_cached_count_total, 1, { db_config_name: db_config_name }) [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/metrics/subscribers/ |
H A D | active_record.rb | 43 db_config_name = db_config_name(event.payload) 44 increment(:count, db_config_name: db_config_name) 45 increment(:cached_count, db_config_name: db_config_name) if cached_query?(payload) 46 … increment(:write_count, db_config_name: db_config_name) unless select_sql_command?(payload) 88 db_config_name = db_config_name(payload) 90 increment(:count, db_role: db_role, db_config_name: db_config_name) 91 increment(:cached_count, db_role: db_role, db_config_name: db_config_name) if cached 94 increment(:wal_count, db_role: db_role, db_config_name: db_config_name) 111 db_config_name = db_config_name(event.payload) 138 current_transaction&.increment(prometheus_key, 1, { db_config_name: db_config_name }) [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/database/query_analyzers/ |
H A D | gitlab_schemas_metrics.rb | 21 db_config_name = ::Gitlab::Database.db_config_name(parsed.connection) 22 return unless db_config_name 32 db_config_name: db_config_name
|
H A D | prevent_cross_database_modification.rb | 46 database = ::Gitlab::Database.db_config_name(parsed.connection)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/database/query_analyzers/ |
H A D | gitlab_schemas_metrics_spec.rb | 30 db_config_name: "main" 38 db_config_name: "main" 46 db_config_name: "main" 54 db_config_name: "ci"
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/metrics/subscribers/ |
H A D | active_record_spec.rb | 11 let(:db_config_name) { ::Gitlab::Database.db_config_name(connection) } 40 … receive(:observe).with(:gitlab_database_transaction_seconds, 0.23, db_config_name: db_config_name) 60 …eive(:observe).with(:gitlab_database_transaction_seconds, 0.23, { db_config_name: db_config_name }) 80 … receive(:observe).with(:gitlab_database_transaction_seconds, 0.23, db_config_name: db_config_name) 201 … allow(connection).to receive_message_chain(:pool, :db_config, :name).and_return(db_config_name)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/peek/views/ |
H A D | active_record_spec.rb | 90 db_config_name: "Config name: the_db_config_name" 99 db_config_name: "Config name: the_db_config_name" 108 db_config_name: "Config name: the_db_config_name" 117 db_config_name: "Config name: the_db_config_name"
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/metrics/samplers/ |
H A D | database_sampler.rb | 67 db_config_name: klass.connection_db_config.name 76 db_config_name: Gitlab::Database.db_config_name(host.connection)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/database/load_balancing/ |
H A D | configuration.rb | 70 def db_config_name method in Gitlab.Database.LoadBalancing.Configuration 132 new_connection = ENV["GITLAB_LOAD_BALANCING_REUSE_PRIMARY_#{db_config_name}"] 138 …raise "Invalid value for 'GITLAB_LOAD_BALANCING_REUSE_PRIMARY_#{db_config_name}=#{new_connection}'"
|
H A D | load_balancer.rb | 32 @configuration.db_config_name
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/marginalia/ |
H A D | comment.rb | 45 def db_config_name method 46 ::Gitlab::Database.db_config_name(marginalia_adapter)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/metrics/samplers/ |
H A D | database_sampler_spec.rb | 16 db_config_name: 'main' 25 db_config_name: 'ci' 34 db_config_name: 'main_replica' 43 db_config_name: 'ci_replica'
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/database/ |
H A D | gitlab_schema_spec.rb | 16 Gitlab::Database.database_base_models.each do |db_config_name, db_class| 19 context "for #{db_config_name} using #{db_class}" do
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/peek/views/ |
H A D | active_record.rb | 68 db_config_name: "Config name: #{::Gitlab::Database.db_config_name(data[:connection])}"
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/sidekiq_logging/ |
H A D | structured_logger_spec.rb | 275 "db_#{db_config_name}_replica_count" => 0, 278 "db_#{db_config_name}_count" => a_value >= 1, 280 "db_#{db_config_name}_duration_s" => a_value > 0 322 ::Gitlab::Database.db_config_name(ApplicationRecord.retrieve_connection)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/ |
H A D | database_spec.rb | 203 expect(described_class.db_config_name(model.connection)) 207 expect(described_class.db_config_name(model.retrieve_connection)) 215 expect(described_class.db_config_name(replica)).to eq('main_replica')
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/services/loose_foreign_keys/ |
H A D | batch_cleaner_service.rb | 30 …deleted_records_counter.increment({ table: parent_table, db_config_name: LooseForeignKeys::Deleted…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/services/loose_foreign_keys/ |
H A D | batch_cleaner_service_spec.rb | 110 expect(counter.get(table: loose_fk_parent_table.table_name, db_config_name: 'main')).to eq(1)
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/ |
H A D | database.rb | 225 def self.db_config_name(connection) singletonMethod
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/database/load_balancing/ |
H A D | configuration_spec.rb | 199 subject { config.db_config_name }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/assets/javascripts/performance_bar/components/ |
H A D | performance_bar_app.vue | 47 keys: ['sql', 'cached', 'transaction', 'db_role', 'db_config_name'],
|