---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Metric - blank:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_true: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_true: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_true: "nodes.$node_id.indices.refresh"
- is_true: "nodes.$node_id.indices.flush"
- is_true: "nodes.$node_id.indices.warmer"
- is_true: "nodes.$node_id.indices.query_cache"
- is_true: "nodes.$node_id.indices.fielddata"
- is_true: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_true: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
---
Metric - _all:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "_all"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_true: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_true: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_true: "nodes.$node_id.indices.refresh"
- is_true: "nodes.$node_id.indices.flush"
- is_true: "nodes.$node_id.indices.warmer"
- is_true: "nodes.$node_id.indices.query_cache"
- is_true: "nodes.$node_id.indices.fielddata"
- is_true: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_true: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
---
Metric - indices _all:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "_all"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_true: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_true: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_true: "nodes.$node_id.indices.refresh"
- is_true: "nodes.$node_id.indices.flush"
- is_true: "nodes.$node_id.indices.warmer"
- is_true: "nodes.$node_id.indices.query_cache"
- is_true: "nodes.$node_id.indices.fielddata"
- is_true: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_true: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
---
Metric - one:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "docs"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_false: "nodes.$node_id.indices.store"
- is_false: "nodes.$node_id.indices.indexing"
- is_false: "nodes.$node_id.indices.get"
- is_false: "nodes.$node_id.indices.search"
- is_false: "nodes.$node_id.indices.merges"
- is_false: "nodes.$node_id.indices.refresh"
- is_false: "nodes.$node_id.indices.flush"
- is_false: "nodes.$node_id.indices.warmer"
- is_false: "nodes.$node_id.indices.query_cache"
- is_false: "nodes.$node_id.indices.fielddata"
- is_false: "nodes.$node_id.indices.completion"
- is_false: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.indices.translog"
- is_false: "nodes.$node_id.indices.recovery"
- is_false: "nodes.$node_id.indices.shard_stats"
- is_false: "nodes.$node_id.indices.mappings"
---
Metric - multi:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric:
      - "store"
      - "get"
      - "merge"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_false: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_false: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_false: "nodes.$node_id.indices.refresh"
- is_false: "nodes.$node_id.indices.flush"
- is_false: "nodes.$node_id.indices.warmer"
- is_false: "nodes.$node_id.indices.query_cache"
- is_false: "nodes.$node_id.indices.fielddata"
- is_false: "nodes.$node_id.indices.completion"
- is_false: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.indices.translog"
- is_false: "nodes.$node_id.indices.recovery"
- is_false: "nodes.$node_id.indices.shard_stats"
- is_false: "nodes.$node_id.indices.mappings"
---
Metric - recovery:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric:
      - "recovery"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "nodes.$node_id.indices.docs"
- is_false: "nodes.$node_id.indices.store"
- is_false: "nodes.$node_id.indices.indexing"
- is_false: "nodes.$node_id.indices.get"
- is_false: "nodes.$node_id.indices.search"
- is_false: "nodes.$node_id.indices.merges"
- is_false: "nodes.$node_id.indices.refresh"
- is_false: "nodes.$node_id.indices.flush"
- is_false: "nodes.$node_id.indices.warmer"
- is_false: "nodes.$node_id.indices.query_cache"
- is_false: "nodes.$node_id.indices.fielddata"
- is_false: "nodes.$node_id.indices.completion"
- is_false: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
- is_false: "nodes.$node_id.indices.shard_stats"
- is_false: "nodes.$node_id.indices.mappings"
---
Metric - _all include_segment_file_sizes:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "_all"
      include_segment_file_sizes: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_true: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_true: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_true: "nodes.$node_id.indices.refresh"
- is_true: "nodes.$node_id.indices.flush"
- is_true: "nodes.$node_id.indices.warmer"
- is_true: "nodes.$node_id.indices.query_cache"
- is_true: "nodes.$node_id.indices.fielddata"
- is_true: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_true: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
- is_true: "nodes.$node_id.indices.segments.file_sizes"
---
Metric - segments include_segment_file_sizes:
- skip:
    features:
    - "arbitrary_key"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "segments"
      include_segment_file_sizes: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "nodes.$node_id.indices.docs"
- is_false: "nodes.$node_id.indices.store"
- is_false: "nodes.$node_id.indices.indexing"
- is_false: "nodes.$node_id.indices.get"
- is_false: "nodes.$node_id.indices.search"
- is_false: "nodes.$node_id.indices.merges"
- is_false: "nodes.$node_id.indices.refresh"
- is_false: "nodes.$node_id.indices.flush"
- is_false: "nodes.$node_id.indices.warmer"
- is_false: "nodes.$node_id.indices.query_cache"
- is_false: "nodes.$node_id.indices.fielddata"
- is_false: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.indices.translog"
- is_false: "nodes.$node_id.indices.recovery"
- is_false: "nodes.$node_id.indices.shard_stats"
- is_false: "nodes.$node_id.indices.mappings"
- is_true: "nodes.$node_id.indices.segments.file_sizes"
---
Metric - segments include_unloaded_segments:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.13.0"
    reason: "support for include_unloaded_segments only added in 7.13"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "segments"
      include_unloaded_segments: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_false: "nodes.$node_id.indices.docs"
- is_false: "nodes.$node_id.indices.store"
- is_false: "nodes.$node_id.indices.indexing"
- is_false: "nodes.$node_id.indices.get"
- is_false: "nodes.$node_id.indices.search"
- is_false: "nodes.$node_id.indices.merges"
- is_false: "nodes.$node_id.indices.refresh"
- is_false: "nodes.$node_id.indices.flush"
- is_false: "nodes.$node_id.indices.warmer"
- is_false: "nodes.$node_id.indices.query_cache"
- is_false: "nodes.$node_id.indices.fielddata"
- is_false: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_false: "nodes.$node_id.indices.translog"
- is_false: "nodes.$node_id.indices.recovery"
- is_false: "nodes.$node_id.indices.shard_stats"
- is_false: "nodes.$node_id.indices.mappings"
---
Metric - _all include_unloaded_segments:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.13.0"
    reason: "support for include_unloaded_segments only added in 7.13"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "indices"
      index_metric: "_all"
      include_unloaded_segments: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.docs"
- is_true: "nodes.$node_id.indices.store"
- is_true: "nodes.$node_id.indices.indexing"
- is_true: "nodes.$node_id.indices.get"
- is_true: "nodes.$node_id.indices.search"
- is_true: "nodes.$node_id.indices.merges"
- is_true: "nodes.$node_id.indices.refresh"
- is_true: "nodes.$node_id.indices.flush"
- is_true: "nodes.$node_id.indices.warmer"
- is_true: "nodes.$node_id.indices.query_cache"
- is_true: "nodes.$node_id.indices.fielddata"
- is_true: "nodes.$node_id.indices.completion"
- is_true: "nodes.$node_id.indices.segments"
- is_true: "nodes.$node_id.indices.translog"
- is_true: "nodes.$node_id.indices.recovery"
---
Metric - http:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.13.0"
    reason: "HTTP client stats added in 7.13.0"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "http"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id"
- gte:
    nodes.$node_id.http.current_open: 0
- gte:
    nodes.$node_id.http.total_opened: 1
- is_true: "nodes.$node_id.http.clients"
- gte:
    nodes.$node_id.http.clients.0.id: 1
- match:
    nodes.$node_id.http.clients.0.agent: "/.*/"
- match:
    nodes.$node_id.http.clients.0.local_address: "/.*/"
- match:
    nodes.$node_id.http.clients.0.remote_address: "/.*/"
- is_true: "nodes.$node_id.http.clients.0.last_uri"
- gte:
    nodes.$node_id.http.clients.0.opened_time_millis: 1614028911317
- gte:
    nodes.$node_id.http.clients.0.last_request_time_millis: 1614028911317
- gte:
    nodes.$node_id.http.clients.0.request_count: 1
- gte:
    nodes.$node_id.http.clients.0.request_size_bytes: 0
---
Metric - blank for indices shard_stats:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.15.1"
    reason: "total shard count added in version 7.15.0, and fixed in 7.15.1"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.shard_stats"
- match:
    nodes.$node_id.indices.shard_stats.total_count: 0
---
Metric - _all for indices shard_stats:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.15.1"
    reason: "total shard count added in version 7.15.0, and fixed in 7.15.1"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "_all"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.shard_stats"
- match:
    nodes.$node_id.indices.shard_stats.total_count: 0
---
indices shard_stats total count test:
- requires:
    test_runner_features:
    - "allowed_warnings"
    - "arbitrary_key"
    cluster_features:
    - "gte_v7.15.1"
    reason: "total shard count added in version 7.15.0, and fixed in 7.15.1"
- do:
    indices.create:
      index: "index1"
      body:
        settings:
          number_of_shards: "5"
          number_of_replicas: "0"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    indices.create:
      index: "index2"
      body:
        settings:
          number_of_shards: "3"
          number_of_replicas: "1"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "_all"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- gte:
    nodes.$node_id.indices.shard_stats.total_count: 1
---
Metric - blank for indices mappings:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v8.5.0"
    reason: "mappings added in version 8.5.0"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- is_true: "nodes.$node_id.indices.mappings"
- match:
    nodes.$node_id.indices.mappings.total_count: 0
- match:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 0
---
indices mappings exact count test for indices level:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "mapper.query_index_mode"
    reason: "_ignored_source added to mappings"
- do:
    indices.create:
      index: "index1"
      body:
        settings:
          number_of_shards: 4
          number_of_replicas: 0
        mappings:
          runtime:
            a_source_field:
              type: "keyword"
          properties:
            '@timestamp':
              type: "date"
            authors:
              properties:
                age:
                  type: "long"
                company:
                  type: "text"
                  fields:
                    keyword:
                      type: "keyword"
                      ignore_above: 256
                name:
                  properties:
                    first_name:
                      type: "keyword"
                    full_name:
                      type: "text"
                    last_name:
                      type: "keyword"
            link:
              type: "alias"
              path: "url"
            title:
              type: "text"
            url:
              type: "keyword"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "_all"
      level: "indices"
      human: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- gte:
    nodes.$node_id.indices.mappings.total_count: 28
- is_true: "nodes.$node_id.indices.mappings.total_estimated_overhead"
- gte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 26624
- match:
    nodes.$node_id.indices.indices.index1.mappings.total_count: 28
- is_true: "nodes.$node_id.indices.indices.index1.mappings.total_estimated_overhead"
- match:
    nodes.$node_id.indices.indices.index1.mappings.total_estimated_overhead_in_bytes: 28672
---
Lucene segment level fields stats:
- requires:
    cluster_features:
    - "mapper.segment_level_fields_stats"
    reason: "segment level fields stats"
- do:
    indices.create:
      index: "index1"
      body:
        settings:
          number_of_shards: 1
          number_of_replicas: 0
          routing.rebalance.enable: "none"
        mappings:
          runtime:
            a_source_field:
              type: "keyword"
          properties:
            '@timestamp':
              type: "date"
            authors:
              properties:
                age:
                  type: "long"
                company:
                  type: "text"
                  fields:
                    keyword:
                      type: "keyword"
                      ignore_above: 256
                name:
                  properties:
                    first_name:
                      type: "keyword"
                    full_name:
                      type: "text"
                    last_name:
                      type: "keyword"
            link:
              type: "alias"
              path: "url"
            title:
              type: "text"
            url:
              type: "keyword"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    cluster.state: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    routing_table.indices.index1.shards.0.0.node: "node_id"
- do:
    nodes.stats:
      metric: "_all"
      level: "indices"
      human: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    index:
      index: "index1"
      body:
        title: "foo"
        '@timestamp': "2023-10-15T14:12:12"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    indices.flush:
      index: "index1"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    nodes.stats:
      metric: "_all"
      level: "indices"
      human: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- gte:
    nodes.$node_id.indices.mappings.total_count: 28
- lte:
    nodes.$node_id.indices.mappings.total_count: 30
- gte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 28672
- lte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 30720
- match:
    nodes.$node_id.indices.mappings.total_segments: 1
- gte:
    nodes.$node_id.indices.mappings.total_segment_fields: 28
- lte:
    nodes.$node_id.indices.mappings.total_segment_fields: 30
- gte:
    nodes.$node_id.indices.mappings.average_fields_per_segment: 28
- lte:
    nodes.$node_id.indices.mappings.average_fields_per_segment: 30
- do:
    index:
      index: "index1"
      body:
        title: "bar"
        '@timestamp': "2023-11-15T14:12:12"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    indices.flush:
      index: "index1"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    nodes.stats:
      metric: "_all"
      level: "indices"
      human: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- gte:
    nodes.$node_id.indices.mappings.total_count: 28
- lte:
    nodes.$node_id.indices.mappings.total_count: 30
- gte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 28672
- lte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 30720
- match:
    nodes.$node_id.indices.mappings.total_segments: 2
- gte:
    nodes.$node_id.indices.mappings.total_segment_fields: 56
- lte:
    nodes.$node_id.indices.mappings.total_segment_fields: 60
- gte:
    nodes.$node_id.indices.mappings.average_fields_per_segment: 28
- lte:
    nodes.$node_id.indices.mappings.average_fields_per_segment: 30
---
indices mappings does not exist in shards level:
- requires:
    test_runner_features:
    - "arbitrary_key"
    cluster_features:
    - "gte_v8.5.0"
    reason: "mappings added in version 8.5.0"
- do:
    indices.create:
      index: "index1"
      body:
        settings:
          number_of_shards: 4
          number_of_replicas: 0
        mappings:
          properties:
            prop1:
              type: "keyword"
            prop2:
              type: "keyword"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- do:
    nodes.info: {}
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- set:
    nodes._arbitrary_key_: "node_id"
- do:
    nodes.stats:
      metric: "_all"
      level: "shards"
      human: true
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - "Use of the \\[max_size\\] rollover condition has been deprecated in favour\
      \ of the \\[max_primary_shard_size\\] condition and will be removed in a later\
      \ version"
    - "Parameter \\[confidence_interval\\] in \\[index_options\\] for dense_vector\
      \ field \\[[^\\]]+\\] is deprecated and will be removed in a future version"
- gte:
    nodes.$node_id.indices.mappings.total_count: 2
- is_true: "nodes.$node_id.indices.mappings.total_estimated_overhead"
- gte:
    nodes.$node_id.indices.mappings.total_estimated_overhead_in_bytes: 2
- is_false: "nodes.$node_id.indices.shards.index1.0.mappings"
