Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No effect when setting endpoints.health.sensitive=false in spring boot actuator

In my application.yml:

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

but when I request /health, I always got only:

{"status":"UP"}

Any idea to fetch more information?

like image 914
J.GU Avatar asked Aug 18 '16 05:08

J.GU


2 Answers

Have you tried accessing other endpoints ?

I think security is enabled for actuator endpoints, because of which full content is not accessible, to access full content you have to disable security for actuator or have to use basic authentication credentials to access it.

To disable security, add the following in your application.yml -

management:
   security:
           enabled: false
like image 149
developerick Avatar answered Oct 03 '22 16:10

developerick


In 'application.properties' add:

management.endpoint.health.show-details=always

If you need more information, check this link and of course, I suggest you read the contents ralted to it, to understand what's happening.

Hope it is helpful :)

like image 44
Javad Alizadeh Avatar answered Oct 03 '22 17:10

Javad Alizadeh