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
Copy file name to clipboardexpand all lines: docs/kubernetes/operator/instrumenting-applications.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ spec:
104
104
containers:
105
105
- image: myapplication-image
106
106
name: app
107
-
...
107
+
...
108
108
```
109
109
110
110
where ``<LANGUAGE>`` is one of: `go`, `java`, `nodejs`, `python`, `dotnet`
@@ -130,7 +130,7 @@ After adding annotations to Pods or Namespaces, the applications must be restart
130
130
kubectl rollout restart deployment/my-deployment
131
131
```
132
132
133
-
In case you have multiple Instrumentation objects with different settings or images, ensure you point your Pods to the the desired `Instrumentation` objects in the annotations.
133
+
In case you have multiple Instrumentation objects with different settings or images, ensure you point your Pods to the desired `Instrumentation` objects in the annotations.
134
134
135
135
The possible values for the annotation are detailed in the [Operator documentation](https://opentelemetry.io/docs/kubernetes/operator/automatic/#add-annotations-to-existing-deployments). For reference purposes, the values are:
136
136
@@ -152,7 +152,7 @@ The following example creates a namespace with an annotation to instrument all P
Copy file name to clipboardexpand all lines: docs/kubernetes/operator/instrumenting-java.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This document focuses on instrumenting Java applications on Kubernetes, using th
10
10
11
11
The operator supports a configuration that installs [Java agent extensions](https://opentelemetry.io/docs/zero-code/java/agent/extensions/) in `Instrumentation` objects. The extension needs to be available in an image. Refer to [using extensions with the OpenTelemetry Java agent](https://www.elastic.co/observability-labs/blog/using-the-otel-operator-for-injecting-elastic-agents#using-an-extension-with-the-opentelemetry-java-agent) for an example of adding an extension to an agent.
12
12
13
-
## Instrument a Java app with EDOT Java SDK on Kubernetes
13
+
## Instrument a Java app with EDOT Java SDK on Kubernetes
14
14
15
15
In this example, you'll learn how to:
16
16
@@ -26,7 +26,7 @@ For this example, we assume the application you're instrumenting is a deployment
26
26
27
27
```bash
28
28
$ kubectl get instrumentation -n opentelemetry-operator-system
- Open **Observability** -> **Applications** -> **Service inventory**, and determine if:
143
143
- The application appears in the list of services.
144
144
- The application shows transactions and metrics.
145
-
145
+
146
146
- For application container logs, open **Kibana Discover** and filter for your Pods' logs. In the provided example, we could filter for them with either of the following:
147
147
- `k8s.deployment.name: "java-app"` (**adapt the query filter to your use case**)
148
148
- `k8s.pod.name: java-app*` (**adapt the query filter to your use case**)
Ensure the environment variable `OTEL_EXPORTER_OTLP_ENDPOINT` points to a valid endpoint and there's network communication between the Pod and the endpoint.
145
145
146
-
5. Confirm data is flowing through in **Kibana**:
147
-
148
146
5. Confirm data is flowing to **Kibana**:
149
147
150
148
- Open **Observability** -> **Applications** -> **Service inventory**, and determine if:
151
149
- The application appears in the list of services.
152
150
- The application shows transactions and metrics.
153
151
- If [python logs instrumentation](https://opentelemetry.io/docs/kubernetes/operator/automatic/#auto-instrumenting-python-logs) is enabled, the application logs should appear in the Logs tab.
154
-
152
+
155
153
- For application container logs, open **Kibana Discover** and filter for your Pods' logs. In the provided example, we could filter for them with either of the following:
156
154
- `k8s.deployment.name: "python-app"` (**adapt the query filter to your use case**)
157
155
- `k8s.pod.name: python-app*` (**adapt the query filter to your use case**)
0 commit comments