Skip to content

Commit 5aa2208

Browse files
Merge pull request #2489 from splunk/urbiz-DG27698-rc-clarify
[DG27698]: RC clarification
2 parents a5f1bfd + c7eaa8c commit 5aa2208

File tree

1 file changed

+39
-33
lines changed

1 file changed

+39
-33
lines changed

metrics-and-metadata/relatedcontent.rst

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The following table describes when and where in Splunk Observability Cloud you c
7373
Use the Splunk Distribution of the OpenTelemetry Collector to enable Related Content
7474
==========================================================================================================
7575

76-
Splunk Observability Cloud uses OpenTelemetry to correlate telemetry types. To enable this ability, your telemetry field names or metadata key names must exactly match the metadata key names used by both OpenTelemetry and Splunk Observability Cloud.
76+
Splunk Observability Cloud uses OpenTelemetry to correlate telemetry types. To do this, your telemetry field names or metadata key names must exactly match the metadata key names used by both OpenTelemetry and Splunk Observability Cloud.
7777

7878
Related Content works out-of-the-box when you deploy the Splunk Distribution of the OpenTelemetry Collector with its default configuration to send your telemetry data to Splunk Observability Cloud. With the default configuration the Collector automatically maps your metadata key names correctly. To learn more about the Collector, see :ref:`otel-intro`.
7979

@@ -108,7 +108,7 @@ When the field names in APM and Log Observer match, the trace and the log with t
108108
Required Collector components
109109
=================================================================
110110

111-
If you're using the Splunk Distribution of the OpenTelemetry Collector, another distribution of the Collector, or the :ref:`upstream Collector <using-upstream-otel>` and want to ensure Related Content in Splunk Observability Cloud behaves correctly, verify that the SignalFx exporter is included in your configuration. This exporter aggregates the metrics from the ``hostmetrics`` receiver and must be enabled for the ``metrics`` and ``traces`` pipelines.
111+
If you're using the Splunk Distribution of the OpenTelemetry Collector, any other distribution of the Collector, or the :ref:`upstream Collector <using-upstream-otel>` and want to ensure Related Content in Splunk Observability Cloud behaves correctly, verify that the SignalFx exporter is included in your configuration. This exporter aggregates the metrics from the ``hostmetrics`` receiver and must be enabled for the ``metrics`` and ``traces`` pipelines.
112112

113113
The Collector uses the correlation flag of the SignalFx exporter to make relevant API calls to correlate your spans with the infrastructure metrics. This flag is enabled by default. To adjust the correlation option further, see the SignalFx exporter's options at :ref:`signalfx-exporter-settings`.
114114

@@ -124,10 +124,12 @@ The following sections list the metadata key names required to enable Related Co
124124
Splunk APM
125125
-----------------------------------------------------------------
126126

127-
The following APM span tags are required to enable Related Content:
127+
To enable Related Content for APM use one of these span tags:
128128

129129
- ``service.name``
130-
- ``deployment.environment``
130+
- ``trace_id``
131+
132+
Optionally, you can also use ``deployment.environment`` with ``service.name``.
131133

132134
The default configuration of the Splunk Distribution of the OpenTelemetry Collector already provides these span tags. To ensure full functionality of Related Content, do not change any of the metadata key names or span tags provided by the Splunk OTel Collector.
133135

@@ -154,39 +156,58 @@ For example, consider a scenario in which Related Content needs to return data f
154156
Splunk Infrastructure Monitoring
155157
-----------------------------------------------------------------
156158

157-
The following Infrastructure Monitoring metadata keys are required to enable Related Content:
159+
To enable Related Content for IM use one of these metadata combinations:
158160

159-
- ``host.name``
161+
- ``host.name``. It falls back on ``host``, ``aws_private_dns_name`` (AWS), ``instance_name`` (GCP), ``azure_computer_name`` (Azure)
160162
- ``k8s.cluster.name``
161-
- ``k8s.node.name``
162-
- ``k8s.pod.name``
163-
- ``container.id``
164-
- ``k8s.namespace.name``
165-
- ``kubernetes.workload.name``
163+
- ``k8s.cluster.name`` + ``k8s.node.name``
164+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name``
165+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name`` (optional) + ``container.id``
166+
- ``service.name``
167+
- ``service.name`` + ``deployment.environment`` (optional) + ``k8s.cluster.name`` (optional)
166168

167169
If you're using the default configuration of the Splunk Distribution of the OpenTelemetry Collector for Kubernetes, the required Infrastructure Monitoring metadata is provided. See more at :ref:`otel-install-k8s`.
168170

169171
If you're using other distributions of the OpenTelemetry Collector or non-default configurations of the Splunk Distribution to collect infrastructure data, Related Content won't work out of the box.
170172

171173
.. _relatedcontent-log-observer:
172174

173-
Splunk Log Observer
175+
Splunk logs
174176
-----------------------------------------------------------------
175177

176-
.. include:: /_includes/log-observer-transition.rst
177-
178-
The following key names are required to enable Related Content for Log Observer:
178+
To enable Related Content for logs use one of these fields:
179179

180-
- ``service.name``
181-
- ``deployment.environment``
182180
- ``host.name``
183-
- ``trace_id``
181+
- ``service.name``
184182
- ``span_id``
183+
- ``trace_id``
185184

186185
To ensure full functionality of both Log Observer and Related Content, verify that your log events fields are correctly mapped. Correct log field mappings enable built-in log filtering, embed logs in APM and Infrastructure Monitoring functionality, and enable fast searches as well as the Related Content bar.
187186

188187
If the key names in the preceding list use different names in your log fields, remap them to the key names listed here. For example, if you don't see values for :strong:`host.name` in the Log Observer UI, check to see whether your logs use a different field name, such as :strong:`host_name`. If your logs do not contain the default field names exactly as they appear in the preceding list, remap your logs using one of the methods in the following section.
189188

189+
.. include:: /_includes/log-observer-transition.rst
190+
191+
Kubernetes log fields
192+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
193+
194+
The Splunk Distribution of the OpenTelemetry Collector injects the following fields into your Kubernetes logs. Do not modify them if you want to use Related Content.
195+
196+
- ``k8s.cluster.name``
197+
- ``k8s.node.name``
198+
- ``k8s.pod.name``
199+
- ``container.id``
200+
- ``k8s.namespace.name``
201+
- ``kubernetes.workload.name``
202+
203+
Use one of these tag combinations to enable Related Content:
204+
205+
- ``k8s.cluster.name`` + ``k8s.node.name``
206+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name``
207+
- ``k8s.cluster.name`` + ``k8s.node.name`` (optional) + ``k8s.pod.name`` (optional) + ``container.id``
208+
209+
Learn more about the Collector for Kubernetes at :ref:`collector-kubernetes-intro`.
210+
190211
.. _remap-log-fields:
191212

192213
Remap log fields
@@ -207,7 +228,6 @@ The following table describes the four methods for remapping log fields:
207228
* - Client-side
208229
- Configure your app to remap the necessary fields.
209230

210-
211231
When to use Log Field Aliasing
212232
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
213233

@@ -218,20 +238,6 @@ Use Log Field Aliasing to remap fields in Splunk Observability Cloud when you ca
218238
- You do not want to transform your data at index time.
219239
- You want the new alias to affect every log message, even those that came in from a time before you created the alias.
220240

221-
Kubernetes log fields
222-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
223-
224-
The Splunk Distribution of the OpenTelemetry Collector injects the following fields into your Kubernetes logs. Do not modify them if you want to use Related Content.
225-
226-
- ``k8s.cluster.name``
227-
- ``k8s.node.name``
228-
- ``k8s.pod.name``
229-
- ``container.id``
230-
- ``k8s.namespace.name``
231-
- ``kubernetes.workload.name``
232-
233-
Learn more about the Collector for Kubernetes at :ref:`collector-kubernetes-intro`.
234-
235241
How to change your metadata key names
236242
=================================================================
237243

0 commit comments

Comments
 (0)