Commit 2eb2cf51 authored by Ben Kochie's avatar Ben Kochie

Add Prometheus active projects to usage data

Collect the number of projects with active Prometheus monitoring.
parent c476b27a
...@@ -40,6 +40,7 @@ module Gitlab ...@@ -40,6 +40,7 @@ module Gitlab
notes: Note.count, notes: Note.count,
pages_domains: PagesDomain.count, pages_domains: PagesDomain.count,
projects: Project.count, projects: Project.count,
projects_prometheus_active: PrometheusService.active.count,
protected_branches: ProtectedBranch.count, protected_branches: ProtectedBranch.count,
releases: Release.count, releases: Release.count,
remote_mirrors: RemoteMirror.count, remote_mirrors: RemoteMirror.count,
......
...@@ -54,6 +54,7 @@ describe Gitlab::UsageData do ...@@ -54,6 +54,7 @@ describe Gitlab::UsageData do
milestones milestones
notes notes
projects projects
projects_prometheus_active
pages_domains pages_domains
protected_branches protected_branches
releases releases
......
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