title: Is there a way to exclude datasources name on a Spring Boot Actuator HealthCheck response?
body: <p>I'm using Spring Boot 2.2 with Actuator. I have a healthcheck response that returns me the health state of my datasources :</p>
  <pre><code>&quot;status&quot;: &quot;UP&quot;,
  &quot;components&quot;: {
    &quot;db&quot;: {
      &quot;status&quot;: &quot;UP&quot;,
      &quot;components&quot;: {
          &quot;dataSource1&quot;: {
          &quot;status&quot;: &quot;UP&quot;
        },
          &quot;dataSource2&quot;: {
          &quot;status&quot;: &quot;UP&quot;
        }
      }
    },
  ...
  </code></pre>
  <p>I add on my actuator configuration the following value to activate db and diskSpace, but I do not want to get the subcomponents (list of datasources) of the db component</p>
  <pre><code>show-components: always
  </code></pre>
  <p>If there is any configuration to hide those level of details ?</p>
  <p>I guess I can modify the Health object return by calling the invoke method of the Health object on an advice or by adding a new RestController listening the same endpoint but it's maybe too much</p>