Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 9cd3295

Browse files
josh suggestions
1 parent 2c5a4b7 commit 9cd3295

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed

gdi/opentelemetry/automatic-discovery/k8s/k8s-advanced-config.rst

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ By default, the Splunk Distribution of OpenTelemetry Collector uses the latest v
3939
enabled: true
4040
operator:
4141
enabled: true
42-
instrumentation:
43-
spec:
44-
java:
45-
repository: ghcr.io/signalfx/splunk-otel-java/splunk-otel-java
46-
tag: v1.27.0
42+
instrumentation:
43+
spec:
44+
java:
45+
repository: ghcr.io/signalfx/splunk-otel-java/splunk-otel-java
46+
tag: v1.27.0
4747
4848
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
4949

@@ -74,25 +74,25 @@ You can configure AlwaysOn Profiling in Kubernetes by editing the values.yaml fi
7474
Follow these steps to activate Profiling for a language:
7575

7676
#. 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:
7878

7979
.. code-block:: yaml
8080
8181
operator:
8282
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
9696
9797
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
9898

@@ -108,36 +108,36 @@ You can activate runtime metrics collection for Java and Node.js applications ru
108108
Follow these steps to activate runtime metrics collection:
109109

110110
#. 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:
112112

113113
.. code-block:: yaml
114114
115115
operator:
116116
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"
124124
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:
126126

127127
.. code-block:: yaml
128128
129129
operator:
130130
enabled: true
131-
instrumentation:
132-
spec:
133-
env:
134-
- name: SPLUNK_OTEL_AGENT
135-
valueFrom:
136-
fieldRef:
137-
apiVersion: v1
138-
fieldPath: status.hostIP
139-
- name: SPLUNK_METRICS_ENDPOINT
140-
value: http://$(SPLUNK_OTEL_AGENT):9943/v2/datapoint
131+
instrumentation:
132+
spec:
133+
env:
134+
- name: SPLUNK_OTEL_AGENT
135+
valueFrom:
136+
fieldRef:
137+
apiVersion: v1
138+
fieldPath: status.hostIP
139+
- name: SPLUNK_METRICS_ENDPOINT
140+
value: http://$(SPLUNK_OTEL_AGENT):9943/v2/datapoint
141141
142142
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
143143

@@ -157,7 +157,7 @@ To learn more about the gateway mode, see :ref:`collector-gateway-mode`.
157157
Follow these steps to send data to a gateway endpoint:
158158

159159
#. 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:
161161

162162
.. code-block:: yaml
163163
:emphasize-lines: 13
@@ -170,11 +170,11 @@ Follow these steps to send data to a gateway endpoint:
170170
certmanager:
171171
enabled: true
172172
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>
178178
179179
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
180180

gdi/opentelemetry/automatic-discovery/k8s/k8s-backend.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ The following examples show how to set the attribute using each method:
172172
173173
operator:
174174
enabled: true
175-
instrumentation:
176-
env:
175+
instrumentation:
176+
env:
177+
- name: OTEL_RESOURCE_ATTRIBUTES
178+
value: "deployment.environment=prd"
179+
java:
180+
env:
177181
- 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"
183183
184184
.. tab:: Deployment YAML
185185

@@ -602,7 +602,7 @@ Allow the Operator to do the work. The Operator intercepts and alters the Kubern
602602

603603
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.
604604

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>`.
606606

607607
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:
608608

0 commit comments

Comments
 (0)