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

Commit 21e94b9

Browse files
aunsh suggestions 2
1 parent e86bca1 commit 21e94b9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

gdi/opentelemetry/auto-instrumentation/advanced-config-auto-instrumentation.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,19 @@ You can activate CPU and memory profiling by updating the environment variables
7171

7272
.. tab:: Linux
7373

74-
Follow these steps to activate AlwaysOn Profiling in Linux:
74+
To activate profiling globally, add the ``--enable-profiler`` flag upon installation for CPU profiling, or ``--enable-profiler-memory`` flag for memory profiling. For example:
75+
76+
.. code-block:: bash
77+
:emphasize-lines: 4
78+
79+
curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh && \
80+
sudo sh /tmp/splunk-otel-collector.sh --with-instrumentation --deployment-environment prod \
81+
--realm <SPLUNK_REALM> -- <SPLUNK_ACCESS_TOKEN> \
82+
--enable-profiler --enable-profiler-memory
83+
84+
You can also activate profiling for individual languages. By using this approach, you can determine which languages profiling gathers call stacks from.
85+
86+
Follow these steps to activate AlwaysOn Profiling for an individual language:
7587

7688
#. Open the <language>.conf file located in the ``/etc/splunk/zeroconfig`` directory.
7789
#. Set the environment variable ``SPLUNK_PROFILER_ENABLED=true`` for CPU profiling, and ``SPLUNK_PROFILER_MEMORY_ENABLED=true`` for memory profiling.
@@ -108,7 +120,7 @@ You can activate CPU and memory profiling by updating the environment variables
108120
- name: SPLUNK_PROFILER_ENABLED
109121
value: true
110122
# Samples call stacks from a 5000 millisecond interval.
111-
# If excluded, the Collector samples from a 10000 millisecond interval.
123+
# If excluded, samples from a 10000 millisecond interval by default.
112124
- name: SPLUNK_PROFILER_CALL_STACK_INTERVAL
113125
value: 5000
114126

gdi/opentelemetry/zero-config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Splunk OpenTelemetry Zero Configuration Auto Instrumentation
1515
Java <auto-instrumentation/auto-instrumentation-java>
1616
.NET <auto-instrumentation/auto-instrumentation-dotnet>
1717
Node.js <auto-instrumentation/auto-instrumentation-nodejs>
18-
Advanced configuration <auto-instrumentation/advanced-config-auto-instrumentation>
18+
Advanced customization <auto-instrumentation/advanced-config-auto-instrumentation>
1919

2020
Splunk OpenTelemetry Zero Configuration Auto Instrumentation automatically instruments your back-end applications and services to capture and report distributed traces and metrics to the Splunk Distribution of OpenTelemetry Collector, and then on to Splunk APM.
2121

0 commit comments

Comments
 (0)