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/monitors-gitlab/gitlab.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,9 +137,9 @@ The following Prometheus endpoint targets are available:
137
137
Important notes
138
138
~~~~~~~~~~~~~~~~~~~~~~
139
139
140
-
* If you configue GitLab by editing ``/etc/gitlab/gitlab.rb``, run the command ``gitlab-ctl reconfigure`` for the changes to take effect.
140
+
* If you configure GitLab by editing ``/etc/gitlab/gitlab.rb``, run the command ``gitlab-ctl reconfigure`` for the changes to take effect.
141
141
142
-
* If you configue nginx by editing the file ``/var/opt/gitlab/nginx/conf/nginx-status.conf``, run the command ``gitlab-ctl restart``.
142
+
* If you configure nginx by editing the file ``/var/opt/gitlab/nginx/conf/nginx-status.conf``, run the command ``gitlab-ctl restart``.
143
143
144
144
* Note that changes to the configuration file ``/var/opt/gitlab/nginx/conf/nginx-status.conf`` in particular are erased by subsequent runs of ``gitlab-ctl reconfigure`` because ``gitlab-ctl reconfigure`` restores the original configuration file.
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
49
49
@@ -74,25 +74,25 @@ You can configure AlwaysOn Profiling in Kubernetes by editing the values.yaml fi
74
74
Follow these steps to activate Profiling for a language:
75
75
76
76
#. Open the values.yaml file.
77
-
#. In the ``operator.instrumentation.spec.<language>.env`` section, add the ``SPLUNK_PROFILER_ENABLED="true"``, ``SPLUNK_PROFILER_MEMORY_ENABLED="true"``, and ``SPLUNK_PROFILER_CALL_STACK_INTERVAL`` environment variables. For example, the following values.yaml file configures AlwaysOn Profiling to sample call stacks from a 5000 millisecond interval:
77
+
#. In the ``instrumentation.spec.<language>.env`` section, add the ``SPLUNK_PROFILER_ENABLED="true"``, ``SPLUNK_PROFILER_MEMORY_ENABLED="true"``, and ``SPLUNK_PROFILER_CALL_STACK_INTERVAL`` environment variables. For example, the following values.yaml file configures AlwaysOn Profiling to sample call stacks from a 5000 millisecond interval:
78
78
79
79
.. code-block:: yaml
80
80
81
81
operator:
82
82
enabled: true
83
-
instrumentation:
84
-
spec:
85
-
nodejs:
86
-
env:
87
-
# Activates AlwaysOn Profiling for Node.js
88
-
- name: SPLUNK_PROFILER_ENABLED
89
-
value: "true"
90
-
- name: SPLUNK_PROFILER_MEMORY_ENABLED
91
-
value: "true"
92
-
# Samples call stacks from a 5000 millisecond interval.
93
-
# If excluded, samples from a 10000 millisecond interval by default.
94
-
- name: SPLUNK_PROFILER_CALL_STACK_INTERVAL
95
-
value: 5000
83
+
instrumentation:
84
+
spec:
85
+
nodejs:
86
+
env:
87
+
# Activates AlwaysOn Profiling for Node.js
88
+
- name: SPLUNK_PROFILER_ENABLED
89
+
value: "true"
90
+
- name: SPLUNK_PROFILER_MEMORY_ENABLED
91
+
value: "true"
92
+
# Samples call stacks from a 5000 millisecond interval.
93
+
# If excluded, samples from a 10000 millisecond interval by default.
94
+
- name: SPLUNK_PROFILER_CALL_STACK_INTERVAL
95
+
value: 5000
96
96
97
97
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
98
98
@@ -108,36 +108,36 @@ You can activate runtime metrics collection for Java and Node.js applications ru
108
108
Follow these steps to activate runtime metrics collection:
109
109
110
110
#. Open the values.yaml file.
111
-
#. In the ``operator.instrumentation.spec.<language>.env`` section, add the ``SPLUNK_METRICS_ENABLED=true`` environment variable. For example, the following values.yaml file activates runtime metrics collection for Java applications:
111
+
#. In the ``instrumentation.spec.<language>.env`` section, add the ``SPLUNK_METRICS_ENABLED=true`` environment variable. For example, the following values.yaml file activates runtime metrics collection for Java applications:
112
112
113
113
.. code-block:: yaml
114
114
115
115
operator:
116
116
enabled: true
117
-
instrumentation:
118
-
spec:
119
-
java:
120
-
env:
121
-
# Activates runtime metrics collection for Java
122
-
- name: SPLUNK_METRICS_ENABLED
123
-
value: "true"
117
+
instrumentation:
118
+
spec:
119
+
java:
120
+
env:
121
+
# Activates runtime metrics collection for Java
122
+
- name: SPLUNK_METRICS_ENABLED
123
+
value: "true"
124
124
125
-
#. In the ``operator.instrumentation.spec.env`` section, add the following environment variables and values to configure the endpoint to which the Collector sends runtime metrics:
125
+
#. In the ``instrumentation.spec.env`` section, add the following environment variables and values to configure the endpoint to which the Collector sends runtime metrics:
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
143
143
@@ -157,7 +157,7 @@ To learn more about the gateway mode, see :ref:`collector-gateway-mode`.
157
157
Follow these steps to send data to a gateway endpoint:
158
158
159
159
#. Open the values.yaml file.
160
-
#. Set the ``operator.instrumentation.spec.exporter.endpoint`` value to the gateway endpoint. For example:
160
+
#. Set the ``instrumentation.spec.exporter.endpoint`` value to the gateway endpoint. For example:
161
161
162
162
.. code-block:: yaml
163
163
:emphasize-lines: 13
@@ -170,11 +170,11 @@ Follow these steps to send data to a gateway endpoint:
170
170
certmanager:
171
171
enabled: true
172
172
operator:
173
-
enabled: true
174
-
instrumentation:
175
-
spec:
176
-
exporter:
177
-
endpoint: <gateway-endpoint>
173
+
enabled: true
174
+
instrumentation:
175
+
spec:
176
+
exporter:
177
+
endpoint: <gateway-endpoint>
178
178
179
179
#. Reinstall the Splunk OTel Collector Chart with the following command. Replace <CURRENT_VERSION> with the current version of your splunk-otel-collector-chart.
Copy file name to clipboardExpand all lines: gdi/opentelemetry/automatic-discovery/k8s/k8s-backend.rst
+45-46Lines changed: 45 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ To properly ingest trace telemetry data, the attribute ``deployment.environment`
132
132
* - Through the values.yaml file ``environment`` configuration
133
133
- Applies the attribute to all telemetry data (metrics, logs, traces) exported through the collector.
134
134
- The chart will set an attribute processor to add ``deployment.environment=prd`` to all telemetry data processed by the collector.
135
-
* - Through the values.yaml file and ``operator.instrumentation.spec.env`` or ``operator.instrumentation.spec.{instrumentation_library}.env`` configuration
135
+
* - Through the values.yaml file and ``instrumentation.env`` or ``instrumentation.{instrumentation_library}.env`` configuration
136
136
- Allows you to set ``deployment.environment`` either for all auto-instrumented applications collectively or per auto-instrumentation language.
137
137
- Add the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable, setting its value to ``deployment.environment=prd``.
138
138
* - Through your Kubernetes application deployment, daemonset, or pod specification
@@ -172,15 +172,14 @@ The following examples show how to set the attribute using each method:
172
172
173
173
operator:
174
174
enabled: true
175
-
instrumentation:
176
-
spec:
177
-
env:
178
-
- name: OTEL_RESOURCE_ATTRIBUTES
179
-
value: "deployment.environment=prd"
180
-
java:
181
-
env:
182
-
- name: OTEL_RESOURCE_ATTRIBUTES
183
-
value: "deployment.environment=prd-canary-java"
175
+
instrumentation:
176
+
env:
177
+
- name: OTEL_RESOURCE_ATTRIBUTES
178
+
value: "deployment.environment=prd"
179
+
java:
180
+
env:
181
+
- name: OTEL_RESOURCE_ATTRIBUTES
182
+
value: "deployment.environment=prd-canary-java"
184
183
185
184
.. tab:: Deployment YAML
186
185
@@ -191,13 +190,13 @@ The following examples show how to set the attribute using each method:
191
190
apiVersion: apps/v1
192
191
kind: Deployment
193
192
metadata:
194
-
name: my-java-app
193
+
name: my-java-app
195
194
spec:
196
-
template:
197
-
spec:
195
+
template:
196
+
spec:
198
197
containers:
199
198
- name: my-java-app
200
-
image: my-java-app:latest
199
+
image: my-java-app:latest
201
200
env:
202
201
- name: OTEL_RESOURCE_ATTRIBUTES
203
202
value: "deployment.environment=prd"
@@ -289,10 +288,10 @@ The annotation you set depends on the language runtime you're using. You can set
289
288
apiVersion: apps/v1
290
289
kind: Deployment
291
290
metadata:
292
-
name: my-java-app
293
-
namespace: monitoring
291
+
name: my-java-app
292
+
namespace: monitoring
294
293
spec:
295
-
template:
294
+
template:
296
295
spec:
297
296
containers:
298
297
- name: my-java-app
@@ -306,16 +305,16 @@ The annotation you set depends on the language runtime you're using. You can set
@@ -351,13 +350,13 @@ The annotation you set depends on the language runtime you're using. You can set
351
350
apiVersion: apps/v1
352
351
kind: Deployment
353
352
metadata:
354
-
name: my-dotnet-app
355
-
namespace: monitoring
353
+
name: my-dotnet-app
354
+
namespace: monitoring
356
355
spec:
357
-
template:
356
+
template:
358
357
spec:
359
-
containers:
360
-
- name: my-dotnet-app
358
+
containers:
359
+
- name: my-dotnet-app
361
360
image: my-dotnet-app:latest
362
361
363
362
Activate automatic discovery by adding ``instrumentation.opentelemetry.io/otel-dotnet-auto-runtime: "linux-x64"`` and ``instrumentation.opentelemetry.io/inject-dotnet: "monitoring/splunk-otel-collector"`` to the ``spec``:
@@ -368,18 +367,18 @@ The annotation you set depends on the language runtime you're using. You can set
@@ -603,7 +602,7 @@ Allow the Operator to do the work. The Operator intercepts and alters the Kubern
603
602
604
603
You can configure the Splunk Distribution of OpenTelemetry Collector to suit your instrumentation needs. In most cases, modifying the basic configuration is enough to get started.
605
604
606
-
You can add advanced configuration like activating custom sampling and including custom data in the reported spans with environment variables and system properties. To do so, use the values.yaml file and ``operator.instrumentation.sampler`` configuration. For more information, see the :new-page:`documentation in GitHub <https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentationspecsampler>` and :new-page:`example in GitHub <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/examples/enable-operator-and-auto-instrumentation/instrumentation/instrumentation-add-trace-sampler.yaml>`.
605
+
You can add advanced configuration like activating custom sampling and including custom data in the reported spans with environment variables and system properties. To do so, use the values.yaml file and ``instrumentation.sampler`` configuration. For more information, see the :new-page:`documentation in GitHub <https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#instrumentationspecsampler>` and :new-page:`example in GitHub <https://github.com/signalfx/splunk-otel-collector-chart/blob/main/examples/enable-operator-and-auto-instrumentation/instrumentation/instrumentation-add-trace-sampler.yaml>`.
607
606
608
607
You can also use the methods shown in :ref:`k8s-auto-discovery-setup-traces` to configure your instrumentation with the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable and other environment variables. For example, if you want every span to include the key-value pair ``build.id=feb2023_v2``, set the ``OTEL_RESOURCE_ATTRIBUTES`` environment variable:
0 commit comments