Тёмный

Spring Boot Quick Start 33 - Spring Boot Actuator 

Java Brains
Подписаться 668 тыс.
Просмотров 336 тыс.
50% 1

Access the full course here: javabrains.io/courses/spring_...
Learn how to use the Spring Actuator dependency to access new monitoring endpoints in yoru Spring Boot application.

Опубликовано:

 

22 дек 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@sameerkhnl1
@sameerkhnl1 6 лет назад
With Spring Boot 2.0.0 you need to use /actuator/health Also, in the application properties file, you have to add the following line in order to see the details when using the /actuator/health endpoint. management.endpoint.health.show-details=always
@adilmuthukoya2272
@adilmuthukoya2272 5 лет назад
@Aslı KILIÇ management.endpoints.web.exposure.include=*
@themrambusher
@themrambusher 5 лет назад
thanks mate love you
@thomaslee3565
@thomaslee3565 5 лет назад
tytyty
@ayushsharma397
@ayushsharma397 4 года назад
thanks for this information
@szeeshan896
@szeeshan896 4 года назад
Yeah, buddy, it worked. Thank you so much.
@KiranKumar-bt5ms
@KiranKumar-bt5ms 3 года назад
Hi Kaushik, the content, presentation and execution of examples are really awesome. I have gone through entire videos. I got very good understanding on Spring Boot. Thanks a lot.
@syednadeembe
@syednadeembe 3 года назад
I'm a First time Sprint Boot user and I can say that these tutorials have helped me immensely. I'm for sure endorsing this channel
@mayankjain3311
@mayankjain3311 7 лет назад
Wow Kaushik! I was waiting for this series, we are already using this in our application, this will help us a lot. Thanks a ton! ☺
@yogendersingh4058
@yogendersingh4058 5 лет назад
Great set of videos to get a quick idea of Spring boot, REST and JPA! Thanks for the hard work!
@yu-chenxue3460
@yu-chenxue3460 5 лет назад
For a reminder, using Spring Boot 2.1.2, you should add these lines in your `application properties` file to reimplement the tasks in the video: ``` management.endpoint.health.show-details=always management.endpoints.web.exposure.include=* management.endpoint.beans.enabled=true ``` Also, you need to query with `/actuator/health` and `actuator/beans` to do the job. Many thanks to the suggestions brought by @Sameer Khanal and @Adil Muthukoya
@PawanGupta-bw1xy
@PawanGupta-bw1xy 4 года назад
This solution worked out for me..thanks
@NimDod
@NimDod 4 года назад
bless you
@ALLINONETV1
@ALLINONETV1 6 месяцев назад
Thanks for the info
@saptarshimukherjee2122
@saptarshimukherjee2122 2 месяца назад
Thanks for the solution, it worked!!
@Brocklesna8
@Brocklesna8 4 года назад
Amazing video course for Spring FW. Anyone who has a good understanding of OOPS can make good use of this quick and short course for spring to get started .
@sauravsamant1023
@sauravsamant1023 5 лет назад
To add on top of Sameer's answers, from Spring Boot 2.0.0 to see health and beans details use endpoints /actuator/health/ and /actuator/beans respectively after adding below in 'application.properties' file management.endpoint.health.show-details=always management.endpoints.web.exposure.include=health,beans Also, 'management.port' has been changed to 'management.server.port'.
@annecherian1516
@annecherian1516 4 года назад
Great tutorial which has explained to all fundamental things well
@niraj08karki
@niraj08karki 5 лет назад
Thank you Sir. Highly Appreciated for you effort.
@atassun
@atassun 7 лет назад
really good info. I will try implement same in our project too.
@parulanand7902
@parulanand7902 3 года назад
Thank you much sir for clearing my concept.
@nuwanwickramasingha3741
@nuwanwickramasingha3741 3 года назад
Good course,Complete ,simple
@rjcdz06
@rjcdz06 3 года назад
Excellent! It is useful! Thanks a lot!
@mrcosminx
@mrcosminx 6 лет назад
excellent series!
@141143vissu
@141143vissu 7 лет назад
Nice video. Do we need to do any additional steps when we try to deploy Actuator concept (above example) in JBOSS server?
@shoppersdream
@shoppersdream 7 лет назад
Did you add this Derby Client dependency now since i didn't see it earlier and it is not on mine. Thanks
@bhosaleraje1
@bhosaleraje1 5 лет назад
Do we need web app in spring boot to use this feature? can i use it in standalone spring boot app?
@JasonBourne787
@JasonBourne787 6 лет назад
@javabrains.io Did youadd some topics to add security to the Spring Boot rest service like OAuth etc ?.
@SatyendraSinghGaur
@SatyendraSinghGaur 6 лет назад
what does that "hello":1 means under db>details json?
@TheTruthHasSetMeUp
@TheTruthHasSetMeUp 7 лет назад
Hello Kaushik, first of all thanks for sharing the knowledge. I have a problem in my helloworld application: When, I am using(enabling) actuators(health, loggers, trace, metrics) with 'default' executionTimeOutMilliseconds = 1000, the First Request to 'hello' api Fails(TimesOut) because it has timeout of 1 Second. This is because, the first request(after starting the spring boot), is served in more than 1 second time (it takes 2 - 3.5 seconds). While from the second request and so forth, it takes very less time as comapred to first req ( 300 Millisoconds - 500 Milliseonds). Now, I am really not sure if I have done any configuration incorrect or this is the default behaviour of spring boot. Please suggest and help.
@shaileshsingh8413
@shaileshsingh8413 6 лет назад
Actuator vs java melody which is better but I didn't saw java melody in spring boot.
@mrengithm
@mrengithm 6 лет назад
I'm using 2.0.4 release and management.port:9001 is not working but localhost:8080/actuator/health is working for me. How can I change the port# as mentioned on the video?
@prabhavkarve5091
@prabhavkarve5091 4 года назад
i deployed the war file on tomcat server but it is showing 404 error (even though it is showing deployed)on my pc's tomcat server. And interestingly it is working fine on AWS elastic beanstalk tomcat server.Please help
@TechieGamersSpace
@TechieGamersSpace Месяц назад
Hi ...after upgrade spring boot 3 I am seeing when we hit actuator and go for logfile it's saying 404 can u have any solution
@trendy2261
@trendy2261 6 лет назад
can u please attach the code file for above project
@iszaki1
@iszaki1 2 года назад
Would this only work for the Spring Web application?
@defenseman84
@defenseman84 2 года назад
Idk… do you know how easy it is to write your own endpoint with disk space, cpu, ram and other info?
@anjusingh1573
@anjusingh1573 7 лет назад
please upload some videos on websocket using spring boot.
@syan224
@syan224 5 лет назад
Thank you a lot
@sth128
@sth128 5 лет назад
Add the following in application.properties if you want to expose the endpoints in web app: management.endpoints.web.exposure.include=beans,health
@shoppersdream
@shoppersdream 7 лет назад
There is nothing in my application properties. It is blank.
@philanpritam
@philanpritam 4 года назад
in application.properties, you need to add 2 things:- management.port=9001 ##if you want a different port. management.security.enabled=false ## if you don't provide this, you will get this in server console: s.b.a.e.m.MvcEndpointSecurityInterceptor : Full authentication is required to access actuator endpoints. Consider adding Spring Security or set 'management.security.enabled' to false.
@worldwide6626
@worldwide6626 3 года назад
What is a bean?
@NirozJungKarkiK
@NirozJungKarkiK 7 лет назад
With Spring boot framework 1.5.6.RELEASE actuator, I get only status { "status": "UP” } How could I get other values ?
@beizhang6446
@beizhang6446 6 лет назад
With newer version of Spring Boot, you need to turn off security by adding this line in applicaiton.properties file management.security.enabled=false
@MadhusudanBhosale
@MadhusudanBhosale 5 лет назад
@@beizhang6446 sir, Can you please provide any related resource for this. Thanks in advance
@vinodkarathiyaofficial
@vinodkarathiyaofficial 5 лет назад
add below property value in application.property file. management.endpoint.health.show-details=ALWAYS management.endpoints.web.exposure.include=* management.endpoint.beans.enabled=true Access below url from your local system[either browser or postman] from where you are running a application. localhost:8080/actuator/health localhost:8080/actuator/beans
@rey_nemaattori
@rey_nemaattori 4 года назад
@@MadhusudanBhosale I literally created a file named applicaiton.properties in the resources folder(it *has* to be there), added this line, restarted spring boot and it worked ^_^ Depening on your spring version it's either localhost:8080/actuator/health for 2.x.x of localhost:8080/health for 1.x.x
@truptisawale3525
@truptisawale3525 3 года назад
Thanks👍
@santoshpatnana1573
@santoshpatnana1573 3 года назад
with Spring Boot 2.0 we have to use management.server.port=9001
@Thanh.is.channeling
@Thanh.is.channeling 7 лет назад
when i use Actuator, the response from /health is only {"status": "UP"}, with /beans the "message" is "Full authentication is required to access this resource." what else do i need to perform these actions ?
@usghui
@usghui 7 лет назад
Put the following in application.properties file: management.security.enabled=false
@brandonwillis6306
@brandonwillis6306 7 лет назад
Thank you!
@vinodkarathiyaofficial
@vinodkarathiyaofficial 5 лет назад
add below property value in application.property file. management.endpoint.health.show-details=ALWAYS management.endpoints.web.exposure.include=* management.endpoint.beans.enabled=true Access below url from your local system[either browser or postman] from where you are running a application. localhost:8080/actuator/health localhost:8080/actuator/beans
@ssakshay2228
@ssakshay2228 6 лет назад
Isn't there a UI or a dashboard for Actuator?
@naksnaz
@naksnaz 6 лет назад
you can try with hal-browser add this dependancy" spring-data-rest-hal-browser"...
@its_asm
@its_asm 4 года назад
Problem with Actuator with spring 2.2.2.RELEASE. Added following points in application.properties. Still not working management.endpoint.health.show-details=always management.endpoints.web.exposure.include=* management.endpoint.beans.enabled=true Need help.
@srinivasrramaram7716
@srinivasrramaram7716 4 года назад
: ) Facing the same
@user-ns8ht9tu3d
@user-ns8ht9tu3d 4 месяца назад
As a Career GAP Candidate StartUp Companies Lo Job Ela Techukovaalo Cheppandi Sir (or) Mam🙏🙏🙏?? As a Career GAP(6 years) Student How to to get Java Developer Job in this Year 2024??? Hi, I have a 6 years CAREER GAP. how can I get JAVA DEVELOPER Job in 2024 ??? Two companies(ABC & XYZ) lo job vachindhi fake pettanu & alage 1.5 months 2 Companies lo Work Chesanu, Now i am looking for Job, my doubt is Those 2 companies are creating my pf or Not? further in future is it Effect my carrier? hi, How to get job in PayRoll Companies?? and How to Find PayRoll Companies?
@user-ti4fq8jz8e
@user-ti4fq8jz8e 4 месяца назад
Is this course still relevant in 2024?
@mahmudakbarpur1291
@mahmudakbarpur1291 7 лет назад
After using the actuator dependency I get as respons on "localhost:8090/health" in POSTMAN: { "timestamp": 1496506218591, "status": 404, "error": "Not Found", "message": "No message available", "path": "/health" } what is my mistake?
@prashantmeena5103
@prashantmeena5103 7 лет назад
Make sure you have added the dependency for the actuator in your pom.xml and check if there is spring-boot-starter-actuator jar in your Maven Dependencies.
@KaushikLele
@KaushikLele 7 лет назад
same here. Did you get solution ?
@alakorabi6199
@alakorabi6199 6 лет назад
I'm getting a 404 too, and I can't find any solution anywhere, nothing I tried worked. I'm sure I did everything right in the code, it is not very difficult to copy pase a maven dependency.
@beizhang6446
@beizhang6446 6 лет назад
With newer version of Spring Boot, you need to turn off security. so add this line in applicaiton.properties file management.security.enabled=false
@suryalata
@suryalata 6 лет назад
use localhost:8080/actuator/health instead.
@ramygatie3591
@ramygatie3591 2 года назад
Application.properties -> management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always management.endpoint.beans.enabled=true
@thatpanditTV
@thatpanditTV 4 года назад
With Spring boot version 2.3.0 add below configurations in application.properties -------------------------------------------------------------------- management.endpoint.health.show-details=always management.endpoints.web.exposure.include=* management.endpoint.beans.enabled=true management.server.port=9001 --------------------------------------------------------------------- Endpoints to access: localhost:9001/actuator/health localhost:9001/actuator/beans
@skiwheeler
@skiwheeler 5 лет назад
i tried to switch from a mac to a pc, transferring the project via github. failed very badly and cost me my project.
@dazelmann6589
@dazelmann6589 4 года назад
How so???
@Ilohimushka
@Ilohimushka 2 года назад
This hindu wants a lot of money. it is filled with advertisement
@baloney_sandwich
@baloney_sandwich 2 года назад
put these on udemy to make big cash
@mayankjain3311
@mayankjain3311 7 лет назад
Wow Kaushik! I was waiting for this series, we are already using this in our application, this will help us a lot. Thanks a ton ☺
Далее
Spring Boot Quick Start 34 - Wrap Up
2:11
Просмотров 198 тыс.
Beautiful sport😍
00:20
Просмотров 134 тыс.
Top 10 Spring Annotations to know in 2024
26:41
Просмотров 75 тыс.
4 Spring Boot Mistakes to AVOID in 2024
15:18
Просмотров 55 тыс.
Spring Boot 2 x Actuator
24:52
Просмотров 23 тыс.
Beautiful sport😍
00:20
Просмотров 134 тыс.