https://github.com/bearddan2000/java-web-api-bloop-sbt-spring-jaeger-prometheus-grafana-name-service
Calls remote services and
https://github.com/bearddan2000/java-web-api-bloop-sbt-spring-jaeger-prometheus-grafana-name-service
api bloop bloop-sbt grafana jaeger java name opentracing prometheus sbt service spring web
Last synced: 2 months ago
JSON representation
Calls remote services and
- Host: GitHub
- URL: https://github.com/bearddan2000/java-web-api-bloop-sbt-spring-jaeger-prometheus-grafana-name-service
- Owner: bearddan2000
- Created: 2022-08-29T13:19:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T13:19:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-29T16:33:15.609Z (4 months ago)
- Topics: api, bloop, bloop-sbt, grafana, jaeger, java, name, opentracing, prometheus, sbt, service, spring, web
- Language: Scala
- Homepage: https://github.com/bearddan2000/java-web-api-bloop-sbt-spring-jaeger-prometheus-grafana-name-service
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-web-api-bloop-sbt-spring-jaeger-prometheus-grafana-name-service
## Description
Calls remote services and
benchmarks the response. Uses prometheus
to graph response times and grafana for
tracing.### STEP 1
Once the project is done building, make
some api calls `http://localhost:83/api/v1/names/random`.### STEP 2
- goto http://localhost
- click on "Explore"
- at the top change datasource to "Jaeger"
- under "Trace" pick a service
- pick "GET"
- pick a single traceTo see a graph of response times:
- Nav to http://localhost:81
- Classic UI
- Click Graph tab
- Search: 'scrape_series_added'
or 'scrape_duration_second'
or 'http_request_duration_ms_bucket'
- Duration 1mFor health check:
- Nav to http://localhost:81
- TargetesTo see a coverage of response times:
- Nav to http://localhost:82
- Look on left-hand side find services.Compiled and ran from build server `bloop`.
# Build note
Dependencies must be compatable with jdk8 or less.## Tech stack
- bloop
- java
- bloop-sbt
- opentracing## Docker stack
- openjdk:8-jdk-alpine
- jaegertracing/all-in-one:1.17
- prom/prometheus
- grafana/grafana## To run
`sudo ./install.sh -u`
- GRAFANA DASHBOARD http://localhost
- PROMETHEUS DASHBOARD http://localhost:81
- JAEGER DASHBOARD http://localhost:82
- API http://localhost:83/api/v1/names/random## To stop
`sudo ./install.sh -d`## For help
`sudo ./install.sh -h`## Credits
- [Project concept](https://github.com/himankbatra/opentracing-microservices-example)