Collector receives, processes, and exports telemetry data.
One way to quickly start with OpenTelemetry is to run a collector with a front end as a Docker container.
The below instructions explain how to start an OpenTelemetry collector with Grafana in Google Cloud:
3000
, 4317
, and 4318
sudo bash
- become a rootapt install podman
podman pull docker.io/grafana/otel-lgtm
podman run -p 3000:3000 -p 4317:4317 -p 4318:4318 grafana/otel-lgtm
. See docker-otel-lgtm GitHub repository for details.podman ps -a
, copy container ID or namepodman start <container name or ID>
-Dotel.java.global-autoconfigure.enabled=true -Dotel.metrics.exporter=otlp -Dotel.logs.exporter=otlp -Dotel.traces.exporter=otlp -Dotel.exporter.otlp.endpoint=http://<VM external IP>:4317 -Dotel.service.name=<service name>
properties to the command line. You can also use environment variables. See Environment variables and system properties for more details.http://<VM external IP>:3000
in a web browserAnother option, out of many, is to use Grafana Cloud. You would have to install Grafana Alloy on your machine.