From 81669565a9ca305ae5dcda9abf880b949a695737 Mon Sep 17 00:00:00 2001
From: Mike Jang <mjang@gitlab.com>
Date: Mon, 2 Nov 2020 09:31:31 -0800
Subject: [PATCH 1/2] Add feature flag to instance statistics

---
 .../analytics/instance_statistics.md          | 26 +++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/doc/user/admin_area/analytics/instance_statistics.md b/doc/user/admin_area/analytics/instance_statistics.md
index 0260fcf26d1d5091..ae756ada7109bbcc 100644
--- a/doc/user/admin_area/analytics/instance_statistics.md
+++ b/doc/user/admin_area/analytics/instance_statistics.md
@@ -1,6 +1,6 @@
 ---
-stage: none
-group: unassigned
+stage: Manage
+group: Analytics
 info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#designated-technical-writers
 ---
 
@@ -8,6 +8,9 @@ info: To determine the technical writer assigned to the Stage/Group associated w
 
 > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/235754) in GitLab 13.4.
 
+CAUTION: **Warning:**
+This feature might not be available to you. Check the **version history** note above for details.
+
 Instance Statistics gives you an overview of how much data your instance contains, and how quickly this volume is changing over time.
 
 To see Instance Statistics, go to **Admin Area > Analytics > Instance Statistics**.
@@ -33,3 +36,22 @@ in the categories shown in [Total counts](#total-counts).
 These charts help you visualize how rapidly these records are being created on your instance.
 
 ![Instance Activity Pipelines chart](img/instance_activity_pipelines_chart_v13_6.png)
+
+### Enable or disable Instance Statistics
+
+Instance Statistics is under development and not ready for production use. It is
+deployed behind a feature flag that is **disabled by default**.
+[GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md)
+can enable it.
+
+To enable it:
+
+```ruby
+Feature.enable(:instance_statistics)
+```
+
+To disable it:
+
+```ruby
+Feature.enable(:instance_statistics)
+```
-- 
GitLab


From 70ef737fe5bd8f15e46a227a7a8c027a628f7d97 Mon Sep 17 00:00:00 2001
From: Mike Jang <mjang@gitlab.com>
Date: Mon, 2 Nov 2020 21:04:18 +0000
Subject: [PATCH 2/2] Apply 1 suggestion(s) to 1 file(s)

---
 doc/user/admin_area/analytics/instance_statistics.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/user/admin_area/analytics/instance_statistics.md b/doc/user/admin_area/analytics/instance_statistics.md
index ae756ada7109bbcc..1df3ac3c7dc9178c 100644
--- a/doc/user/admin_area/analytics/instance_statistics.md
+++ b/doc/user/admin_area/analytics/instance_statistics.md
@@ -53,5 +53,5 @@ Feature.enable(:instance_statistics)
 To disable it:
 
 ```ruby
-Feature.enable(:instance_statistics)
+Feature.disable(:instance_statistics)
 ```
-- 
GitLab