Notes and demo code. The Java demos are in separate branches:
- 01-hello-world
- 02a-direct-instrumentation
- 02b-direct-instrumentation-with-spring-boot-endpoint
- 03a-spring-boot-actuator-enabled
- 03b-spring-boot-actuator-custom-metric
- 03c-spring-boot-actuator-prometheus-bridge
- 04a-jmx-enabled
- 04b-jmx-custom-metric
- 04c-jmx-remote-prometheus-bridge
- 04d-jmx-agent-prometheus-bridge
- 05a-dropwizard-enabled
- 05b-dropwizard-prometheus-bridge
With each branch, an example is added, so that the demo in the last branch contains all examples in one single Java class. In practice, you would choose only one of the alternatives and use only one alternative in your Java class.
Notes are here: