Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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: