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

Commit bf9b317

Browse files
Merge pull request #1569 from splunk/repo-sync
Pulling refs/heads/main into main
2 parents f60ab6f + 03b229f commit bf9b317

File tree

3 files changed

+91
-92
lines changed

3 files changed

+91
-92
lines changed

gdi/monitors-gitlab/gitlab.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ The following Prometheus endpoint targets are available:
137137
Important notes
138138
~~~~~~~~~~~~~~~~~~~~~~
139139

140-
* If you configue GitLab by editing ``/etc/gitlab/gitlab.rb``, run the command ``gitlab-ctl reconfigure`` for the changes to take effect.
140+
* If you configure GitLab by editing ``/etc/gitlab/gitlab.rb``, run the command ``gitlab-ctl reconfigure`` for the changes to take effect.
141141

142-
* If you configue nginx by editing the file ``/var/opt/gitlab/nginx/conf/nginx-status.conf``, run the command ``gitlab-ctl restart``.
142+
* If you configure nginx by editing the file ``/var/opt/gitlab/nginx/conf/nginx-status.conf``, run the command ``gitlab-ctl restart``.
143143

144144
* Note that changes to the configuration file ``/var/opt/gitlab/nginx/conf/nginx-status.conf`` in particular are erased by subsequent runs of ``gitlab-ctl reconfigure`` because ``gitlab-ctl reconfigure`` restores the original configuration file.
145145

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: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ To properly ingest trace telemetry data, the attribute ``deployment.environment`
132132
* - Through the values.yaml file ``environment`` configuration
133133
- Applies the attribute to all telemetry data (metrics, logs, traces) exported through the collector.
134134
- The chart will set an attribute processor to add ``deployment.environment=prd`` to all telemetry data processed by the collector.
135-
* - Through the values.yaml file and ``operator.instrumentation.spec.env`` or ``operator.instrumentation.spec.{instrumentation_library}.env`` configuration
135+
* - Through the values.yaml file and ``instrumentation.env`` or ``instrumentation.{instrumentation_library}.env`` configuration
136136
- Allows you to set ``deployment.environment`` either for all auto-instrumented applications collectively or per auto-instrumentation language.
137137
- Add the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable, setting its value to ``deployment.environment=prd``.
138138
* - Through your Kubernetes application deployment, daemonset, or pod specification
@@ -172,15 +172,14 @@ The following examples show how to set the attribute using each method:
172172
173173
operator:
174174
enabled: true
175-
instrumentation:
176-
spec:
177-
env:
178-
- name: OTEL_RESOURCE_ATTRIBUTES
179-
value: "deployment.environment=prd"
180-
java:
181-
env:
182-
- name: OTEL_RESOURCE_ATTRIBUTES
183-
value: "deployment.environment=prd-canary-java"
175+
instrumentation:
176+
env:
177+
- 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"
184183
185184
.. tab:: Deployment YAML
186185

@@ -191,13 +190,13 @@ The following examples show how to set the attribute using each method:
191190
apiVersion: apps/v1
192191
kind: Deployment
193192
metadata:
194-
name: my-java-app
193+
name: my-java-app
195194
spec:
196-
template:
197-
spec:
195+
template:
196+
spec:
198197
containers:
199198
- name: my-java-app
200-
image: my-java-app:latest
199+
image: my-java-app:latest
201200
env:
202201
- name: OTEL_RESOURCE_ATTRIBUTES
203202
value: "deployment.environment=prd"
@@ -289,10 +288,10 @@ The annotation you set depends on the language runtime you're using. You can set
289288
apiVersion: apps/v1
290289
kind: Deployment
291290
metadata:
292-
name: my-java-app
293-
namespace: monitoring
291+
name: my-java-app
292+
namespace: monitoring
294293
spec:
295-
template:
294+
template:
296295
spec:
297296
containers:
298297
- name: my-java-app
@@ -306,16 +305,16 @@ The annotation you set depends on the language runtime you're using. You can set
306305
apiVersion: apps/v1
307306
kind: Deployment
308307
metadata:
309-
name: my-java-app
310-
namespace: monitoring
308+
name: my-java-app
309+
namespace: monitoring
311310
spec:
312-
template:
311+
template:
313312
metadata:
314-
annotations:
313+
annotations:
315314
instrumentation.opentelemetry.io/inject-java: "true"
316315
spec:
317-
containers:
318-
- name: my-java-app
316+
containers:
317+
- name: my-java-app
319318
image: my-java-app:latest
320319
321320
.. tab:: .NET
@@ -351,13 +350,13 @@ The annotation you set depends on the language runtime you're using. You can set
351350
apiVersion: apps/v1
352351
kind: Deployment
353352
metadata:
354-
name: my-dotnet-app
355-
namespace: monitoring
353+
name: my-dotnet-app
354+
namespace: monitoring
356355
spec:
357-
template:
356+
template:
358357
spec:
359-
containers:
360-
- name: my-dotnet-app
358+
containers:
359+
- name: my-dotnet-app
361360
image: my-dotnet-app:latest
362361
363362
Activate automatic discovery by adding ``instrumentation.opentelemetry.io/otel-dotnet-auto-runtime: "linux-x64"`` and ``instrumentation.opentelemetry.io/inject-dotnet: "monitoring/splunk-otel-collector"`` to the ``spec``:
@@ -368,18 +367,18 @@ The annotation you set depends on the language runtime you're using. You can set
368367
apiVersion: apps/v1
369368
kind: Deployment
370369
metadata:
371-
name: my-dotnet-app
372-
namespace: monitoring
370+
name: my-dotnet-app
371+
namespace: monitoring
373372
spec:
374-
template:
373+
template:
375374
metadata:
376-
annotations:
375+
annotations:
377376
instrumentation.opentelemetry.io/otel-dotnet-auto-runtime: "linux-x64"
378377
instrumentation.opentelemetry.io/inject-dotnet: "monitoring/splunk-otel-collector"
379-
spec:
378+
spec:
380379
containers:
381380
- name: my-dotnet-app
382-
image: my-dotnet-app:latest
381+
image: my-dotnet-app:latest
383382
384383
.. tab:: ``linux-musl-x64``
385384

@@ -431,13 +430,13 @@ The annotation you set depends on the language runtime you're using. You can set
431430
apiVersion: apps/v1
432431
kind: Deployment
433432
metadata:
434-
name: my-nodejs-app
435-
namespace: monitoring
433+
name: my-nodejs-app
434+
namespace: monitoring
436435
spec:
437-
template:
436+
template:
438437
spec:
439-
containers:
440-
- name: my-nodejs-app
438+
containers:
439+
- name: my-nodejs-app
441440
image: my-nodejs-app:latest
442441
443442
Activate automatic discovery by adding ``instrumentation.opentelemetry.io/inject-nodejs: "true"`` to the ``spec``:
@@ -448,16 +447,16 @@ The annotation you set depends on the language runtime you're using. You can set
448447
apiVersion: apps/v1
449448
kind: Deployment
450449
metadata:
451-
name: my-nodejs-app
452-
namespace: monitoring
450+
name: my-nodejs-app
451+
namespace: monitoring
453452
spec:
454-
template:
453+
template:
455454
metadata:
456-
annotations:
455+
annotations:
457456
instrumentation.opentelemetry.io/inject-nodejs: "true"
458457
spec:
459-
containers:
460-
- name: my-nodejs-app
458+
containers:
459+
- name: my-nodejs-app
461460
image: my-nodejs-app:latest
462461
463462
Applying annotations in a different namespace
@@ -603,7 +602,7 @@ Allow the Operator to do the work. The Operator intercepts and alters the Kubern
603602

604603
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.
605604

606-
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>`.
607606

608607
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:
609608

0 commit comments

Comments
 (0)