elasticsearch/docs/reference/cluster
Lee Hinman ac1433d300
Add index creation version stats to cluster stats (#68141)
This commit adds statistics about the index creation versions to the `/_cluster/stats` endpoint. The
stats look like:

```
{
  "_nodes" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "indices" : {
    "count" : 3,
    ...
    "versions" : [
      {
        "version" : "8.0.0",
        "index_count" : 1,
        "primary_shard_count" : 2,
        "total_primary_size" : "8.6kb",
        "total_primary_bytes" : 8831
      },
      {
        "version" : "7.11.0",
        "index_count" : 1,
        "primary_shard_count" : 1,
        "total_primary_size" : "4.6kb",
        "total_primary_bytes" : 4230
      }
    ]
  },
  ...
}
```

(`total_primary_size` is only shown with the `?human` flag)

This is useful for telemetry as it allows us to see if/when a cluster has indices created on a
previous version that would need to be either upgraded or supported during an upgrade.
2021-01-28 13:58:21 -07:00
..
allocation-explain.asciidoc
get-settings.asciidoc
health.asciidoc
nodes-hot-threads.asciidoc
nodes-info.asciidoc
nodes-reload-secure-settings.asciidoc
nodes-stats.asciidoc
nodes-usage.asciidoc
pending.asciidoc
remote-info.asciidoc
reroute.asciidoc
state.asciidoc
stats.asciidoc Add index creation version stats to cluster stats (#68141) 2021-01-28 13:58:21 -07:00
tasks.asciidoc
update-settings.asciidoc
voting-exclusions.asciidoc