-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WFLY-17678] Add Micrometer quickstart #662
Conversation
e9e44ec
to
79e9952
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes needed, some changes suggested and there are a couple resources missing:
- the Helm Chart at charts/helm.yaml (see https://docs.google.com/document/d/1GFnZrnlwRkwC0HfziRws2UUWR99KdaQayA7Ei12SGN4/edit#heading=h.sldbnukpvc2 )
- the CI workflow at .github/workflows/quickstart_microprofile-micrometer_ci.yml ( see https://docs.google.com/document/d/1GFnZrnlwRkwC0HfziRws2UUWR99KdaQayA7Ei12SGN4/edit#heading=h.c4iuyi3bm84h )
micrometer/src/main/java/org/wildfly/quickstarts/micrometer/RootResource.java
Show resolved
Hide resolved
79e9952
to
7507799
Compare
Following the README instructions it's failing to deploy on current WFLY main (dist/target/wildfly-30.0.0.Final-SNAPSHOT/bin/standalone.sh), perhaps it needs another config? If so you should specify which in the README.adoc attributes at top |
Ok it seems this is just a README issue, later in the doc it's required to reconfig the server, I will pinpoint in sources... |
@emmartins Changes made and pushed. |
1cce209
to
1ddb325
Compare
/retest |
ef3c303
to
bef8e05
Compare
bef8e05
to
f4d0759
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase and do changes on comments.
960d357
to
568672c
Compare
@emmartins I believe I have addressed all of the requests here. Please verify and let me know if I missed anything. On to the next one... :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good, but functionally the docker service is not working as expected with bootable-jar and provisioned-server, I believe this is due to not configuring the micrometer endpoint, which can be solved by packaging a cli script with the following command:
/subsystem=micrometer:write-attribute(name=endpoint, value="http://localhost:4318/v1/metrics")
Now thinking a bit more about this, I can imagine this kind of design will have trouble on OpenShift too, cause we need similar script packaged on openshift profile yet we don't actually know the metrics service hostname. Related, I guess we also need extra README content on how to setup the metrics service for OpenShift. Alternatively, we could say there that setup and usage of the metrics service is not OpenShift compatible, that only the app is compatible, but I think that would make us look as lazy.
Wrt packaging a script to do such change, you can use same approach as the telemetry one, and change
and then you package it to the wiildfly and wildfly-jar plugin configs:
This still has the OpenShift trouble of the localhost hostname usage in the script tho. PS: please note the removal of reload command, such command atm has issues with provisioning so please remove it from all scripts (valid for telemetry script too) |
568672c
to
b9407c7
Compare
provisioned-server and bootable-jar now works, thanks. |
b9407c7
to
27e4faf
Compare
WFLY 31.0.0.Beta1 has been released, please rebase this PR with upstream/main branch, and update:
|
Add module Develop demo app Document QS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, @kstekovi you good to go on this one too
@jasondlee: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested baremetal and provisioning locally, LGTM.
everything LGTM. I don't have any topics for discussion. The OpenShift part is not ready yet. |
merged, thank you both, please don't forget we now should work on a new PR properly handling OpenShift |
https://issues.redhat.com/browse/WFLY-17678
Add module
Develop demo app
Add README