### Elasticsearch Version

8.4, 8.5, 8.6

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

Darwin

### Problem Description

The shards availability indicator should always be reporting diagnosis when its status is RED/YELLOW.
However, when an index is on a data node that runs out of disk space it will report RED but no diagnosis.

### Steps to Reproduce

Have multi-node cluster where a data (non-master) node that hosts an index runs out of disk space (the index cannot relocate somewhere else).
Call the Health API and the output will be something along these lines:
```
    "shards_availability": {
      "status": "red",
      "symptom": "This cluster has all shards available.",
      "details": {
        "initializing_primaries": 1,
        "started_replicas": 0,
        "initializing_replicas": 0,
        "unassigned_primaries": 0,
        "started_primaries": 1,
        "creating_primaries": 0,
        "unassigned_replicas": 0,
        "restarting_primaries": 0,
        "restarting_replicas": 0
      },
      "impacts": [
        {
          "id": "elasticsearch:health:shards_availability:impact:primary_unassigned",
          "severity": 1,
          "description": "Cannot add data to 1 index [test_index]. Searches might return incomplete results.",
          "impact_areas": [
            "ingest",
            "search"
          ]
        }
      ] 
    }
``` 

### Logs (if relevant)

_No response_
server/src/test/java/org/elasticsearch/cluster/routing/allocation/ShardsAvailabilityHealthIndicatorServiceTests.java
),
            List.of(),
            List.of()
        );
        
        Metadata.Builder mdBuilder = Metadata.builder(clusterState.metadata())
            .put(newInstance(featureDataStreamName, List.of(backingIndex.getIndex())));
        ClusterState state = ClusterState.builder(clusterState).metadata(mdBuilder).build();
        var service = createAllocationHealthIndicatorService(
            Settings.EMPTY,
            state,
            Map.of(),
            getSystemIndices(featureDataStreamName, ".test-ds-*", ".feature-*")
        );
        HealthIndicatorResult result = service.calculate(true, HealthInfo.EMPTY_HEALTH_INFO);
        assertThat(result.status(), is(HealthStatus.RED));
        assertThat(result.diagnosisList().size(), is(1));
        Diagnosis diagnosis = result.diagnosisList().get(0);
        List<Diagnosis.Resource> affectedResources = diagnosis.affectedResources();
        assertThat("expecting we report a resource of type INDEX and one of type FEATURE_STATE", affectedResources.size(), is(2));
        for (Diagnosis.Resource resource : affectedResources) {
            if (resource.getType() == INDEX) {
                assertThat(resource.getValues(), hasItems("regular-index"));
            } else {
                assertThat(resource.getType(), is(FEATURE_STATE));
                assertThat(resource.getValues(), hasItems("feature-with-system-data-stream", "feature-with-system-index"));
            }
        }
    }
    public void testGetRestoreFromSnapshotAffectedResources() {