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

Commit 7f42d7d

Browse files
Merge pull request #1566 from splunk/repo-sync
Pulling refs/heads/main into main
2 parents a542cb6 + 801d226 commit 7f42d7d

File tree

6 files changed

+364
-2
lines changed

6 files changed

+364
-2
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.. _collector-addon-configure:
2+
3+
*********************************************************************************************
4+
Configure the Technical Add-on for the Splunk OpenTelemetry Collector
5+
*********************************************************************************************
6+
7+
.. meta::
8+
:description: Configure the Technical Add-on for the Splunk Distribution of the OpenTelemetry Collector.
9+
10+
.. toctree::
11+
:maxdepth: 5
12+
:hidden:
13+
14+
To configure the OpenTelemetry Collector within the Add-on, follow these steps:
15+
16+
#. Create a new configuration file in YAML format for the Collector. See more at :ref:`otel-configuration`.
17+
#. Edit the default version of your inputs.conf file to point to the new configuration file.
18+
#. Restart the Splunk Universal Forwarder.
19+
20+
.. _collector-addon-configure-traces:
21+
22+
Activate trace collection
23+
============================================================================================================================================
24+
25+
The Splunk Add-on for the OpenTelemetry Collector does not perform automatic tracing. To configure your Collector instance to receive traces from your applications, see :ref:`get-started-application`.
26+
27+
.. _collector-addon-configure-multiple:
28+
29+
Manage multiple Collectors
30+
============================================================================================================================================
31+
32+
If your configuration uses more than one Collector, consider the following best practices:
33+
34+
* Deploy different agent_config.yaml files to different hosts. For example, a version of the add-on with MySQL Receiver enabled, and a different version of the add-on with MS SQL Server Receiver enabled will work best when deployed on different hosts.
35+
36+
* Deploy the same files to every host, then point to another agent_config.yaml file in inputs.conf in the splunk_config_dir or splunk_config_yaml properties.
37+
38+
* Deploy the same instance of the Splunk Add-on for the OpenTelemetry Collector to all hosts, then deploy another instance of the add-on that does not contain binaries and only contains a YAML file with a specific receiver enabled. In this case, the YAML file from the second add-on instance will supersede the YAML from the first add-on instance on a particular host.
39+
40+
* Designate one instance of the Splunk Add-on for the OpenTelemetry Collector as your default Collector, tailor it to your needs, and then create variants of the add-on using a different name. Then deploy each variant to a different server class.
41+
42+
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
.. _collector-addon-install:
2+
3+
*********************************************************************************************
4+
Install the Technical Add-on for the Splunk OpenTelemetry Collector
5+
*********************************************************************************************
6+
7+
.. meta::
8+
:description: Install the Technical Add-on for the Splunk Distribution of the OpenTelemetry Collector.
9+
10+
.. toctree::
11+
:maxdepth: 5
12+
:hidden:
13+
14+
You can install the Splunk Add-on for the OpenTelemetry Collector to a :ref:`single <collector-addon-install-uf>` or to :ref:`multiple <collector-addon-install-server>` universal forwarder instances.
15+
16+
The following applies:
17+
18+
* The Splunk Add-on for the OpenTelemetry Collector installer comes packaged with a number of agent bundle libraries. Do not delete these files, even if you do not plan on incorporating an agent bundle.
19+
20+
* To save space you can remove the folder for the binaries you are not using. For example, if you are installing on Linux you can delete the Windows folder.
21+
22+
* If your configuration uses more than one collector, see :ref:`collector-addon-configure-multiple`.
23+
24+
.. _collector-addon-install-uf:
25+
26+
Install the Splunk Add-on for the OpenTelemetry Collector to a universal forwarder instance
27+
============================================================================================================================================
28+
29+
Follow these steps to install the Splunk Add-on for OpenTelemetry Collector to a universal forwarder instance:
30+
31+
#. Download and unzip the installation file to the machine running universal forwarder. In your unzipped folder, locate and unzip the .tar file to :guilabel:`SPLUNK_HOME > etc > deployment apps`.
32+
33+
#. Create a new "local" folder in Splunk_TA_otel/. Open the configuration folder and copy the access_token file into your new local folder.
34+
35+
#. In the default folder find the inputs.conf file. You can inspect the defaults for the settings and update the values if necessary. Note that the values in inputs.conf must match those in Splunk Web.
36+
37+
* ``splunk_config``. ``$SPLUNK_OTEL_TA_HOME/configs/ta-agent-config.yaml`` by default.
38+
* ``disabled``. ``false`` by default.
39+
* ``start_by_shell``. ``false`` by default.
40+
* ``splunk_access_token_file``. ``access_token`` by default.
41+
* ``splunk_realm``. ``us0`` by default. A realm is a self-contained deployment that hosts organizations. You can find your realm name on your profile page in the user interface.
42+
* ``splunk_trace_ingest_url``. The default value is :new-page:`https://ingest.us0.signalfx.com/v2/trace`.
43+
44+
#. In :strong:`Splunk Observability Cloud`, retrieve your access token value. If you do not have a token, contact your Splunk Observability Cloud administrator to create a token. See :ref:`admin-tokens` to learn more about tokens.
45+
46+
#. In Splunk_TA_otel/local, create or open the access_token file, and replace the existing contents with the token value you copied from Splunk Observability Cloud. Save the updated file.
47+
48+
#. In :strong:`Splunk Observability Cloud`, select your name, then select the Organization tab to verify that the realm value in the realm and sapm-endpoint files in your local folder reflect the value shown in Splunk Observability Cloud. Save any changes you make in the local files.
49+
50+
#. Restart Splunkd. Your Add-on solution is now deployed.
51+
52+
#. In :guilabel:`Splunk Infrastructure Monitoring`, navigate to the host where you deployed the Splunk Add-on for the OpenTelemetry Collector and select it to explore its metrics and status. For more information, see :ref:`use-navigators-imm`.
53+
54+
.. _collector-addon-install-server:
55+
56+
Install the Splunk Add-on for the OpenTelemetry Collector to multiple universal forwarder instances using the deployment server
57+
============================================================================================================================================
58+
59+
Follow these steps to install the Splunk Add-on for the OpenTelemetry Collector to multiple universal forwarder instances using the deployment server:
60+
61+
#. Download and unzip the installation file to the machine running your deployment server. In your unzipped folder, locate and unzip the .tar file to :guilabel:`SPLUNK_HOME > etc > deployment apps`.
62+
63+
#. Create a new "local" folder in Splunk_TA_otel/. Open the configuration folder and copy the access_token file into your new local folder.
64+
65+
#. In the default folder find the inputs.conf file. You can inspect the defaults for the settings and update the values if necessary. Note that the values in inputs.conf must match those in Splunk Web.
66+
67+
* ``splunk_config``. ``$SPLUNK_OTEL_TA_HOME/configs/ta-agent-config.yaml`` by default.
68+
* ``disabled``. ``false`` by default.
69+
* ``start_by_shell``. ``false`` by default.
70+
* ``splunk_access_token_file``. ``access_token`` by default.
71+
* ``splunk_realm``. ``us0`` by default. A realm is a self-contained deployment that hosts organizations. You can find your realm name on your profile page in the user interface.
72+
* ``splunk_trace_ingest_url``. The default value is :new-page:`https://ingest.us0.signalfx.com/v2/trace`.
73+
74+
#. In :strong:`Splunk Observability Cloud`, retrieve your access token value. If you do not have a token, contact your Splunk Observability Cloud administrator to create a token. See :ref:`admin-tokens` to learn more about tokens.
75+
76+
#. In Splunk_TA_otel/local, create or open the access_token file, and replace the existing contents with the token value you copied from Splunk Observability Cloud. Save the updated file.
77+
78+
#. In :strong:`Splunk Observability Cloud`, select your name, then select the Organization tab to verify that the realm value in the realm and sapm-endpoint files in your local folder match the value shown in Splunk Observability Cloud. Save any changes you make in the local files.
79+
80+
#. In :strong:`Splunk Web`, select :guilabel:`Settings > Forwarder Management` to access your deployment server.
81+
82+
#. Create a server class:
83+
84+
#. For "Edit clients", update :guilabel:`Include` to add your Universal Forwarder instance and save.
85+
86+
#. Go to :guilabel:`Add apps` and select your new Splunk Add-on for the OpenTelemetry Collector service class.
87+
88+
#. Select :guilabel:`Edit` on your newly created service class and make sure the following are checked:
89+
90+
* Enable App
91+
* Restart Splunkd
92+
93+
#. Save. Your Add-on solution is now deployed.
94+
95+
#. In :guilabel:`Splunk Infrastructure Monitoring`, navigate to the host where you deployed the Splunk Add-on for the OpenTelemetry Collector and select it to explore its metrics and status. For more information, see :ref:`use-navigators-imm`.
96+
97+
.. _collector-addon-mode:
98+
99+
Configure the deployment mode of your Splunk Add-on Collector instance
100+
============================================================================================================================================
101+
102+
The OpenTelemetry Collector has different :ref:`deployment modes <otel-deployment-mode>`:
103+
104+
* Host monitoring (agent): This is the default value and the simplest configuration. The Splunk Add-on for the OpenTelemetry Collector, when configured as an agent, sends data to Splunk Observability Cloud.
105+
106+
* Data forwarding (gateway): When configured as a gateway, your Splunk Add-on for the OpenTelemetry Collector collects data from one or more agents before forwarding it to Splunk Observability Cloud.
107+
108+
* As an agent that sends data to a gateway: To use a gateway instance, you create one or more instances of Splunk add-on for the OpenTelemetry Collector as agents that send data to that gateway instance.
109+
110+
.. _collector-addon-mode-agent:
111+
112+
Deploy the Splunk Add-on for the OpenTelemetry Collector as an agent
113+
------------------------------------------------------------------------------------------------------------------------
114+
115+
As an agent, the OpenTelemetry Collector sends data directly to Splunk Observability Cloud. This is the default configuration. Learn more at :ref:`collector-agent-mode`.
116+
117+
If your instance is not configured as an agent and you want to configure it as an agent, edit your inputs.conf file and update the variable ``Splunk_config`` to reflect your agent configuration file name. You can find this file in your directory at ``/otelcol/config/``. The default file name is ``ta-agent-config.yaml``. If you are using a custom configuration file, provide that file name.
118+
119+
.. _collector-addon-mode-gateway:
120+
121+
Deploy the Splunk Add-on for the OpenTelemetry Collector as a gateway
122+
------------------------------------------------------------------------------------------------------------------------
123+
124+
If deployed as a gateway, the Collector instance can collect data from one or more Collector instances deployed as agents. The gateway instance then sends that data to Splunk Observability Cloud. Learn more at :ref:`collector-gateway-mode`.
125+
126+
To configure your Splunk Add-on for OpenTelemetry Collector as a gateway:
127+
128+
#. Edit your inputs.conf file to update the variable ``Splunk_config`` with your gateway configuration file name. You can find this file in your directory at ``/otelcol/config/``. The default file name for the gateway file is ``ta-gateway-config.yaml``. If you are using a custom configuration file, provide that file name.
129+
130+
#. Set the ``splunk_listen_interface`` value to ``0.0.0.0`` or to the specific IP address that sends data to this gateway in ``local/inputs.conf``.
131+
132+
.. caution:: You must also configure one or more Collector instances as agents that send data to your new gateway.
133+
134+
.. _collector-addon-mode-send:
135+
136+
Configure Splunk Add-on for OpenTelemetry Collector as an agent that sends data to a gateway
137+
------------------------------------------------------------------------------------------------------------------------
138+
139+
You can set up one or more Collector instances as agents that send data to another instance that is set up as a gateway. See more at :ref:`collector-agent-to-gateway`.
140+
141+
To do this configure an instance that works as a gateway, and then one or more instances that operate as agents:
142+
143+
#. Create your gateway, if you have not already done so. See :ref:`collector-addon-mode-gateway` for more information.
144+
145+
#. Edit your inputs.conf file to update the variable ``Splunk_config`` to reflect your gateway configuration file name. You can find the default configuration file in your directory at ``/otelcol/config/``. The default file name for this configuration file is ``ta-agent-to-gateway-config.yaml``. If you are using a custom configuration file, provide that file name.
146+
147+
#. In the README directory, open ``inputs.conf.spec`` and copy the attribute for the ``splunk_gateway_url``.
148+
149+
#. Paste this value into ``ta-agent-to-gateway-config.yaml`` and then update the value for this setting with the gateway IP address.
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
.. _collector-addon-intro:
2+
3+
*********************************************************************************************
4+
Splunk Add-On for the OpenTelemetry Collector
5+
*********************************************************************************************
6+
7+
.. meta::
8+
:description: Introduction to the Splunk Add-on for the Splunk Distribution of the OpenTelemetry Collector.
9+
10+
.. toctree::
11+
:maxdepth: 5
12+
:hidden:
13+
14+
Install the Technical Add-on <collector-addon-install.rst>
15+
Configure the Technical Add-on <collector-addon-configure.rst>
16+
Troubleshooting <collector-addon-troubleshooting.rst>
17+
18+
Use the Splunk Add-on for the OpenTelemetry Collector to collect traces and metrics for Splunk Observability Cloud.
19+
20+
You have two ways to install and configure the Splunk Add-on for the OpenTelemetry Collector:
21+
22+
* :ref:`collector-addon-install-uf`
23+
* :ref:`collector-addon-install-server`
24+
25+
You can also choose to install and configure the Add-on using a customized or third-party solution, such as Ansible or Terraform.
26+
27+
.. raw:: html
28+
29+
<embed>
30+
<h2>Differences between the Splunk Distribution of the OpenTelemetry Collector and the Splunk Add-on for the OpenTelemetry Collector<a name="collector-addon-distro-diffs" class="headerlink" href="#collector-addon-distro-diffs" title="Permalink to this headline">¶</a></h2>
31+
</embed>
32+
33+
The Collector in the Splunk Add-on for OpenTelemetry is the same Collector offered in Splunk Observability. However, the Splunk Add-on provides the added benefit of out-of-the box Collector content and configuration.
34+
35+
.. list-table::
36+
:widths: 30 40 40
37+
:width: 100%
38+
:header-rows: 1
39+
40+
* - Function
41+
- Splunk Distribution of the OpenTelemetry Collector
42+
- Splunk Add-on for the OpenTelemetry Collector
43+
44+
* - Collector binary
45+
- Supported
46+
- Supported
47+
48+
* - Gateway configuration
49+
- Supported
50+
- Supported
51+
52+
* - Default agent configuration
53+
- Includes logging receiver and exporter configuration
54+
- No out-of-the-box configuration is provided for the logging exporter or receiver
55+
56+
* - Configuration method
57+
- Environment variables
58+
- Inputs.conf
59+
60+
* - :ref:`Automatic discovery and configuration <discovery_mode>`
61+
- Supported
62+
- Not supported
63+
64+
* - Distribution and deployment
65+
- Source code, binary, Operator, Helm Charts, Debian, Ansible, Puppet, Chef, Salt
66+
- Manual installation and Splunk deployment server distribution
67+
68+
.. raw:: html
69+
70+
<embed>
71+
<h2>Prerequisites<a name="collector-addon-prereqs" class="headerlink" href="#collector-addon-prereqs" title="Permalink to this headline">¶</a></h2>
72+
</embed>
73+
74+
Before you install the Splunk Add-on for the OpenTelemetry Collector, you must have the following Splunk products installed and configured:
75+
76+
* Splunk Universal Forwarder version 8.x or 9.x on Windows or Linux: The Splunk Add-on for the OpenTelemetry Collector is installed alongside your universal forwarder to push collected data to Splunk Observability Cloud.
77+
78+
* Splunk Observability Cloud: The Splunk Add-on for the OpenTelemetry Collector is configured to send data to Splunk Observability Cloud. See :ref:`otel-intro` and :ref:`otel-requirements` for more information on how to prepare your Splunk Observability Cloud instance.
79+
80+
* (optional) Install Splunk Enterprise or Splunk Cloud if you plan to use a Splunk Web interface or deployment server as forwarders.
81+
82+
* (optional) Install the deployment server if you plan to use the deployment server to push the Splunk Add-on for the OpenTelemetry Collector to multiple hosts.
83+
84+
.. raw:: html
85+
86+
<embed>
87+
<h2>Data collection and usage<a name="collector-addon-prereqs" class="headerlink" href="#collector-addon-prereqs" title="Permalink to this headline">¶</a></h2>
88+
</embed>
89+
90+
When you deploy the Splunk Add-on for the Open Telemetry Collector, Splunk Cloud Platform sends aggregated telemetry usage data to Splunk Inc. ("Splunk") to help improve future releases. For information about how to opt in or out, and how the data is collected, stored, and governed, see :new-page:`Share performance and usage data in Splunk Enterprise <https://docs.splunk.com/Documentation/Splunk/9.3.1/Admin/Shareperformancedata>`.
91+
92+
The Splunk Add-on for the Open Telemetry Collector uses saved searches to collect anonymous usage data. These searches run in the background regardless of whether you opt in or out to send usage data to Splunk, and do not have any significant impact on performance.
93+
94+
.. raw:: html
95+
96+
<embed>
97+
<h2>Download the Technical Add-on<a name="collector-addon-intro-download" class="headerlink" href="#collector-addon-intro-download" title="Permalink to this headline">¶</a></h2>
98+
</embed>
99+
100+
You can download the Splunk Add-on for the OpenTelemetry Collector from Splunkbase. See :new-page:`Splunkbase's Splunk Add-on for the OpenTelemetry Collector <https://splunkbase.splunk.com/app/7125?_gl=1*nsvlab*_gcl_au*MTI1MDc1MzQ3OS4xNzIzNDQ2NTk2*FPAU*MTI1MDc1MzQ3OS4xNzIzNDQ2NTk2*_ga*MTY3OTA0Njk3Mi4xNjUyNzEwMTA4*_ga_5EPM2P39FV*MTcyNzcwMTk1MC4xMDQ5LjEuMTcyNzcwMjM4OC4wLjAuMzU0OTAyMDQ1*_fplc*MEE0WVo5cGVvVWpGWXhndCUyRlE1U0RIdU81dUElMkZoUFQ2RyUyQmZXcTRQMGZCdzl5R2N2NVE0JTJGdEVHTXFkZGhPdGZoJTJCQ21JdHp6cFJIOWl0TEdYJTJCd0NIc1BjelRDeG9Oc1lISDlXOU9BcHJ5cm5PTFBRJTNE>`.
101+
102+
.. raw:: html
103+
104+
<embed>
105+
<h2>Release notes<a name="collector-addon-intro-releasenotes" class="headerlink" href="#collector-addon-intro-releasenotes" title="Permalink to this headline">¶</a></h2>
106+
</embed>
107+
108+
.. list-table::
109+
:widths: 30 35 35
110+
:header-rows: 1
111+
:width: 100%
112+
113+
* - Splunk Add-on version
114+
- Release date
115+
- Collector version
116+
117+
* - 1.3.2
118+
- September 20, 2024
119+
- :new-page:`version 0.104 <https://github.com/signalfx/splunk-otel-collector/releases/tag/v0.104.0>`
120+
121+
* - 1.3.1
122+
- August 6, 2024
123+
- :new-page:`version 0.104 <https://github.com/signalfx/splunk-otel-collector/releases/tag/v0.104.0>`
124+
125+

0 commit comments

Comments
 (0)