Combine Spring Boot Actuator /health and /info into one
We currently have a framework which checks our Microservices, and which checks a URL for information about the health and info about our applications. The limitation here is that this framework can only check 1 URL.
What I'd like to do is to combine the information of /health and /info into one, and have /health also show the information of /info, most notably the version of the deployed application. Is something like this possible out of the box, or should I create my own health check which displays this information?
java spring-boot spring-boot-actuator
add a comment |
We currently have a framework which checks our Microservices, and which checks a URL for information about the health and info about our applications. The limitation here is that this framework can only check 1 URL.
What I'd like to do is to combine the information of /health and /info into one, and have /health also show the information of /info, most notably the version of the deployed application. Is something like this possible out of the box, or should I create my own health check which displays this information?
java spring-boot spring-boot-actuator
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54
add a comment |
We currently have a framework which checks our Microservices, and which checks a URL for information about the health and info about our applications. The limitation here is that this framework can only check 1 URL.
What I'd like to do is to combine the information of /health and /info into one, and have /health also show the information of /info, most notably the version of the deployed application. Is something like this possible out of the box, or should I create my own health check which displays this information?
java spring-boot spring-boot-actuator
We currently have a framework which checks our Microservices, and which checks a URL for information about the health and info about our applications. The limitation here is that this framework can only check 1 URL.
What I'd like to do is to combine the information of /health and /info into one, and have /health also show the information of /info, most notably the version of the deployed application. Is something like this possible out of the box, or should I create my own health check which displays this information?
java spring-boot spring-boot-actuator
java spring-boot spring-boot-actuator
asked Nov 13 '18 at 7:27
Erik PragtErik Pragt
8,10153250
8,10153250
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54
add a comment |
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54
add a comment |
1 Answer
1
active
oldest
votes
You can add below snippet to application.yml file to integrate /health and /info endpoint as /info endpoint.
info:
build:
artifact: @project.artifactId@
version: @project.version@
status: UP
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275885%2fcombine-spring-boot-actuator-health-and-info-into-one%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can add below snippet to application.yml file to integrate /health and /info endpoint as /info endpoint.
info:
build:
artifact: @project.artifactId@
version: @project.version@
status: UP
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
add a comment |
You can add below snippet to application.yml file to integrate /health and /info endpoint as /info endpoint.
info:
build:
artifact: @project.artifactId@
version: @project.version@
status: UP
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
add a comment |
You can add below snippet to application.yml file to integrate /health and /info endpoint as /info endpoint.
info:
build:
artifact: @project.artifactId@
version: @project.version@
status: UP
You can add below snippet to application.yml file to integrate /health and /info endpoint as /info endpoint.
info:
build:
artifact: @project.artifactId@
version: @project.version@
status: UP
answered Nov 13 '18 at 8:39
WGSSAMINTHAWGSSAMINTHA
10010
10010
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
add a comment |
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
Appreciate the feedback, but I don't see how this helps in combining those two endpoints. Could you provide a bit more information?
– Erik Pragt
Nov 13 '18 at 11:53
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
when we access default /actuator/health endpoint. we get response with result "status:UP" . we can add /heath endpoint result to /info endpoint. Then we can get all details from /info endpoint not using /health endpoint.
– WGSSAMINTHA
Nov 14 '18 at 3:52
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
So, the status is always up, even if the health check is down? That doesn't seem like the best use of the health check :-)
– Erik Pragt
Nov 14 '18 at 4:32
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53275885%2fcombine-spring-boot-actuator-health-and-info-into-one%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you seen github.com/codecentric/spring-boot-admin ?
– insan-e
Nov 13 '18 at 9:19
Yes, I have, and while I think spring-boot-admin is a very interesting project, I'm not sure how that helps in answering the question.
– Erik Pragt
Nov 13 '18 at 11:54