Skip to content

Commit 7678e0b

Browse files
author
GitHub Actions
committed
Reorganize Segment/Telemetry instructions into its own category
Reorganize Segment/Telemetry instructions into its own category Reorganize Segment/Telemetry instructions into its own category Reorganize Segment/Telemetry instructions into its own category Reorganize Segment/Telemetry instructions into its own category
1 parent c87a8b1 commit 7678e0b

20 files changed

+339
-18
lines changed
+24-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[id="assembly-rhdh-telemetry"]
2-
= Telemetry data collection
2+
= Telemetry data collection and analysis
33

44
The telemetry data collection feature helps in collecting and analyzing the telemetry data to improve your experience with {product}. This feature is enabled by default.
55

@@ -10,32 +10,44 @@ As an administrator, you can disable the telemetry data collection feature based
1010

1111
{company-name} collects and analyzes the following data:
1212

13+
*Web Analytics (Segment)*
14+
15+
Web Analytics tracks user behavior and interactions with {product}. Specifically, it tracks the following:
16+
1317
* Events of page visits and clicks on links or buttons.
14-
* System-related information, for example, locale, timezone, user agent including browser and OS details.
18+
* System-related information, for example, locale, time zone, user agent including browser and OS details.
1519
* Page-related information, for example, title, category, extension name, URL, path, referrer, and search parameters.
1620
* Anonymized IP addresses, recorded as `0.0.0.0`.
1721
* Anonymized username hashes, which are unique identifiers used solely to identify the number of unique users of the {product-very-short} application.
1822

19-
With {product-very-short}, you can customize the telemetry data collection feature and the telemetry Segment source configuration based on your needs.
23+
*System Observability (OpenTelemetry)*
24+
25+
System Observability tracks the performance of the {product-very-short}. Specifically, it tracks the following:
26+
27+
* Key system metrics such as CPU usage, memory usage, and other performance indicators.
28+
* Information about system components, such as the locale, timezone, and user agent (including details of the browser and operating system).
29+
* Traces and logs monitor system processes, allowing you to troubleshoot potential issues impacting the performance of {product-very-short}.
30+
31+
With {product-very-short}, you can customize the _Web Analytics_ and _System Observability_ configuration based on your needs.
2032

2133

2234
// disabling telemetry
23-
include::modules/observe/ref-disabling-telemetry.adoc[leveloffset=+1]
35+
include::modules/observe/analytics/ref-disabling-telemetry.adoc[leveloffset=+1]
2436

25-
include::modules/observe/proc-disabling-telemetry-using-operator.adoc[leveloffset=+2]
37+
include::modules/observe/analytics/proc-disabling-telemetry-using-operator.adoc[leveloffset=+2]
2638

27-
include::modules/observe/proc-disabling-telemetry-using-helm.adoc[leveloffset=+2]
39+
include::modules/observe/analytics/proc-disabling-telemetry-using-helm.adoc[leveloffset=+2]
2840

2941
// enabling telemetry
30-
include::modules/observe/ref-enabling-telemetry.adoc[leveloffset=+1]
42+
include::modules/observe/analytics/ref-enabling-telemetry.adoc[leveloffset=+1]
3143

32-
include::modules/observe/proc-enabling-telemetry-using-operator.adoc[leveloffset=+2]
44+
include::modules/observe/analytics/proc-enabling-telemetry-using-operator.adoc[leveloffset=+2]
3345

34-
include::modules/observe/proc-enabling-telemetry-using-helm.adoc[leveloffset=+2]
46+
include::modules/observe/analytics/proc-enabling-telemetry-using-helm.adoc[leveloffset=+2]
3547

3648
// customizing telemetry segment source
37-
include::modules/observe/ref-customizing-telemetry-segment.adoc[leveloffset=+1]
49+
include::modules/observe/analytics/ref-customizing-telemetry-segment.adoc[leveloffset=+1]
3850

39-
include::modules/observe/proc-customizing-telemetry-segment-using-operator.adoc[leveloffset=+2]
51+
include::modules/observe/analytics/proc-customizing-telemetry-segment-using-operator.adoc[leveloffset=+2]
4052

41-
include::modules/observe/proc-customizing-telemetry-segment-using-helm.adoc[leveloffset=+2]
53+
include::modules/observe/analytics/proc-customizing-telemetry-segment-using-helm.adoc[leveloffset=+2]

modules/observe/proc-customizing-telemetry-segment-using-helm.adoc renamed to modules/analytics/proc-customizing-telemetry-segment-using-helm.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[id="proc-customizing-telemetry-segment-using-helm_{context}"]
2-
= Customizing telemetry Segment source using the Helm Chart
2+
= Customizing Segment source using the Helm Chart
33

44
You can configure integration with your Segment source by using the Helm Chart.
55

modules/observe/proc-customizing-telemetry-segment-using-operator.adoc renamed to modules/analytics/proc-customizing-telemetry-segment-using-operator.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[id="proc-customizing-telemetry-segment-using-operator_{context}"]
2-
= Customizing telemetry Segment source using the Operator
2+
= Customizing Segment source using the Operator
33

44
You can configure integration with your Segment source by using the Operator.
55

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[id="proc-customizing-telemetry-segment-using-helm_{context}"]
2+
= Customizing Segment source using the Helm Chart
3+
4+
You can configure integration with your Segment source by using the Helm Chart.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Helm Chart.
10+
11+
.Procedure
12+
13+
. In the *Developer* perspective of the {ocp-short} web console, go to the *Helm* view to see the list of Helm releases.
14+
. Click the *overflow* menu on the Helm release that you want to use and select *Upgrade*.
15+
. Use either the *Form* view or *YAML* view to edit the Helm configuration:
16+
** Using *Form view*
17+
+
18+
.. Expand *Root Schema → Backstage Chart Schema → Backstage Parameters → Backstage container environment variables*.
19+
.. Click the *Add Backstage container environment variables* link.
20+
.. Enter the name and value of the Segment key.
21+
+
22+
image::rhdh/segment-source-helm.png[]
23+
24+
.. Click *Upgrade*.
25+
26+
** Using *YAML view*
27+
+
28+
.. Add the following YAML code in your Helm configuration file:
29+
+
30+
[source,yaml]
31+
----
32+
# ...
33+
upstream:
34+
backstage:
35+
extraEnvVars:
36+
- name: SEGMENT_WRITE_KEY
37+
value: <segment_key> # <1>
38+
# ...
39+
----
40+
<1> Replace `<segment_key>` with a unique identifier for your Segment source.
41+
42+
.. Click *Upgrade*.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[id="proc-customizing-telemetry-segment-using-operator_{context}"]
2+
= Customizing Segment source using the Operator
3+
4+
You can configure integration with your Segment source by using the Operator.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Operator.
10+
11+
.Procedure
12+
13+
. Add the following YAML code in your `{product-custom-resource-type}` custom resource (CR):
14+
+
15+
[source,yaml]
16+
----
17+
# ...
18+
spec:
19+
application:
20+
extraEnvs:
21+
envs:
22+
- name: SEGMENT_WRITE_KEY
23+
value: <segment_key> # <1>
24+
# ...
25+
----
26+
<1> Replace `<segment_key>` with a unique identifier for your Segment source.
27+
28+
. Save the configuration changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[id="proc-disabling-telemetry-using-helm_{context}"]
2+
= Disabling telemetry data collection using the Helm Chart
3+
4+
You can disable the telemetry data collection feature by using the Helm Chart.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Helm Chart.
10+
11+
.Procedure
12+
13+
. In the *Developer* perspective of the {ocp-short} web console, go to the *Helm* view to see the list of Helm releases.
14+
. Click the *overflow* menu on the Helm release that you want to use and select *Upgrade*.
15+
+
16+
[NOTE]
17+
====
18+
You can also create a new Helm release by clicking the *Create* button and edit the configuration to disable telemetry.
19+
====
20+
21+
. Use either the *Form* view or *YAML* view to edit the Helm configuration:
22+
** Using *Form view*
23+
+
24+
.. Expand *Root Schema → global → Dynamic plugins configuration. → List of dynamic plugins that should be installed in the backstage application*.
25+
.. Click the *Add list of dynamic plugins that should be installed in the backstage application.* link.
26+
27+
.. Perform one of the following steps:
28+
+
29+
*** If you have not configured the plugin, add the following value in the *Package specification of the dynamic plugin to install. It should be usable by the npm pack command.* field:
30+
+
31+
`./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment`
32+
+
33+
image::rhdh/disabling-telemetry.png[]
34+
+
35+
*** If you have configured the plugin, find the *Package specification of the dynamic plugin to install. It should be usable by the npm pack command.* field with the `./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment` value.
36+
37+
.. Select the *Disable the plugin* checkbox.
38+
.. Click *Upgrade*.
39+
40+
** Using *YAML view*
41+
+
42+
.. Perform one of the following steps:
43+
+
44+
*** If you have not configured the plugin, add the following YAML code in your `values.yaml` Helm configuration file:
45+
+
46+
[source,yaml]
47+
----
48+
# ...
49+
global:
50+
dynamic:
51+
plugins:
52+
- package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment'
53+
disabled: true
54+
# ...
55+
----
56+
+
57+
*** If you have configured the plugin, search it in your Helm configuration and set the value of the `plugins.disabled` parameter to `true`.
58+
59+
.. Click *Upgrade*.
60+
61+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[id="proc-disabling-telemetry-using-operator_{context}"]
2+
= Disabling telemetry data collection using the Operator
3+
4+
You can disable the telemetry data collection feature by using the Operator.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Operator.
10+
11+
.Procedure
12+
13+
. Perform one of the following steps:
14+
+
15+
* If you have created the `dynamic-plugins-rhdh` ConfigMap file and not configured the `analytics-provider-segment` plugin, add the plugin to the list of plugins and set its `plugins.disabled` parameter to `true`.
16+
+
17+
* If you have created the `dynamic-plugins-rhdh` ConfigMap file and configured the `analytics-provider-segment` plugin, search the plugin in the list of plugins and set its `plugins.disabled` parameter to `true`.
18+
+
19+
* If you have not created the ConfigMap file, create it with the following YAML code:
20+
+
21+
[source,yaml]
22+
----
23+
kind: ConfigMap
24+
apiVersion: v1
25+
metadata:
26+
name: dynamic-plugins-rhdh
27+
data:
28+
dynamic-plugins.yaml: |
29+
includes:
30+
- dynamic-plugins.default.yaml
31+
plugins:
32+
- package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment'
33+
disabled: true
34+
----
35+
36+
. Set the value of the `dynamicPluginsConfigMapName` parameter to the name of your `dynamic-plugins-rhdh` config map in your `{product-custom-resource-type}` custom resource:
37+
+
38+
[source,yaml]
39+
----
40+
# ...
41+
spec:
42+
application:
43+
dynamicPluginsConfigMapName: dynamic-plugins-rhdh
44+
# ...
45+
----
46+
47+
. Save the configuration changes.
48+
49+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[id="proc-enabling-telemetry-using-helm_{context}"]
2+
= Enabling telemetry data collection using the Helm Chart
3+
4+
You can enable the telemetry data collection feature by using the Helm Chart.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Helm Chart.
10+
11+
.Procedure
12+
13+
. In the *Developer* perspective of the {ocp-short} web console, go to the *Helm* view to see the list of Helm releases.
14+
. Click the *overflow* menu on the Helm release that you want to use and select *Upgrade*.
15+
+
16+
[NOTE]
17+
====
18+
You can also create a new Helm release by clicking the *Create* button and edit the configuration to enable telemetry.
19+
====
20+
21+
. Use either the *Form* view or *YAML* view to edit the Helm configuration:
22+
** Using *Form view*
23+
+
24+
.. Expand *Root Schema → global → Dynamic plugins configuration. → List of dynamic plugins that should be installed in the backstage application*.
25+
.. Click the *Add list of dynamic plugins that should be installed in the backstage application.* link.
26+
27+
.. Perform one of the following steps:
28+
+
29+
*** If you have not configured the plugin, add the following value in the *Package specification of the dynamic plugin to install. It should be usable by the npm pack command.* field:
30+
+
31+
`./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment`
32+
+
33+
*** If you have configured the plugin, find the *Package specification of the dynamic plugin to install. It should be usable by the npm pack command.* field with the `./dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment` value.
34+
35+
.. Clear the *Disable the plugin* checkbox.
36+
.. Click *Upgrade*.
37+
38+
** Using *YAML view*
39+
+
40+
.. Perform one of the following steps:
41+
+
42+
*** If you have not configured the plugin, add the following YAML code in your Helm configuration file:
43+
+
44+
[source,yaml]
45+
----
46+
# ...
47+
global:
48+
dynamic:
49+
plugins:
50+
- package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment'
51+
disabled: false
52+
# ...
53+
----
54+
+
55+
*** If you have configured the plugin, search it in your Helm configuration and set the value of the `plugins.disabled` parameter to `false`.
56+
57+
.. Click *Upgrade*.
58+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[id="proc-enabling-telemetry-using-operator_{context}"]
2+
= Enabling telemetry data collection using the Operator
3+
4+
You can enable the telemetry data collection feature by using the Operator.
5+
6+
.Prerequisites
7+
8+
* You have logged in as an administrator in the {ocp-short} web console.
9+
* You have installed {product} on {ocp-short} using the Operator.
10+
11+
.Procedure
12+
13+
. Perform one of the following steps:
14+
+
15+
* If you have created the `dynamic-plugins-rhdh` ConfigMap file and not configured the `analytics-provider-segment` plugin, add the plugin to the list of plugins and set its `plugins.disabled` parameter to `false`.
16+
+
17+
* If you have created the `dynamic-plugins-rhdh` ConfigMap file and configured the `analytics-provider-segment` plugin, search the plugin in the list of plugins and set its `plugins.disabled` parameter to `false`.
18+
+
19+
* If you have not created the ConfigMap file, create it with the following YAML code:
20+
+
21+
[source,yaml]
22+
----
23+
kind: ConfigMap
24+
apiVersion: v1
25+
metadata:
26+
name: dynamic-plugins-rhdh
27+
data:
28+
dynamic-plugins.yaml: |
29+
includes:
30+
- dynamic-plugins.default.yaml
31+
plugins:
32+
- package: './dynamic-plugins/dist/backstage-community-plugin-analytics-provider-segment'
33+
disabled: false
34+
----
35+
36+
. Set the value of the `dynamicPluginsConfigMapName` parameter to the name of your `dynamic-plugins-rhdh` config map in your `{product-custom-resource-type}` custom resource:
37+
+
38+
[source,yaml]
39+
----
40+
# ...
41+
spec:
42+
application:
43+
dynamicPluginsConfigMapName: dynamic-plugins-rhdh
44+
# ...
45+
----
46+
47+
. Save the configuration changes.
48+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[id="customizing-telemetry-segment_{context}"]
2+
= Customizing Segment source
3+
4+
5+
The `analytics-provider-segment` plugin sends the collected web analytics data to {company-name} by default. However, you can configure a new Segment source that receives web analytics data based on your needs. For configuration, you need a unique Segment write key that points to the Segment source.
6+
7+
[NOTE]
8+
====
9+
By configuring a new Segment source, you can collect and analyze the same set of data that is mentioned in link:{telemetry-data-collection-book-url}[{telemetry-data-collection-book-title}]. You might also require to create your own web analytics data collection notice for your application users.
10+
====
11+
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[id="disabling-telemetry-data-collection_{context}"]
2+
= Disabling telemetry data collection in {product-very-short}
3+
4+
To disable telemetry data collection, you must disable the `analytics-provider-segment` plugin either using the Helm Chart or the {product} Operator configuration.
5+
6+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[id="enabling-telemetry-data-collection_{context}"]
2+
= Enabling telemetry data collection in {product-very-short}
3+
4+
The telemetry data collection feature is enabled by default. However, if you have disabled the feature and want to re-enable it, you must enable the `analytics-provider-segment` plugin either by using the Helm Chart or the {product} Operator configuration.
5+

0 commit comments

Comments
 (0)