2020-07-27 14:09:54 -04:00
|
|
|
UsageData/LargeTable:
|
|
|
|
Enabled: true
|
|
|
|
Include:
|
|
|
|
- 'lib/gitlab/usage_data.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/usage_data.rb'
|
|
|
|
NonRelatedClasses:
|
2020-09-02 14:10:40 -04:00
|
|
|
- :ActionMailer::Base
|
2020-08-19 14:10:34 -04:00
|
|
|
- :Date
|
2020-07-27 14:09:54 -04:00
|
|
|
- :Feature
|
|
|
|
- :Gitlab
|
|
|
|
- :Gitlab::AppLogger
|
|
|
|
- :Gitlab::Auth
|
|
|
|
- :Gitlab::CurrentSettings
|
|
|
|
- :Gitlab::Database
|
|
|
|
- :Gitlab::ErrorTracking
|
|
|
|
- :Gitlab::Geo
|
|
|
|
- :Gitlab::Git
|
|
|
|
- :Gitlab::IncomingEmail
|
|
|
|
- :Gitlab::Metrics
|
|
|
|
- :Gitlab::Runtime
|
|
|
|
- :Gitaly::Server
|
|
|
|
- :Gitlab::UsageData
|
2020-11-19 10:09:13 -05:00
|
|
|
- :Gitlab::UsageDataCounters
|
2021-01-21 10:08:36 -05:00
|
|
|
- :Arel::Nodes::NamedFunction
|
|
|
|
- :Arel
|
2020-07-27 14:09:54 -04:00
|
|
|
- :License
|
|
|
|
- :Rails
|
|
|
|
- :Time
|
|
|
|
- :SECURE_PRODUCT_TYPES
|
|
|
|
- :Settings
|
2020-10-16 08:09:33 -04:00
|
|
|
- :CE_MEMOIZED_VALUES
|
|
|
|
- :EE_MEMOIZED_VALUES
|
2021-03-03 10:10:53 -05:00
|
|
|
- :Ohai::System
|
2020-07-27 14:09:54 -04:00
|
|
|
CountMethods:
|
|
|
|
- :count
|
|
|
|
- :distinct_count
|
2021-03-12 13:09:23 -05:00
|
|
|
- :histogram
|
2020-07-27 14:09:54 -04:00
|
|
|
AllowedMethods:
|
|
|
|
- :arel_table
|
|
|
|
- :minimum
|
|
|
|
- :maximum
|
2021-05-27 17:10:59 -04:00
|
|
|
UsageData/HistogramWithLargeTable:
|
|
|
|
Enabled: true
|
|
|
|
Include:
|
|
|
|
- 'lib/gitlab/usage_data.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/usage_data.rb'
|
|
|
|
HighTrafficModels: &high_traffic_models # models for all high traffic tables in Migration/UpdateLargeTable
|
|
|
|
- 'AuditEvent'
|
|
|
|
- 'CommitStatus'
|
|
|
|
- 'Ci::Processable'
|
|
|
|
- 'Ci::Bridge'
|
|
|
|
- 'Ci::Build'
|
|
|
|
- 'GenericCommitStatus'
|
|
|
|
- 'Ci::BuildMetadata'
|
|
|
|
- 'Ci::JobArtifact'
|
|
|
|
- 'Ci::PipelineVariable'
|
|
|
|
- 'Ci::Pipeline'
|
|
|
|
- 'Ci::Stage'
|
|
|
|
- 'Deployment'
|
|
|
|
- 'Event'
|
|
|
|
- 'PushEvent'
|
|
|
|
- 'Issue'
|
|
|
|
- 'MergeRequestDiffCommit'
|
|
|
|
- 'MergeRequestDiffFile'
|
|
|
|
- 'MergeRequestDiff'
|
|
|
|
- 'MergeRequest::Metrics'
|
|
|
|
- 'MergeRequest'
|
|
|
|
- 'NamespaceSetting'
|
|
|
|
- 'Namespace'
|
|
|
|
- 'Group'
|
|
|
|
- 'NoteDiffFile'
|
|
|
|
- 'Note'
|
|
|
|
- 'DiffNote'
|
|
|
|
- 'DiscussionNote'
|
|
|
|
- 'SyntheticNote'
|
|
|
|
- 'LabelNote'
|
|
|
|
- 'MilestoneNote'
|
|
|
|
- 'StateNote'
|
|
|
|
- 'LegacyDiffNote'
|
|
|
|
- 'ProjectAuthorization'
|
|
|
|
- 'Project'
|
|
|
|
- 'ProjectCiCdSetting'
|
|
|
|
- 'ProjectSetting'
|
|
|
|
- 'ProjectFeature'
|
|
|
|
- 'ProtectedBranch'
|
|
|
|
- 'ExportedProtectedBranch'
|
|
|
|
- 'PushEventPayload'
|
|
|
|
- 'ResourceLabelEvent'
|
|
|
|
- 'Route'
|
|
|
|
- 'SentNotification'
|
|
|
|
- 'SystemNoteMetadata'
|
|
|
|
- 'ActsAsTaggableOn::Tagging'
|
|
|
|
- 'Todo'
|
|
|
|
- 'User'
|
|
|
|
- 'UserPreference'
|
|
|
|
- 'UserDetail'
|
|
|
|
- 'Vulnerabilities::Finding'
|
|
|
|
- 'WebHookLog'
|
2020-08-18 05:10:05 -04:00
|
|
|
UsageData/DistinctCountByLargeForeignKey:
|
|
|
|
Enabled: true
|
|
|
|
Include:
|
|
|
|
- 'lib/gitlab/usage_data.rb'
|
|
|
|
- 'ee/lib/ee/gitlab/usage_data.rb'
|
|
|
|
AllowedForeignKeys:
|
2020-09-16 14:09:47 -04:00
|
|
|
- 'agent_id'
|
|
|
|
- 'author_id'
|
|
|
|
- 'clusters.user_id'
|
|
|
|
- 'creator_id'
|
|
|
|
- 'issue_id'
|
|
|
|
- 'merge_request_id'
|
|
|
|
- 'merge_requests.target_project_id'
|
|
|
|
- 'owner_id'
|
|
|
|
- 'project_id'
|
|
|
|
- 'user_id'
|
2020-11-05 10:09:04 -05:00
|
|
|
- 'resource_owner_id'
|
2020-11-19 19:09:06 -05:00
|
|
|
- 'requirement_id'
|
2021-05-21 05:10:16 -04:00
|
|
|
UsageData/InstrumentationSuperclass:
|
|
|
|
Enabled: true
|
|
|
|
Include:
|
|
|
|
- 'lib/gitlab/usage/metrics/instrumentations/**/*.rb'
|
|
|
|
AllowedClasses:
|
|
|
|
- :DatabaseMetric
|
|
|
|
- :GenericMetric
|
|
|
|
- :RedisHLLMetric
|
2021-07-29 23:08:43 -04:00
|
|
|
- :RedisMetric
|
2022-05-31 08:09:12 -04:00
|
|
|
- :NumbersMetric
|
2022-10-05 17:09:08 -04:00
|
|
|
- :AggregatedMetric
|