Skip to content

bearddan2000/java-web-api-bloop-sbt-spring-jaeger-prometheus-name-service

Repository files navigation

java-web-api-bloop-sbt-spring-jaeger-prometheus-name-service

Description

Calls remote services and benchmarks the response. Uses prometheus to graph response times.

STEP 1

Once the project is done building, make some api calls http://localhost:82/api/v1/names/random.

To see a graph of response times:

  • Nav to http://localhost
  • Classic UI
    • Click Graph tab
      • Search: 'scrape_series_added' or 'scrape_duration_second' or 'http_request_duration_ms_bucket'
      • Duration 1m

For health check:

To see a coverage of response times:

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

To run

sudo ./install.sh -u

To stop

sudo ./install.sh -d

For help

sudo ./install.sh -h

Credits