title: How to implement a custom CompositeHealthContributor
body: <p>I want to display the following Health-Information:</p>
  
  <pre><code>{
     "status":"UP", 
     "components": {
            "myHealthComposite": {
                  "status":"UP",
                  "components": {
                          "myFirstHealthIndicator": { "status":"UP" },
                          "mySecondHealthIndicator": { "status":"UP" }
                  }
            }
      },
      "groups":[]
  }
  </code></pre>
  
  <p>From the latest Spring Boot Actuator Documentation I should implement "myFirstHealthIndactor" and "mySecondHealthIndicator" with the "HealthIndicator"-Interface and composite them with the "CompositeHealthContributor"-Interface. But for "CompositeHealthContributor" I need an excample and in the Documentation I can not found something usefull for me.</p>
  
  <p>Can someone help me with that, please?</p>
  
  <p>Greetings</p>
  
  <p>Edit:</p>
  
  <p><strong>myFirstHealthIndicator</strong></p>
  
  <pre><code>@Component
  public class MyFirstHealthIndicator implements HealthIndicator {
  
      @Override
      public Health health() {
          return Health.up().build();
      }
  
  }
  </code></pre>
  
  <p><strong>mySecondHealthIndicator</strong></p>
  
  <pre><code>@Component
  public class MySecondHealthIndicator implements HealthIndicator {
  
      @Override
      public Health health() {
          return Health.up().build();
      }
  
  }
  </code></pre>
  
  <p><strong>myHealthComposite</strong></p>
  
  <pre><code>@Component
  public class MyHealthComposite implements CompositeHealthContributor {
  
      @Override
      public HealthContributor getContributor(String name) {
          return null;
      }
  
      @Override
      public Iterator&lt;NamedContributor&lt;HealthContributor&gt;&gt; iterator() {
          return null;
      }
  
  }
  </code></pre>