Home
last modified time | relevance | path

Searched refs:db_config_name (Results 1 – 21 of 21) sorted by relevance

/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/support/shared_examples/metrics/
H A Dactive_record_subscriber_shared_examples.rb5 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 Dactive_record.rb43 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 Dgitlab_schemas_metrics.rb21 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 Dprevent_cross_database_modification.rb46 database = ::Gitlab::Database.db_config_name(parsed.connection)
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/database/query_analyzers/
H A Dgitlab_schemas_metrics_spec.rb30 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 Dactive_record_spec.rb11 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 Dactive_record_spec.rb90 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 Ddatabase_sampler.rb67 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 Dconfiguration.rb70 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 Dload_balancer.rb32 @configuration.db_config_name
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/marginalia/
H A Dcomment.rb45 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 Ddatabase_sampler_spec.rb16 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 Dgitlab_schema_spec.rb16 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 Dactive_record.rb68 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 Dstructured_logger_spec.rb275 "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 Ddatabase_spec.rb203 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 Dbatch_cleaner_service.rb30 …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 Dbatch_cleaner_service_spec.rb110 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 Ddatabase.rb225 def self.db_config_name(connection) singletonMethod
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/database/load_balancing/
H A Dconfiguration_spec.rb199 subject { config.db_config_name }
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/assets/javascripts/performance_bar/components/
H A Dperformance_bar_app.vue47 keys: ['sql', 'cached', 'transaction', 'db_role', 'db_config_name'],