You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
49
49
@@ -74,25 +74,25 @@ You can configure AlwaysOn Profiling in Kubernetes by editing the values.yaml fi
74
74
Follow these steps to activate Profiling for a language:
75
75
76
76
#. Open the values.yaml file.
77
-
#. In the ``operator.instrumentation.spec.<language>.env`` section, add the ``SPLUNK_PROFILER_ENABLED="true"``, ``SPLUNK_PROFILER_MEMORY_ENABLED="true"``, and ``SPLUNK_PROFILER_CALL_STACK_INTERVAL`` environment variables. For example, the following values.yaml file configures AlwaysOn Profiling to sample call stacks from a 5000 millisecond interval:
77
+
#. In the ``instrumentation.spec.<language>.env`` section, add the ``SPLUNK_PROFILER_ENABLED="true"``, ``SPLUNK_PROFILER_MEMORY_ENABLED="true"``, and ``SPLUNK_PROFILER_CALL_STACK_INTERVAL`` environment variables. For example, the following values.yaml file configures AlwaysOn Profiling to sample call stacks from a 5000 millisecond interval:
78
78
79
79
.. code-block:: yaml
80
80
81
81
operator:
82
82
enabled: true
83
-
instrumentation:
84
-
spec:
85
-
nodejs:
86
-
env:
87
-
# Activates AlwaysOn Profiling for Node.js
88
-
- name: SPLUNK_PROFILER_ENABLED
89
-
value: "true"
90
-
- name: SPLUNK_PROFILER_MEMORY_ENABLED
91
-
value: "true"
92
-
# Samples call stacks from a 5000 millisecond interval.
93
-
# If excluded, samples from a 10000 millisecond interval by default.
94
-
- name: SPLUNK_PROFILER_CALL_STACK_INTERVAL
95
-
value: 5000
83
+
instrumentation:
84
+
spec:
85
+
nodejs:
86
+
env:
87
+
# Activates AlwaysOn Profiling for Node.js
88
+
- name: SPLUNK_PROFILER_ENABLED
89
+
value: "true"
90
+
- name: SPLUNK_PROFILER_MEMORY_ENABLED
91
+
value: "true"
92
+
# Samples call stacks from a 5000 millisecond interval.
93
+
# If excluded, samples from a 10000 millisecond interval by default.
94
+
- name: SPLUNK_PROFILER_CALL_STACK_INTERVAL
95
+
value: 5000
96
96
97
97
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
98
98
@@ -108,36 +108,36 @@ You can activate runtime metrics collection for Java and Node.js applications ru
108
108
Follow these steps to activate runtime metrics collection:
109
109
110
110
#. Open the values.yaml file.
111
-
#. In the ``operator.instrumentation.spec.<language>.env`` section, add the ``SPLUNK_METRICS_ENABLED=true`` environment variable. For example, the following values.yaml file activates runtime metrics collection for Java applications:
111
+
#. In the ``instrumentation.spec.<language>.env`` section, add the ``SPLUNK_METRICS_ENABLED=true`` environment variable. For example, the following values.yaml file activates runtime metrics collection for Java applications:
112
112
113
113
.. code-block:: yaml
114
114
115
115
operator:
116
116
enabled: true
117
-
instrumentation:
118
-
spec:
119
-
java:
120
-
env:
121
-
# Activates runtime metrics collection for Java
122
-
- name: SPLUNK_METRICS_ENABLED
123
-
value: "true"
117
+
instrumentation:
118
+
spec:
119
+
java:
120
+
env:
121
+
# Activates runtime metrics collection for Java
122
+
- name: SPLUNK_METRICS_ENABLED
123
+
value: "true"
124
124
125
-
#. In the ``operator.instrumentation.spec.env`` section, add the following environment variables and values to configure the endpoint to which the Collector sends runtime metrics:
125
+
#. In the ``instrumentation.spec.env`` section, add the following environment variables and values to configure the endpoint to which the Collector sends runtime metrics:
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
143
143
@@ -157,7 +157,7 @@ To learn more about the gateway mode, see :ref:`collector-gateway-mode`.
157
157
Follow these steps to send data to a gateway endpoint:
158
158
159
159
#. Open the values.yaml file.
160
-
#. Set the ``operator.instrumentation.spec.exporter.endpoint`` value to the gateway endpoint. For example:
160
+
#. Set the ``instrumentation.spec.exporter.endpoint`` value to the gateway endpoint. For example:
161
161
162
162
.. code-block:: yaml
163
163
:emphasize-lines: 13
@@ -170,11 +170,11 @@ Follow these steps to send data to a gateway endpoint:
170
170
certmanager:
171
171
enabled: true
172
172
operator:
173
-
enabled: true
174
-
instrumentation:
175
-
spec:
176
-
exporter:
177
-
endpoint: <gateway-endpoint>
173
+
enabled: true
174
+
instrumentation:
175
+
spec:
176
+
exporter:
177
+
endpoint: <gateway-endpoint>
178
178
179
179
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
Copy file name to clipboardExpand all lines: gdi/opentelemetry/automatic-discovery/k8s/k8s-backend.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,14 +172,14 @@ The following examples show how to set the attribute using each method:
172
172
173
173
operator:
174
174
enabled: true
175
-
instrumentation:
176
-
env:
175
+
instrumentation:
176
+
env:
177
+
- name: OTEL_RESOURCE_ATTRIBUTES
178
+
value: "deployment.environment=prd"
179
+
java:
180
+
env:
177
181
- name: OTEL_RESOURCE_ATTRIBUTES
178
-
value: "deployment.environment=prd"
179
-
java:
180
-
env:
181
-
- name: OTEL_RESOURCE_ATTRIBUTES
182
-
value: "deployment.environment=prd-canary-java"
182
+
value: "deployment.environment=prd-canary-java"
183
183
184
184
.. tab:: Deployment YAML
185
185
@@ -602,7 +602,7 @@ Allow the Operator to do the work. The Operator intercepts and alters the Kubern
602
602
603
603
You can configure the Splunk Distribution of OpenTelemetry Collector to suit your instrumentation needs. In most cases, modifying the basic configuration is enough to get started.
604
604
605
-
You can add advanced configuration like activating custom sampling and including custom data in the reported spans with environment variables and system properties. To do so, use the values.yaml file and ``operator.instrumentation.sampler`` configuration. For more information, see the :new-page:`documentation in GitHub <https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentationspecsampler>` and :new-page:`example in GitHub <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/examples/enable-operator-and-auto-instrumentation/instrumentation/instrumentation-add-trace-sampler.yaml>`.
605
+
You can add advanced configuration like activating custom sampling and including custom data in the reported spans with environment variables and system properties. To do so, use the values.yaml file and ``instrumentation.sampler`` configuration. For more information, see the :new-page:`documentation in GitHub <https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentationspecsampler>` and :new-page:`example in GitHub <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/examples/enable-operator-and-auto-instrumentation/instrumentation/instrumentation-add-trace-sampler.yaml>`.
606
606
607
607
You can also use the methods shown in :ref:`k8s-auto-discovery-setup-traces` to configure your instrumentation with the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable and other environment variables. For example, if you want every span to include the key-value pair ``build.id=feb2023_v2``, set the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable:
0 commit comments