Skip to content

Commit d1ee79c

Browse files
authored
RHDHPAI-804: Multi-analytics provider (Adoption Insights plugin) (#1229)
* Incorporate changes * Made a few changes * Rebased branch and modularized content * Incorporated Rohit's comments * Incorporated Ben's comments except one * Incorporated changes * Minor change * Added Karthik's comments * Minor changes * Incorporated some of Ben's comments * Incorporated the rest of Ben's comments * Incorporated Karthik's comments * Combined the modifying topics together * Incorporated Judy's comments
1 parent 6bc4256 commit d1ee79c

13 files changed

+204
-254
lines changed

assemblies/assembly-adoption-insights.adoc

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
[id="assembly-adoption-insights"]
22
= Adoption Insights
33

4-
include::../artifacts/snip-developer-preview.adoc[]
4+
The {product} instance comes with the Adoption Insights plugin preinstalled and enabled by default.
55

6-
//about adoption insights
7-
include::modules/observe/adoption-insights/con-about-adoption-insights.adoc[leveloffset=+1]
6+
As organizations generate an increasing number of data events, there is a growing need for detailed insights into the adoption and engagement metrics of the internal developer portal. These insights help platform engineers make data-driven decisions to improve its performance, usability, and translate them into actionable insights.
87

9-
//installing adoption insights
10-
include::modules/observe/adoption-insights/proc-install-adoption-insights.adoc[leveloffset=+1]
8+
You can use Adoption Insights in {product} to visualize key metrics and trends to get information about the usage of {product-short} in your organization. The information provided by Adoption Insights in {product-short} helps you pinpoint areas of improvement, highlights popular features, and evaluates progress toward adoption goals. You can also monitor user growth against licensed users and identify trends over time.
9+
10+
The Adoption Insights dashboard in {product-short} includes the following cards:
11+
12+
* *Active users*
13+
* *Total number of users*
14+
* *Top catalog entities*
15+
* *Top 3 templates*
16+
* *Top 3 techdocs*
17+
* *Top 3 plugins*
18+
* *Portal searches*
19+
20+
image::rhdh-plugins-reference/adoption-insights.jpg[adoption insights]
1121

1222
//configuring adoption insights
1323
include::modules/observe/adoption-insights/proc-configure-adoption-insights.adoc[leveloffset=+1]
1424

25+
//disabling adoption insights
26+
include::modules/observe/adoption-insights/proc-customize-adoption-insights.adoc[leveloffset=+1]
27+
1528
//using adoption insights
1629
include::modules/observe/adoption-insights/proc-using-adoption-insights.adoc[leveloffset=+1]
1730

@@ -21,6 +34,18 @@ include::modules/observe/adoption-insights/proc-setting-duration-of-data-metrics
2134
//viewing cards
2235
include::modules/observe/adoption-insights/proc-viewing-adoption-insights-card.adoc[leveloffset=+1]
2336

37+
include::modules/observe/adoption-insights/proc-viewing-active-users.adoc[leveloffset=+2]
38+
39+
include::modules/observe/adoption-insights/proc-viewing-total-number-of-users.adoc[leveloffset=+2]
40+
41+
include::modules/observe/adoption-insights/proc-viewing-top-catalog-entities.adoc[leveloffset=+2]
42+
43+
include::modules/observe/adoption-insights/proc-viewing-top-templates.adoc[leveloffset=+2]
44+
45+
include::modules/observe/adoption-insights/proc-viewing-top-techdocs.adoc[leveloffset=+2]
46+
47+
include::modules/observe/adoption-insights/proc-viewing-top-plugins.adoc[leveloffset=+2]
48+
2449
//modify number of displayed records
2550
include::modules/observe/adoption-insights/proc-modify-number-of-displayed-records.adoc[leveloffset=+1]
2651

modules/observe/adoption-insights/con-about-adoption-insights.adoc

Lines changed: 0 additions & 24 deletions
This file was deleted.

modules/observe/adoption-insights/proc-configure-adoption-insights.adoc

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,4 @@
22
[id="proc-configure-adoption-insights_{context}"]
33
= Configuring the Adoption Insights plugin in {product}
44

5-
You can enable the Adoption Insights plugin by configuring the {product} Helm chart or the {product} Operator ConfigMap.
6-
7-
.Procedure
8-
9-
* To configure the Adoption Insights plugin in {product-short}, in your {product} `app-config.yaml` file, add the following code:
10-
+
11-
.`app-config.yaml` fragment
12-
[source,terminal]
13-
----
14-
app:
15-
analytics:
16-
adoptionInsights:
17-
maxBufferSize: 20 <1>
18-
flushInterval: 5000 <2>
19-
debug: false <3>
20-
licensedUsers: 2000 <4>
21-
----
22-
<1> (Optional) Specifies the maximum buffer size for event batching. The default value is `20`.
23-
<2> (Optional) Specifies the flush interval in milliseconds for event batching. The default value is `5000ms`.
24-
<3> (Optional) The default value is `false`.
25-
<4> (Optional) Specifies the maximum number of licensed users who can access the RHDH instance. The default value is `100`.
5+
The Adoption Insights plugin is preinstalled and enabled on a {product-short} instance by default. You can disable or enable the Adoption Insights plugin and change other parameters, by configuring the `app-config` ConfigMap, which is created by the {product} Helm chart or Operator.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * assemblies/assembly-rhdh-observability.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="proc-customize-adoption-insights_{context}"]
7+
= Customizing the Adoption Insights plugin in {product}
8+
9+
You can customize the Adoption Insights plugin to suit your needs by disabling or re-enabling it, and adjusting other settings as needed.
10+
11+
12+
[IMPORTANT]
13+
====
14+
If you used the developer preview of the Adoption Insights plugin and configured the feature manually, you must remove those earlier configuration changes as they are no longer required.
15+
16+
In your dynamic plugins ConfigMap, for example: `dynamic-plugins-rhdh.yaml`, update the `package-disabled` value of the plugin to `false` as shown in the following example:
17+
18+
.`dynamic-plugins.yaml` fragment
19+
[source,yaml]
20+
----
21+
plugins:
22+
- package: ./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment
23+
disabled: false
24+
----
25+
====
26+
27+
.Procedure
28+
29+
* To customize `maxBufferSize`, `flushInterval`, `debug`, and `licensedUsers` in the Adoption Insights plugin, in your {product} `app-config.yaml` file, update the relevant settings as shown in the following code:
30+
+
31+
.`app-config.yaml` fragment
32+
[source,terminal]
33+
----
34+
app:
35+
analytics:
36+
adoptionInsights:
37+
maxBufferSize: _<maximum_buffer_size>_ <1>
38+
flushInterval: _<flush_interval>_ <2>
39+
debug: _<debug_value>_ <3>
40+
licensedUsers: _<licensed_users>_ <4>
41+
----
42+
<1> (Optional) Specifies the maximum buffer size for event batching. The default value is `20`.
43+
<2> (Optional) Specifies the flush interval in milliseconds for event batching. The default value is `5000ms`.
44+
<3> (Optional) The default value is `false`.
45+
<4> (Optional) Specifies the maximum number of licensed users who can access the {product-very-short} instance. The default value is `100`.
46+
47+
* To disable the Adoption Insights plugin, in your dynamic plugins ConfigMap, for example `dynamic-plugins-rhdh.yaml` file, update the `package.disabled` value of the plugin to `true` as shown in the following example:
48+
+
49+
[source,yaml]
50+
----
51+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-adoption-insights
52+
disabled: true
53+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-adoption-insights-backend-dynamic
54+
disabled: true
55+
- package: ./dynamic-plugins/dist/red-hat-developer-hub-backstage-plugin-analytics-module-adoption-insights-dynamic
56+
disabled: true
57+
----
58+
59+
* Optional: Configure the required RBAC permission for the users who are not administrators as shown in the following example:
60+
+
61+
[source,yaml]
62+
----
63+
p, role:default/_<your_team>_, adoption-insights.events.read, read, allow
64+
g, user:default/_<your_user>_, role:default/_<your_team>_
65+
----
66+
See link:{authorization-book-url}#ref-rbac-permission-policies_title-authorization[Permission policies in {product}].
67+

modules/observe/adoption-insights/proc-install-adoption-insights.adoc

Lines changed: 0 additions & 64 deletions
This file was deleted.

modules/observe/adoption-insights/proc-modify-number-of-displayed-records.adoc

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,24 @@
22
[id="proc-modify-number-of-displayed-records_{context}"]
33
= Modifying the number of displayed records
44

5-
== Modifying the number of displayed records in Top catalog entities
5+
You can modify the number of displayed records in Adoption Insights for the following cards.
66

7-
You can modify the number of records that are displayed in the *Top catalog entities* card. You can select any of the following number of records for display:
7+
* *Top catalog entities*
8+
* *Top 3 templates*
9+
* *Top 3 techdocs*
10+
* *Top 3 plugins*
811
9-
* *Top 3*
10-
* *Top 5*
11-
* *Top 10*
12-
* *Top 20*
13-
14-
By default, the top three most viewed catalog entities are displayed.
15-
16-
.Procedure
17-
18-
* Go to *Administration -> Adoption Insights* and click the *Down* arrow next to *3 rows* to change the number of displayed records.
19-
20-
image::rhdh-plugins-reference/adoption-insights-catalog-entities.jpg[Catalog Entities dropdown]
21-
22-
== Modifying the number of displayed records in Top 3 templates
23-
24-
You can modify the number of records that are displayed in the *Top 3 templates* card. You can select any of the following number of records for display:
25-
26-
* *Top 3*
27-
* *Top 5*
28-
* *Top 10*
29-
* *Top 20*
30-
31-
By default, the top three most viewed templates are displayed.
32-
33-
.Procedure
34-
35-
* Go to *Administration -> Adoption Insights* and click the *Down* arrow next to *3 rows* to change the number of displayed records.
36-
37-
== Modifying the number of displayed records in Top 3 techdocs
38-
39-
You can modify the number of records that are displayed in the *Top 3 techdocs* card. You can select any of the following number of records for display:
12+
You can select any of the following number of records for display:
4013

4114
* *Top 3*
4215
* *Top 5*
4316
* *Top 10*
4417
* *Top 20*
4518
46-
By default, the top three most viewed TechDocs are displayed.
19+
By default, the top three most viewed catalog entities are displayed.
4720

4821
.Procedure
4922

5023
* Go to *Administration -> Adoption Insights* and click the *Down* arrow next to *3 rows* to change the number of displayed records.
5124
52-
== Modifying the number of displayed records in Top 3 plugins
53-
54-
You can modify the number of records that are displayed in the *Top 3 plugins* card. You can select any of the following number of records for display:
55-
56-
* *Top 3*
57-
* *Top 5*
58-
* *Top 10*
59-
* *Top 20*
60-
61-
By default, the top three most viewed plugins are displayed.
62-
63-
.Procedure
64-
65-
* Go to *Administration -> Adoption Insights* and click the *Down* arrow next to *3 rows* to change the number of displayed records.
25+
image::rhdh-plugins-reference/adoption-insights-catalog-entities.jpg[Catalog Entities dropdown]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
[id="proc-viewing-active-users_{context}"]
3+
= Viewing the active users
4+
5+
The *Active users* card displays the total number of active users over a specified date and time period. You can export the user data in a .csv format.
6+
7+
* *Returning users*: Existing users who have logged into {product-short} previously
8+
9+
* *New users*: New users who have registered and logged into {product-short} for the first time
10+
11+
image::rhdh-plugins-reference/active-users.jpg[active users]
12+
13+
.Procedure
14+
15+
* To view the list of active users in your {product} instance, go to *Administration -> Adoption Insights*, see the *Active users* card.
16+
17+
* To view the exact number of users for a particular day, hover over the corresponding date in the *Active users* card.
18+
19+
* To export the user data in a .csv format, click the *Export CSV* link.

0 commit comments

Comments
 (0)