The Grafana OTEL LGTM Docker container is a container that bundles Grafana,
Prometheus, Loki, Tempo and a OTEL collector into a single image for testing,
development and demonstration purposes. We can use it to test LiteMon with
Alloy.
Below the process is described:
Run Grafana and Prometheus using the described container image.
docker run \
-p 3000:3000 \
-p 4317:4317 \
-p 4318:4318 \
-p 3100:3100 \
-p 9090:9090 \
-p 4040:4040 \
-p 3200:3200 \
-ti \
grafana/otel-lgtmAlloy is the scraper that scrapes LiteMon and pushes metrics to Prometheus.
# Download & install alloy (e.g., on RHEL)
wget https://github.com/grafana/alloy/releases/download/v1.9.1/alloy-1.9.1-1.amd64.rpm
sudo yum installlocal ./alloy-1.9.1-1.amd64.rpm
# Run alloy with testing config
./alloy-linux-amd64 run ./testing/config.alloyLast step is to run LiteMon to allow it to be scraped by Alloy.
cargo runIn your web browser navigate to localhost:3000 to open the Grafana Web UI.