Combine Spring Boot Actuator /health and /info into one










1














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?










share|improve this question





















  • 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















1














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?










share|improve this question





















  • 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













1












1








1







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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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












1 Answer
1






active

oldest

votes


















0














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





share|improve this answer




















  • 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










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
);



);













draft saved

draft discarded


















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









0














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





share|improve this answer




















  • 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















0














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





share|improve this answer




















  • 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













0












0








0






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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

ReactJS Fetched API data displays live - need Data displayed static

政党