Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Jul 13, 2023
1 parent e52beac commit 6a82adf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion archetypes/helidon/filters.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ metrics=!${metrics} || (${metrics.builtin})
tracing=!${tracing} || (${tracing} && ${metrics.provider} == 'microprofile')

# group extra options
extra=${extra} == [] || ${extra} == ['cors', 'fault-tolerance']
extra=${extra} == [] || ${extra} == ['cors', 'fault-tolerance'] || \
((${extra} && ${flavor} == 'nima') && ${extra} == ['fault-tolerance'])

# group docker, k8s and v8o
packaging=!(${docker} || ${k8s} || ${v8o}) || (${docker} && ${k8s} && ${v8o})
Expand Down
2 changes: 1 addition & 1 deletion archetypes/helidon/src/main/archetype/common/extra.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</model>
</output>
</option>
<option value="cors" name="CORS" description="Cross-Origin Resource Sharing utilities">
<option value="cors" name="CORS" description="Cross-Origin Resource Sharing utilities" if="${flavor} != 'nima'">
<output>
<templates engine="mustache" transformations="mustache,packaged">
<directory>files</directory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
description="Expose metrics using the MicroProfile API">
<output>
<model>
<list key="readme-sections">
<list key="readme-sections" if="${flavor} == 'mp'">
<value><![CDATA[
## Try metrics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@ private static class TracedHandler implements Handler {
assertThat(response.status(), is(Http.Status.OK_200));
}
}
]]></value>
</list>
<list key="readme-sections" if="${metrics}">
<value><![CDATA[
## Try metrics
```
# Prometheus Format
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/observe/metrics
{"base":...
. . .
```
]]></value>
</list>
</model>
Expand Down

0 comments on commit 6a82adf

Please sign in to comment.