Commit 51af95f9 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Remove projects_prometheus_active from EE

parent 4777f8e0
...@@ -309,7 +309,6 @@ module EE ...@@ -309,7 +309,6 @@ module EE
def usage_activity_by_stage_monitor(time_period) def usage_activity_by_stage_monitor(time_period)
super.merge({ super.merge({
operations_dashboard_users_with_projects_added: distinct_count(UsersOpsDashboardProject.joins(:user).merge(::User.active).where(time_period), :user_id), operations_dashboard_users_with_projects_added: distinct_count(UsersOpsDashboardProject.joins(:user).merge(::User.active).where(time_period), :user_id),
projects_prometheus_active: distinct_count(::Project.with_active_prometheus_service.where(time_period), :creator_id),
projects_incident_sla_enabled: count(::Project.with_enabled_incident_sla) projects_incident_sla_enabled: count(::Project.with_enabled_incident_sla)
}) })
end end
......
...@@ -457,12 +457,10 @@ RSpec.describe Gitlab::UsageData do ...@@ -457,12 +457,10 @@ RSpec.describe Gitlab::UsageData do
expect(described_class.usage_activity_by_stage_monitor({})).to include( expect(described_class.usage_activity_by_stage_monitor({})).to include(
operations_dashboard_users_with_projects_added: 2, operations_dashboard_users_with_projects_added: 2,
projects_prometheus_active: 2,
projects_incident_sla_enabled: 2 projects_incident_sla_enabled: 2
) )
expect(described_class.usage_activity_by_stage_monitor(described_class.last_28_days_time_period)).to include( expect(described_class.usage_activity_by_stage_monitor(described_class.last_28_days_time_period)).to include(
operations_dashboard_users_with_projects_added: 1, operations_dashboard_users_with_projects_added: 1,
projects_prometheus_active: 1,
projects_incident_sla_enabled: 2 projects_incident_sla_enabled: 2
) )
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