Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 757 Bytes

File metadata and controls

20 lines (13 loc) · 757 Bytes

This example is a very simple application running on Thorntail that exposes a service on http://localhost:8080. The application is instrumented using the client_java library.

It offers 2 endpoints:

  • /hello responding 200 OK with Hello from Thorntail!. The endpoint adds a random delay to generate different response times. From time to time, it will fail with 500 SERVER UNAVAILABLE.
  • /metrics exposing the Prometheus metrics.

Running it

mvn thorntail:run

Visit http://localhost:8080/hello a couple of times. Then go to http://localhost:8080/metrics to view the metrics.

Documentation

The API documentation is available at (http://prometheus.github.io/client_java/).