https://github.com/officiallysingh/spring-boot-lgtm-otel-observability
Spring boot Observability Demo with Grafana Loki Tempo Mimir and Alloy
https://github.com/officiallysingh/spring-boot-lgtm-otel-observability
Last synced: about 2 months ago
JSON representation
Spring boot Observability Demo with Grafana Loki Tempo Mimir and Alloy
- Host: GitHub
- URL: https://github.com/officiallysingh/spring-boot-lgtm-otel-observability
- Owner: officiallysingh
- Created: 2025-04-01T06:13:41.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T15:39:01.000Z (about 2 months ago)
- Last Synced: 2025-04-01T16:44:52.157Z (about 2 months ago)
- Language: Java
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring boot Open Telemetry Demo
This directory contains a Docker Compose environment that can be used to test
Grafana Alloy.> **NOTE**: This environment is not intended for production use, and is
> maintained on a best-effort basis.By default, only Grafana and databases are exposed:
* Grafana, for visualizing telemetry [http://localhost:3000](http://localhost:3000)
* Grafana Mimir, for storing metrics [http://localhost:9009](http://localhost:9009)
* Grafana Loki, for storing logs (`localhost:3100`)
* Grafana Tempo, for storing traces (`localhost:3200`)
* Grafana Pyroscope, for storing profiles (`localhost:4040`)
* Grafana Alloy, for receiving and exporting OTEL metrics, traces and logs [http://localhost:12345](http://localhost:12345)Grafana is automatically provisioned with the appropriate datasources and
dashboards for monitoring Grafana Alloy.To create Docker image of application, run the following command.
```text
docker image build . -t spring-boot-observability-demo:0.0.1 -f Dockerfile
```To start the environment, run:
```bash
docker compose up --build -d
```To stop the environment, run:
```bash
docker compose down
```## Visualizing
To visualize Alloy data in Grafana, open in a web browser.
> **NOTE**: It can take up to a minute for Alloy metrics and profiles to start appearing.