client_java/examples/example-exporter-multi-target at main · technicallyjames/client_java · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

Multi-Target pattern example

Build

This example is built as part of the client_java project.

./mvnw package

Run

The build creates a JAR file with the example application in ./examples/example-exporter-multi-target/target/.

java -jar ./examples/example-exporter-multi-target/target/example-exporter-multi-target.jar

Manually testing the Metrics Endpoint

Accessing http://localhost:9400/metrics with a Web browser should yield an example of a counter metric.

# HELP uptime_seconds_total total number of seconds since this application was started
# TYPE uptime_seconds_total counter
uptime_seconds_total 301.0

The exporter supports a debug URL parameter to quickly view other formats in your Web browser: