Rancher & Kubernetes
SUSE Observability
Last updated
SUSE Observability
Last updated
Here is the setup we'll be creating, for an application that needs to be monitored:
The monitored application / workload running in cluster A
The Open Telemetry collector running near the observed application(s), so in cluster A, and sending the data to SUSE Observability
SUSE Observability running in cluster B, or SUSE Cloud Observability
First we'll install the OTel (Open Telemetry) collector in cluster A. We configure it to:
Receive data from, potentially many, instrumented applications
Enrich collected data with Kubernetes attributes
Generate metrics for traces
Forward the data to SUSE Observability, including authentication using the API key
Next to that it will also retry sending data when there are connection problems.
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:
Now install the collector, using the configuration file:
The common way to collect telemetry data is to instrument your application using the Open Telemetry SDK's. We've documented some quick start guides for a few languages, but there are many more:
Go to SUSE Observability and make sure the Open Telemetry Stackpack is installed (via the main menu -> Stackpacks).
We'll install in the open-telemetry
namespace and use the receiver API key generated during installation (see where to find it):
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 for your endpoint) and insert the name for your Kubernetes cluster instead of <your-cluster-name>
:
The collector offers a lot more configuration receivers, processors and exporters, for more details see our . For production usage often large amounts of spans are generated and you will want to start setting up .
For other languages follow the documentation on and make sure to configure the SDK exporter to ship data to the collector you just installed by following .
After a short while and if your pods are getting some traffic you should be able to find them under their service name in the Open Telemetry -> services and service instances overviews. Traces will appear in the and in the for the service and service instance components. Span metrics and language specific metrics (if available) will become available in the for the components.
If you also have the Kubernetes stackpack installed the instrumented pods will also have the traces available in the .
You can add new charts to components, for example the service or service instance, for your application, by following . It is also possible to create using the metrics and setup to get notified when your application is not available or having performance issues.