spring boot - How to change the endpoint of prometheus metrics -
i trying expose metrics spring-boot service prometheus. unfortunately, both spring-boot actuator , prometheus simple-client expose metrics through /metrics endpoint.
how can endpoint of simple-client changed?
thanks
for java client specify endpoint when setting servlet, see https://github.com/robustperception/java_examples/blob/master/java_simple/src/main/java/io/robustperception/java_examples/javasimple.java#l39 example. can change endpoint whatever like.
Comments
Post a Comment