Skip to content

Commit

Permalink
fix readme for metrics (helidon-io#8020)
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <[email protected]>
  • Loading branch information
tvallin authored Nov 16, 2023
1 parent 60129db commit fa71b68
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,18 @@ curl -H 'Accept: application/json' -X GET http://localhost:8080/metrics
<value if="${flavor} == 'se'">io.helidon.webserver.observe.metrics</value>
<value if="${flavor} == 'se'">io.helidon.metrics.api</value>
</list>
<list key="readme-sections">
<list key="readme-sections" if="${flavor} == 'se'">
<value><![CDATA[
## Try metrics
```
# Prometheus Format
curl -s -X GET http://localhost:8080/metrics
curl -s -X GET http://localhost:8080/observe/metrics
# TYPE base:gc_g1_young_generation_count gauge
. . .
# JSON Format
curl -H 'Accept: application/json' -X GET http://localhost:8080/metrics
curl -H 'Accept: application/json' -X GET http://localhost:8080/observe/metrics
{"base":...
. . .
```
Expand Down

0 comments on commit fa71b68

Please sign in to comment.