This is a plugin that makes it easy to use OTel with Spin.
Spin applications have the ability to export metrics and trace data. This plugin provides dashboards for viewing the data.
This plugin relies on third-party software to work properly. Please be sure you have the following installed before continuing:
- Latest version of Docker
The trigger is installed as a Spin plugin. It can be installed from a release or build.
The latest stable release of the command trigger plugin can be installed like so:
spin plugins update
spin plugin install otel
The canary release of the command trigger plugin represents the most recent commits on main
and may not be stable, with some features still in progress.
spin plugins install --url https://github.com/fermyon/otel-plugin/releases/download/canary/otel.json
Alternatively, use the spin pluginify
plugin to install from a fresh build. This will use the pluginify manifest (spin-pluginify.toml
) to package the plugin and proceed to install it:
spin plugins install pluginify
go build -o otel
spin pluginify --install
Once the plugin is installed, you can try the below commands:
spin otel setup
spin otel up
Any flags that work with the spin up
command, will work with the spin otel up
command.
spin otel up -- --help
Dashboard for viewing metrics and logs:
spin otel open grafana
Dashboard for viewing trace data:
spin otel open jaeger
Dashboard for querying and viewing metrics:
spin otel open prometheus
spin otel cleanup