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.
Copy file name to clipboardExpand all lines: gdi/opentelemetry/collector-linux/install-linux.rst
+70-38Lines changed: 70 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,11 +165,10 @@ If you already installed Fluentd on a host, install the Collector without Fluent
165
165
166
166
.. _configure-auto-instrumentation:
167
167
168
-
Configure automatic discovery for Java
168
+
Configure automatic discovery
169
169
--------------------------------------------
170
170
171
-
You can also automatically instrument your Java applications along with the Collector installation. Automatic discovery removes the need to install and configure the Java agent separately. See :ref:`linux-backend-auto-discovery` for the installation instructions. For more information on Java instrumentation, see :ref:`get-started-java`.
172
-
171
+
You can also automatically instrument your Java, Node.js, and .NET applications along with the Collector installation. Automatic discovery removes the need to install and configure the instrumentation SDKs separately. See :ref:`linux-backend-auto-discovery` for the installation instructions. For more information on instrumentation, see :ref:`get-started-java`, ref:`get-started-nodejs`, or :ref:`get-started-dotnet-otel`.
173
172
174
173
175
174
.. _otel-installer-options-linux:
@@ -179,6 +178,8 @@ Options of the installer script for Linux
179
178
180
179
The Linux installer script supports the following options:
181
180
181
+
Collector:
182
+
182
183
.. list-table::
183
184
:header-rows: 1
184
185
:width: 100%
@@ -190,23 +191,17 @@ The Linux installer script supports the following options:
190
191
* - ``--api-url <url>``
191
192
- Set the API endpoint URL explicitly instead of using the endpoint inferred from the specified realm.
192
193
- ``https://api.REALM.signalfx.com``
193
-
* - ``--ballast <ballast size>``
194
-
- Set the ballast size explicitly instead of the value calculated using the ``--memory`` option. See :ref:`otel-sizing` for more information.
195
-
- ``512``
196
-
* - ``--beta``
197
-
- Use the beta package repository.
198
-
- Not applicable
199
194
* - ``--collector-config <path>``
200
-
- Set the path to an existing custom configuration file for the Collector service instead of using the default configuration file provided by the Collector package based on the ``--mode <agent|gateway>`` option. If the specified file requires custom environment variables, you can manually add both the variables and values to ``$collector_env_path`` after installation. Restart the Collectorservice with the ``sudo systemctl restart splunk-otel-collector`` command for the changes to take effect.
201
-
-
195
+
- Set the path to an existing custom configuration file for the Collector service instead of using the default configuration file provided by the Collector package based on the ``--mode <agent|gateway>`` option. If the specified file requires custom environment variables, you can manually add both the variables and values to ``/etc/otel/collector/splunk-otel-collector.conf`` after installation. Restart the Collector service with the ``sudo systemctl restart splunk-otel-collector`` command for the changes to take effect.
196
+
- ``/etc/otel/collector/agent_config.yaml`` for ``agent`` mode; ``/etc/otel/collector/gateway_config.yaml`` for ``gateway`` mode
202
197
* - ``--collector-version <version>``
203
198
- The Collector package version to install.
204
199
- ``latest``
205
200
* - ``--discovery``
206
201
- Activate discovery mode on Collector startup. See :ref:`discovery_mode` for more information.
207
-
- Deactivated
202
+
-
208
203
* - ``--hec-token <token>``
209
-
- Set the HEC token if it`` s different than the specified ``access_token``.
204
+
- Set the HEC token if it is different than the specified ``access_token``.
210
205
-
211
206
* - ``--hec-url <url>``
212
207
- Set the HEC endpoint URL explicitly instead of using the endpoint inferred from the specified realm.
@@ -222,7 +217,7 @@ The Linux installer script supports the following options:
222
217
- ``agent``
223
218
* - ``--listen-interface <ip>``
224
219
- Network interface the Collector receivers listen on.
225
-
- ``0.0.0.0``
220
+
- ``127.0.0.1`` for ``agent`` mode, otherwise ``0.0.0.0``
226
221
* - ``--realm <us0|us1|eu0|...>``
227
222
- The Splunk realm to use. The ingest, API, trace, and HEC endpoint URLs are automatically generated using this value.
228
223
- ``us0``
@@ -233,47 +228,84 @@ The Linux installer script supports the following options:
233
228
- Set the user for the splunk-otel-collector service. The option creates the user if it doesn't exist.
234
229
- ``splunk-otel-collector``
235
230
* - ``--skip-collector-repo``
236
-
- By default, the scripts create an apt, yum, or zypper repo definition file to download the Collector package from ``$repo_base``. Use this option to skip the previous step and use a configured repo on the target system that provides the splunk-otel-collector deb or rpm package.
231
+
- By default, a apt, yum, or zypper repo definition file is created to download the Collector package from ``https://splunk.jfrog.io``. Use this option to skip the previous step and use a pre-configured repo on the target system that provides the ``splunk-otel-collector`` deb or rpm package.
237
232
-
238
-
* - ``--skip-fluentd-repo``
239
-
- By default, the scripts create an apt, yum, or zypper repo definition file to download the fluentd package from ``$td_agent_repo_base``. Use this option to skip the previous step and use a configured repo on the target system that provides the splunk-otel-collector deb or rpm package.
240
-
-
241
-
* - ``--test``
242
-
- Use the test package repo.
243
-
- Not applicable
244
233
* - ``--trace-url <url>``
245
234
- Set the trace endpoint URL explicitly instead of the endpoint inferred from the specified realm.
246
235
- ``https://ingest.REALM.signalfx.com/v2/trace``
236
+
* - ``--``
237
+
- Use ``--`` if the access token starts with ``-``, for example ``-- -MY-ACCESS-TOKEN``.
238
+
-
247
239
* - ``--uninstall``
248
240
- Removes the Splunk OpenTelemetry Collector for Linux.
249
-
- Not applicable
250
-
* - ``--with[out]-fluentd``
251
-
- Whether to install and configure fluentd to forward log events to the Collector. See :ref:`fluentd-manual-config-linux` for more information.
252
-
- ``--without-fluentd``
241
+
-
242
+
243
+
Automatic Discovery for back-end services:
244
+
245
+
.. list-table::
246
+
:header-rows: 1
247
+
:width: 100%
248
+
:widths: 30 40 30
249
+
250
+
* - Option
251
+
- Description
252
+
- Default value
253
253
* - ``--with[out]-instrumentation``
254
-
- Whether to install and configure the splunk-otel-auto-instrumentation package. See :ref:`linux-backend-auto-discovery` for more information.
254
+
- Whether to install the ``splunk-otel-auto-instrumentation`` package and add the ``libsplunk.so`` shared object library to ``/etc/ld.so.preload`` to activate auto instrumentation for all supported processes on the host. Cannot be combined with the ``--with-systemd-instrumentation`` option. See :ref:`linux-backend-auto-discovery` for more information.
255
255
- ``--without-instrumentation``
256
+
* - ``--with[out]-systemd-instrumentation``
257
+
- Whether to install the ``splunk-otel-auto-instrumentation`` package and configure a systemd drop-in file to activate auto instrumentation for all supported applications running as systemd services. Cannot be combined with the ``--with-instrumentation`` option. See :ref:`linux-backend-auto-discovery` for more information.
258
+
- ``--without-systemd-instrumentation``
259
+
* - ``--with[out]-instrumentation-sdk <sdk>``
260
+
- Whether to enable auto instrumentation for a specific language. This option takes a comma separated set of values representing supported auto-instrumentation SDKs. Currently supported values: ``java``, ``node``, and ``dotnet``. Use ``--with-instrumentation-sdk`` to enable only the specified language(s), for example ``--with-instrumentation-sdk java``. Note: .NET (``dotnet``) auto instrumentation is only supported on x86_64/amd64.
- If Auto Instrumentation for Node.js is enabled, ``npm`` is required to install the included Splunk OpenTelemetry Auto Instrumentation for Node.js package. If ``npm`` is not found via the ``command -v npm`` shell command or if installation fails, Auto Instrumentation for Node.js will not be activated. Use this option to specify a custom path to ``npm``, for example ``--npm-path /my/path/to/npm``.
264
+
- ``npm``
256
265
* - ``--deployment-environment <value>``
257
-
- Set the ``deployment.environment`` resource attribute to the specified value. Only applicable if the ``--with-instrumentation`` option is also specified.
258
-
- Empty
266
+
- Set the ``deployment.environment`` resource attribute to the specified value. If not specified, the ``Environment`` in the Splunk APM UI will appear as ``unknown`` for all instrumented applications. The resource attribute will be appended to the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable.
267
+
-
259
268
* - ``--service-name <name>``
260
-
- Override the autogenerated service names for all instrumented Java applications on this host with ``<name>``. Only applicable if the ``--with-instrumentation`` option is also specified.
261
-
- Empty
269
+
- Override the auto-generated service names for all instrumented applications with the specified value. The value will be set to the ``OTEL_SERVICE_NAME`` environment variable.
270
+
-
271
+
* - ``--otlp-endpoint <host:port>``
272
+
- Set the OTLP endpoint for captured traces, logs, and metrics for all activated SDKs. The value will be set to the ``OTEL_EXPORTER_OTLP_ENDPOINT`` environment variable. If not specified, the default behavior is to defer to the default ``OTEL_EXPORTER_OTLP_ENDPOINT`` value for each activated SDK.
273
+
-
274
+
* - ``--otlp-endpoint-protocol <protocol>``
275
+
- Set the protocol for the configured OTLP endpoint, for example ``grpc`` or ``http/protobuf``. The value will be set to the ``OTEL_EXPORTER_OTLP_PROTOCOL`` environment variable. If not specified, the default behavior is to defer to the default ``OTEL_EXPORTER_OTLP_PROTOCOL`` value for each activated SDK. This option is only applicable if the ``--otlp-endpoint <host:port>`` option is also specified.
276
+
-
277
+
* - ``--metrics-exporter <exporters>``
278
+
- Comma-separated list of exporters for collected metrics by all activated SDKs, for example ``otlp,prometheus``. Set the value to ``none`` to disable collection and export of metrics. The value will be set to the ``OTEL_METRICS_EXPORTER`` environment variable. The default behavior is to defer to the default ``OTEL_METRICS_EXPORTER`` value for each activated SDK.
279
+
-
262
280
* - ``--[enable|disable]-profiler``
263
-
- Activate or deactivate AlwaysOn CPU Profiling. Only applicable if the ``--with-instrumentation`` option is also specified.
281
+
- Activate or deactivate AlwaysOn CPU Profiling for all activated SDKs that support the ``SPLUNK_PROFILER_ENABLED`` environment variable.
264
282
- ``--disable-profiler``
265
283
* - ``--[enable|disable]-profiler-memory``
266
-
- Activate or deactivate AlwaysOn Memory Profiling. Only applicable if the ``--with-instrumentation`` option is also specified.
284
+
- Activate or deactivate AlwaysOn Memory Profiling for all activated SDKs that support the ``SPLUNK_PROFILER_MEMORY_ENABLED`` environment variable.
267
285
- ``--disable-profiler-memory``
268
286
* - ``--[enable|disable]-metrics``
269
-
- Activate or deactivate exporting metrics. Only applicable if the ``--with-instrumentation`` option is also specified.
287
+
- Activate or deactivate collection and exporting metrics for all activated SDKs that support the ``SPLUNK_METRICS_ENABLED`` environment variable.
270
288
- ``--disable-metrics``
271
289
* - ``--instrumentation-version``
272
-
- The package version to install. Only applicable if the ``--with-instrumentation`` option is also specified.
290
+
- The ``splunk-otel-auto-instrumentation`` package version to install. Note: The minimum supported version for Java and Node.js auto instrumentation is 0.87.0, and the minimum supported version for .NET auto instrumentation is 0.99.0.
273
291
- ``latest``
274
-
* - ``--``
275
-
- Use ``--`` if the access token starts with ``-`` .
276
-
- Not applicable
292
+
293
+
Fluentd:
294
+
295
+
.. list-table::
296
+
:header-rows: 1
297
+
:width: 100%
298
+
:widths: 30 40 30
299
+
300
+
* - Option
301
+
- Description
302
+
- Default value
303
+
* - ``--with[out]-fluentd``
304
+
- Whether to install and configure fluentd to forward log events to the Collector. See :ref:`fluentd-manual-config-linux` for more information.
305
+
- ``--without-fluentd``
306
+
* - ``--skip-fluentd-repo``
307
+
- By default, a apt/yum repo definition file will be created to download the fluentd deb/rpm package from ``https://packages.treasuredata.com``. Use this option to skip the previous step and use a pre-configured repo on the target system that provides the ``td-agent`` deb/rpm package.
308
+
-
277
309
278
310
To display all the configuration options supported by the script, use the ``-h`` flag.
279
311
@@ -362,4 +394,4 @@ Splunk provides a Salt formula to install and configure the Collector. See :ref:
0 commit comments