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

Commit d52c455

Browse files
Merge pull request #2316 from splunk/urbiz-OD6472-collector-linux-docker-install
[6472]: Collector for Linux - Docker 0 config
2 parents ccf6eea + f6a608e commit d52c455

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

gdi/opentelemetry/collector-linux/install-linux.rst

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,27 @@ To skip these steps and use configured repos on the target system that provide t
8585
sudo sh /tmp/splunk-otel-collector.sh --realm $SPLUNK_REALM --skip-collector-repo --skip-fluentd-repo \
8686
-- $SPLUNK_ACCESS_TOKEN
8787
88+
.. _configure-auto-instrumentation:
89+
90+
Configure automatic discovery for back-end applications
91+
==================================================================
92+
93+
You can also automatically instrument your Java, Node.js, and .NET applications along with the Collector installation. Automatic discovery removes the need to configure receivers for each back-end application. See :ref:`linux-backend-auto-discovery` for the installation instructions.
94+
95+
For more information on instrumentation, see:
96+
97+
* :ref:`get-started-java`
98+
* :ref:`get-started-nodejs`
99+
* :ref:`get-started-dotnet-otel`
100+
88101
.. _collector-linux-with-docker:
89102

90-
Use the Collector in a host with Docker
103+
Collector for Linux with Docker
91104
====================================================================
92105

106+
Install the Collector in a host with Docker
107+
--------------------------------------------------------------------
108+
93109
If you're installing your Collector instance in a host with Docker, you need to configure a client to establish a connection with the daemon. Depending on your Docker installation and Collector deployment method, try one of these options:
94110

95111
1. If your daemon is listening to a domain socket (for example ``/var/run/docker.sock``), your Collector service or executable needs appropriate permissions and access. Add the ``splunk-otel-collector`` user to the Docker group as configured on your system:
@@ -107,18 +123,20 @@ If you're installing your Collector instance in a host with Docker, you need to
107123
# or if specifying the user:group directly
108124
$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --user "splunk-otel-collector:$(stat -c '%g' /var/run/docker.sock)" quay.io/signalfx/splunk-otel-collector:latest <...>
109125
110-
.. _configure-auto-instrumentation:
126+
Use auto discovery with containers
127+
--------------------------------------------------------------------
111128

112-
Configure automatic discovery for back-end applications
113-
==================================================================
129+
If your Collector instance is running in a Docker container and the discovery targets are also containers, you need to share the Docker socket when launching the Collector container:
130+
131+
.. code-block:: bash
114132
115-
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.
133+
$ docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --group-add <socket_gid>
116134
117-
For more information on instrumentation, see:
135+
To use host bindings, run this command:
118136

119-
* :ref:`get-started-java`
120-
* :ref:`get-started-nodejs`
121-
* :ref:`get-started-dotnet-otel`
137+
.. code-block:: bash
138+
139+
--set=splunk.discovery.extensions.docker_observer.config.use_host_bindings=true
122140
123141
.. _otel-installer-options-linux:
124142

0 commit comments

Comments
 (0)