Linux
SUSE Observability
Getting Started with Open Telemetry
Here is the setup we'll be creating, for an application that needs to be monitored:
The monitored application / workload running on a Linux host
The Open Telemetry collector running on the same Linux host
SUSE Observability or SUSE Cloud Observability

Install the Open Telemetry collector
First we'll install the collector. We configure it to:
Receive data from, potentially many, instrumented applications
Enrich collected data with host 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 a connection problems.
Configure and install the collector
Install and configure the collector
The collector provides packages (apk, deb and rpm) for most Linux versions and architectures and it uses systemd
for automatic service configuration. To install it find the latest release on Github and update the URL in the example to use the latest version:
For other installation options use the Open Telemetry instructions.
After installation modify the collector configuration by editing /etc/otelcol-contrib/config.yaml
. Change the file such that it looks like the config.yaml
example here, replace <otlp-suse-observability-endpoint:port>
with your OTLP endpoint (see OTLP API for your endpoint) and insert your receiver api key for <receiver-api-key>
(see here where to find it):
Finally restart the collector:
To see the logs of the collector use:
Collect telemetry data from your application
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:
No additional configuration is needed for the SDKs, they export to localhost via OTLP or OTLP over HTTP (depending on the supported protocols) by default.
For other languages follow the documentation on opentelemetry.io.
View the results
Go to SUSE Observability and make sure the Open Telemetry Stackpack is installed (via the main menu -> Stackpacks).
After a short while and if your application is processing some traffic you should be able to find it under its service name in the Open Telemetry -> services and service instances overviews. Traces will appear in the trace explorer and in the trace perspective for the service and service instance components. Span metrics and language specific metrics (if available) will become available in the metrics perspective for the components.
Next steps
You can add new charts to components, for example the service or service instance, for your application, by following our guide. It is also possible to create new monitors using the metrics and setup notifications to get notified when your application is not available or having performance issues.
More info
Last updated