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
* The monitored AWS Lambda (instrumented using Open Telemetry)
7
+
We'll setup monitoring for one or more AWS Lambda functions:
8
+
* The monitored AWS Lambda function(s) (instrumented using Open Telemetry)
9
9
* The Open Telmetry collector
10
10
* SUSE Observability or SUSE Cloud Observability
11
11
12
-
DIAGRAM...
12
+

13
13
14
-
## Install the Open Telemetry collector
14
+
## The Open Telemetry collector
15
15
16
16
{% hint type="info" %}
17
-
For a production setup it is strongly recommended to install the collector, since it allows your service to offload data quickly and the collector can take care of additional handling like retries, batching, encryption or even sensitive data filtering.
17
+
For a production setup it is strongly recommended to install the collector, since it allows your service to offload data quickly and the collector can take care of additional handling like retries, batching, encryption or even sensitive data filtering.
18
18
{% endhint %}
19
19
20
-
First we'll install the collector. It can handle several tasks:
20
+
First we'll install the OTel (Open Telemetry) collector, in this example we use a Kubernetes cluster to run it close to the Lambda functions. A similar setup can be made using a collector installed on a virtual machine instead. The configuration used here only acts as a secure proxy to offload data quickly from the Lambda functions and runs within trusted network infrastructure.
21
21
22
-
* Sampling of traces
23
-
* Forward the data to SUSE Observability, including authentication using the API key
24
-
* Retries sending data when there are a connection problems, even after the lambda function has terminated
22
+
### Create a secret for the API key
25
23
26
-
To configure the collector you'll need the OTLP or OTLP over HTTP endpoint of SUSE Observability to be securely accessible. The SUSE Observability Helm chart allows you to set that up via an ingress configuration. If you didn't do that during installation now is the time to [add that ingress configuration](/setup/install-stackstate/kubernetes_openshift/ingress.md#configure-ingress-rule-for-open-telemetry). If you're using SUSE Cloud Observability these are the applicable URLs:
27
-
*https://otel-<your-suse-observabillity>.app.stackstate.com - For the OTLP protocol
28
-
*https://otel-http-<your-suse-observabillity>.app.stackstate.com - For OTLP over HTTP
24
+
We'll use the receiver API key generated during installation (see [here](/use/security/k8s-ingestion-api-keys.md#api-keys) where to find it):
29
25
30
-
Follow the steps [here](../proxy-collector.md) to configure and install the collector. These steps show how to make it securely accessible for the instrumented Lambda functions by installing it in a Kubernetes cluster, but the same can be done by installing the collector on an EC2 instance and installing the collector using an RPM or Debian package, see also [Getting started other](getting-started-other.md).
We install the collector with a Helm chart provided by the Open Telemetry project. Make sure you have the Open Telemetry helm charts repository configured:
Create a `otel-collector.yaml` values file for the Helm chart. Here is a good starting point for usage with SUSE Observability, replace `<otlp-suse-observability-endpoint>` with your OTLP endpoint (see [OTLP API](../otlp-apis.md) for your endpoint) and insert the name for your Kubernetes cluster instead of `<your-cluster-name>`:
Make sure that the proxy is accessible by the Lambda functions by connecting them to the same VPC. It is recommended to use a source-range whitelist to filter out data from untrusted and/or unknown sources.
123
+
124
+
The collector offers a lot more configuration receivers, processors and exporters, for more details see our [collector page](../collector.md). For production usage often large amounts of spans are generated and you will want to start setting up [sampling](../sampling.md).
31
125
32
126
## Instrument a Lambda function
33
127
@@ -36,4 +130,11 @@ Open Telemetry supports instrumenting Lambda functions in multiple languages usi
36
130
## View the results
37
131
Go to SUSE Observability and make sure the Open Telemetry Stackpack is installed (via the main menu -> Stackpacks).
38
132
39
-
After a a short while and if your Lambda function(s) are getting some traffic you should be able to find the functions under their service name in the Open Telemetry -> services and service instances overviews. Traces will appear in the [trace explorer](/use/traces/k8sTs-explore-traces.md) and in the [trace perspective](/use/views/k8s-traces-perspective.md) for the service and service instance components. Span metrics and language specific metrics (if available) will become available in the [metrics perspective](/use/views/k8s-metrics-perspective.md) for the components.
133
+
After a a short while and if your Lambda function(s) are getting some traffic you should be able to find the functions under their service name in the Open Telemetry -> services and service instances overviews. Traces will appear in the [trace explorer](/use/traces/k8sTs-explore-traces.md) and in the [trace perspective](/use/views/k8s-traces-perspective.md) for the service and service instance components. Span metrics and language specific metrics (if available) will become available in the [metrics perspective](/use/views/k8s-metrics-perspective.md) for the components.
0 commit comments