Deploy OpenTelemetry Collector
This example uses OpenTelemetry Collector
, a vendor-agnostic implementation of how to receive, process and export telemetry data.
OpenTelemetry Collector can be used with Unikraft / Unikraft Cloud to work with telemetry data.
To run this example, follow these steps:
-
Install the
kraft
CLI tool and a container runtime engine, e.g. Docker. -
Clone the
examples
repository andcd
into theexamples/opentelemetry-collector/
directory:
Make sure to log into Unikraft Cloud by setting your token and a metro close to you.
We use fra0
(Frankfurt, 🇩🇪) in this guide:
When done, invoke the following command to deploy this application on Unikraft Cloud:
The output shows the instance URL and other details:
In this case, the instance name is opentelemetry-collector-bvtnh
.
They are different for each run.
Note that the instance does not export a service. The default configuration can receive telemetry data from other instances by specifying the private IP or internal DNS as destination. The only configured exporter is the debug exporter. Feel free to modify and redeploy!
At any point in time, you can list information about the instance:
When done, you can remove the instance:
Customize your Application
To customize the OpenTelemetry Collector application, update Kraftfile
or, more likely, the rootfs/etc/otel/config.yaml
files:
You can update the rootfs/etc/otel/config.yaml
file as detailed in the documentation.
Such as adding another export, apart from the debug exporter.
Learn More
Use the --help
option for detailed information on using Unikraft Cloud:
Or visit the CLI Reference.