Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfvanek/spring-boot-open-telemetry-demo
Spring Boot Open Telemetry Demo
https://github.com/mfvanek/spring-boot-open-telemetry-demo
docker gradle gradle-8 java java-17 kafka kotlin-dsl open-telemetry sleuth spring spring-boot spring-boot-2 spring-boot-3
Last synced: about 1 month ago
JSON representation
Spring Boot Open Telemetry Demo
- Host: GitHub
- URL: https://github.com/mfvanek/spring-boot-open-telemetry-demo
- Owner: mfvanek
- License: apache-2.0
- Created: 2020-05-17T16:34:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-24T17:09:47.000Z (about 2 months ago)
- Last Synced: 2024-09-27T07:02:13.167Z (about 2 months ago)
- Topics: docker, gradle, gradle-8, java, java-17, kafka, kotlin-dsl, open-telemetry, sleuth, spring, spring-boot, spring-boot-2, spring-boot-3
- Language: Java
- Homepage:
- Size: 429 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot Open Telemetry Demo
[![Java CI](https://github.com/mfvanek/spring-boot-open-telemetry-demo/actions/workflows/tests.yml/badge.svg)](https://github.com/mfvanek/spring-boot-open-telemetry-demo/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/mfvanek/spring-boot-open-telemetry-demo/graph/badge.svg?token=NUWI02T68G)](https://codecov.io/gh/mfvanek/spring-boot-open-telemetry-demo)## Local run from IDEA
### Start containers
```shell
docker-compose --file docker/docker-compose-base.yml --project-name="spring-boot-open-telemetry-demo" up -d
```#### UI links
* [Jaeger UI](http://localhost:16686)
* [Kafka UI](http://localhost:18080)### Start applications
```shell
./gradlew spring-boot-2-demo-app:bootRun
``````shell
./gradlew spring-boot-3-demo-app:bootRun
```### Make http request
```shell
curl http://localhost:8090/current-time
``````shell
curl http://localhost:8080/current-time
```#### Other endpoints
* [Swagger UI SB2](http://localhost:8091/actuator/swagger-ui)
* [Prometheus metrics SB2](http://localhost:8091/actuator/prometheus)
* [Health SB2](http://localhost:8091/actuator/health)## Run in Docker
### Build images
```shell
./gradlew dockerBuildImage
```### Run via Compose
```shell
docker-compose --file docker/docker-compose-full.yml --project-name="spring-boot-open-telemetry-demo" up -d
```#### UI links
* [Jaeger UI](http://localhost:16686)
* [Kafka UI](http://localhost:18080)#### How to stop
```shell
docker-compose --project-name="spring-boot-open-telemetry-demo" down
```