|
| 1 | +setup: |
| 2 | + - skip: |
| 3 | + version: " - 8.4.99" |
| 4 | + reason: metric params only on time series indexes introduced in 8.5.0 |
| 5 | + |
| 6 | + - do: |
| 7 | + indices.create: |
| 8 | + index: test_time_series |
| 9 | + body: |
| 10 | + settings: |
| 11 | + index: |
| 12 | + number_of_replicas: 0 |
| 13 | + number_of_shards: 2 |
| 14 | + mode: time_series |
| 15 | + routing_path: [ metricset, k8s.pod.uid ] |
| 16 | + time_series: |
| 17 | + start_time: 2021-04-28T00:00:00Z |
| 18 | + end_time: 2021-04-29T00:00:00Z |
| 19 | + mappings: |
| 20 | + properties: |
| 21 | + "@timestamp": |
| 22 | + type: date |
| 23 | + metricset: |
| 24 | + type: keyword |
| 25 | + time_series_dimension: true |
| 26 | + k8s: |
| 27 | + properties: |
| 28 | + pod: |
| 29 | + properties: |
| 30 | + availability_zone: |
| 31 | + type: short |
| 32 | + time_series_dimension: true |
| 33 | + uid: |
| 34 | + type: keyword |
| 35 | + time_series_dimension: true |
| 36 | + name: |
| 37 | + type: keyword |
| 38 | + ip: |
| 39 | + type: ip |
| 40 | + time_series_dimension: true |
| 41 | + network: |
| 42 | + properties: |
| 43 | + tx: |
| 44 | + type: long |
| 45 | + time_series_metric: counter |
| 46 | + rx: |
| 47 | + type: long |
| 48 | + time_series_metric: gauge |
| 49 | + |
| 50 | + - do: |
| 51 | + indices.create: |
| 52 | + index: test_non_time_series |
| 53 | + body: |
| 54 | + settings: |
| 55 | + index: |
| 56 | + number_of_replicas: 0 |
| 57 | + number_of_shards: 2 |
| 58 | + mappings: |
| 59 | + properties: |
| 60 | + "@timestamp": |
| 61 | + type: date |
| 62 | + metricset: |
| 63 | + type: keyword |
| 64 | + time_series_dimension: true |
| 65 | + k8s: |
| 66 | + properties: |
| 67 | + pod: |
| 68 | + properties: |
| 69 | + availability_zone: |
| 70 | + type: short |
| 71 | + time_series_dimension: true |
| 72 | + uid: |
| 73 | + type: keyword |
| 74 | + time_series_dimension: true |
| 75 | + name: |
| 76 | + type: keyword |
| 77 | + ip: |
| 78 | + type: ip |
| 79 | + time_series_dimension: true |
| 80 | + network: |
| 81 | + properties: |
| 82 | + tx: |
| 83 | + type: long |
| 84 | + time_series_metric: counter |
| 85 | + rx: |
| 86 | + type: long |
| 87 | + time_series_metric: gauge |
| 88 | + |
| 89 | +--- |
| 90 | +field caps on time_series indices: |
| 91 | + - skip: |
| 92 | + version: " - 8.3.99" |
| 93 | + reason: metric params only on time series indexes introduced in 8.4.0 |
| 94 | + |
| 95 | + - do: |
| 96 | + field_caps: |
| 97 | + index: test_time_series |
| 98 | + fields: [ k8s.pod.uid, k8s.pod.network.rx, k8s.pod.network.tx, k8s.pod.ip, metricset, _tsid ] |
| 99 | + |
| 100 | + - match: { fields.k8s\.pod\.uid.keyword.type: keyword } |
| 101 | + - match: { fields.k8s\.pod\.uid.keyword.searchable: true } |
| 102 | + - match: { fields.k8s\.pod\.uid.keyword.aggregatable: true } |
| 103 | + - match: { fields.k8s\.pod\.uid.keyword.time_series_dimension: true } |
| 104 | + - is_false: fields.k8s\.pod\.uid.keyword.indices |
| 105 | + - is_false: fields.k8s\.pod\.uid.keyword.non_searchable_indices |
| 106 | + - is_false: fields.k8s\.pod\.uid.keyword.non_aggregatable_indices |
| 107 | + |
| 108 | + - match: { fields.k8s\.pod\.network\.rx.long.type: long } |
| 109 | + - match: { fields.k8s\.pod\.network\.rx.long.searchable: true } |
| 110 | + - match: { fields.k8s\.pod\.network\.rx.long.aggregatable: true } |
| 111 | + - match: { fields.k8s\.pod\.network\.rx.long.time_series_metric: gauge } |
| 112 | + - is_false: fields.k8s\.pod\.network\.tx.long.metric_conflicts_indices |
| 113 | + - is_false: fields.k8s\.pod\.network\.rx.long.indices |
| 114 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_searchable_indices |
| 115 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_aggregatable_indices |
| 116 | + |
| 117 | + |
| 118 | + - match: { fields.k8s\.pod\.network\.tx.long.type: long } |
| 119 | + - match: { fields.k8s\.pod\.network\.tx.long.searchable: true } |
| 120 | + - match: { fields.k8s\.pod\.network\.tx.long.aggregatable: true } |
| 121 | + - match: { fields.k8s\.pod\.network\.tx.long.time_series_metric: counter } |
| 122 | + - is_false: fields.k8s\.pod\.network\.tx.long.metric_conflicts_indices |
| 123 | + - is_false: fields.k8s\.pod\.network\.tx.long.indices |
| 124 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_searchable_indices |
| 125 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_aggregatable_indices |
| 126 | + |
| 127 | + - match: { fields.k8s\.pod\.ip.ip.type: ip } |
| 128 | + - match: { fields.k8s\.pod\.ip.ip.searchable: true } |
| 129 | + - match: { fields.k8s\.pod\.ip.ip.aggregatable: true } |
| 130 | + - is_false: fields.k8s\.pod\.ip.ip.indices |
| 131 | + - is_false: fields.k8s\.pod\.ip.ip.non_searchable_indices |
| 132 | + - is_false: fields.k8s\.pod\.ip.ip.non_aggregatable_indices |
| 133 | + |
| 134 | + - match: { fields.metricset.keyword.type: keyword } |
| 135 | + - match: { fields.metricset.keyword.searchable: true } |
| 136 | + - match: { fields.metricset.keyword.aggregatable: true } |
| 137 | + - match: { fields.metricset.keyword.time_series_dimension: true } |
| 138 | + - is_false: fields.metricset.keyword.non_dimension_indices |
| 139 | + - is_false: fields.metricset.keyword.indices |
| 140 | + - is_false: fields.metricset.keyword.non_searchable_indices |
| 141 | + - is_false: fields.metricset.keyword.non_aggregatable_indices |
| 142 | + |
| 143 | + - match: { fields._tsid._tsid.metadata_field: true } |
| 144 | + - match: { fields._tsid._tsid.searchable: false } |
| 145 | + - match: { fields._tsid._tsid.aggregatable: true } |
| 146 | + - is_false: fields._tsid._tsid.indices |
| 147 | + - is_false: fields._tsid._tsid.non_searchable_indices |
| 148 | + - is_false: fields._tsid._tsid.non_aggregatable_indices |
| 149 | + |
| 150 | + |
| 151 | +--- |
| 152 | +field caps on standard indices: |
| 153 | + - skip: |
| 154 | + version: " - 8.3.99" |
| 155 | + reason: metric params only on time series indexes introduced in 8.4.0 |
| 156 | + |
| 157 | + - do: |
| 158 | + field_caps: |
| 159 | + index: test_non_time_series |
| 160 | + fields: [ _tsid, metricset, k8s.pod.network.rx, k8s.pod.network.tx, k8s.pod.network.rx ] |
| 161 | + |
| 162 | + - match: { fields.metricset.keyword.type: keyword } |
| 163 | + - match: { fields.metricset.keyword.searchable: true } |
| 164 | + - match: { fields.metricset.keyword.aggregatable: true } |
| 165 | + - is_false: fields.metricset.keyword.time_series_dimension |
| 166 | + - is_false: fields.metricset.keyword.non_dimension_indices |
| 167 | + - is_false: fields.metricset.keyword.indices |
| 168 | + - is_false: fields.metricset.keyword.non_searchable_indices |
| 169 | + - is_false: fields.metricset.keyword.non_aggregatable_indices |
| 170 | + |
| 171 | + - is_false: fields._tsid # _tsid metadata field must not exist in non-time-series indices |
| 172 | + |
| 173 | + - match: { fields.k8s\.pod\.network\.rx.long.type: long } |
| 174 | + - match: { fields.k8s\.pod\.network\.rx.long.searchable: true } |
| 175 | + - match: { fields.k8s\.pod\.network\.rx.long.aggregatable: true } |
| 176 | + - is_false: fields.k8s\.pod\.network\.rx.long.time_series_metric |
| 177 | + - is_false: fields.k8s\.pod\.network\.rx.long.metric_conflicts_indices |
| 178 | + - is_false: fields.k8s\.pod\.network\.rx.long.indices |
| 179 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_searchable_indices |
| 180 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_aggregatable_indices |
| 181 | + - is_false: fields.k8s\.pod\.network\.rx.gauge |
| 182 | + |
| 183 | + - match: { fields.k8s\.pod\.network\.tx.long.type: long } |
| 184 | + - match: { fields.k8s\.pod\.network\.tx.long.searchable: true } |
| 185 | + - match: { fields.k8s\.pod\.network\.tx.long.aggregatable: true } |
| 186 | + - is_false: fields.k8s\.pod\.network\.tx.long.time_series_metric |
| 187 | + - is_false: fields.k8s\.pod\.network\.tx.long.metric_conflicts_indices |
| 188 | + - is_false: fields.k8s\.pod\.network\.tx.long.indices |
| 189 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_searchable_indices |
| 190 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_aggregatable_indices |
| 191 | + - is_false: fields.k8s\.pod\.network\.tx.counter |
| 192 | + |
| 193 | + |
| 194 | +--- |
| 195 | +field caps on mixed indices: |
| 196 | + - skip: |
| 197 | + version: " - 8.3.99" |
| 198 | + reason: metric params only on time series indexes introduced in 8.4.0 |
| 199 | + |
| 200 | + - do: |
| 201 | + field_caps: |
| 202 | + index: test_* |
| 203 | + fields: [ metricset, k8s.pod.availability_zone, k8s.pod.network.tx, k8s.pod.network.rx ] |
| 204 | + |
| 205 | + - match: { fields.metricset.keyword.type: keyword } |
| 206 | + - match: { fields.metricset.keyword.searchable: true } |
| 207 | + - match: { fields.metricset.keyword.aggregatable: true } |
| 208 | + - is_false: fields.metricset.keyword.time_series_dimension |
| 209 | + - match: { fields.metricset.keyword.non_dimension_indices: [ "test_non_time_series" ] } |
| 210 | + - is_false: fields.metricset.keyword.indices |
| 211 | + - is_false: fields.metricset.keyword.non_searchable_indices |
| 212 | + - is_false: fields.metricset.keyword.non_aggregatable_indices |
| 213 | + |
| 214 | + - match: { fields.k8s\.pod\.network\.rx.long.type: long } |
| 215 | + - match: { fields.k8s\.pod\.network\.rx.long.searchable: true } |
| 216 | + - match: { fields.k8s\.pod\.network\.rx.long.aggregatable: true } |
| 217 | + - match: { fields.k8s\.pod\.network\.rx.long.metric_conflicts_indices: [ "test_non_time_series", "test_time_series" ] } |
| 218 | + - is_false: fields.k8s\.pod\.network\.rx.long.time_series_metric |
| 219 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_searchable_indices |
| 220 | + - is_false: fields.k8s\.pod\.network\.rx.long.non_aggregatable_indices |
| 221 | + - is_false: fields.k8s\.pod\.network\.rx.long.indices |
| 222 | + |
| 223 | + - match: { fields.k8s\.pod\.network\.tx.long.type: long } |
| 224 | + - match: { fields.k8s\.pod\.network\.tx.long.searchable: true } |
| 225 | + - match: { fields.k8s\.pod\.network\.tx.long.aggregatable: true } |
| 226 | + - match: { fields.k8s\.pod\.network\.tx.long.metric_conflicts_indices: [ "test_non_time_series", "test_time_series" ] } |
| 227 | + - is_false: fields.k8s\.pod\.network\.tx.long.time_series_metric |
| 228 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_searchable_indices |
| 229 | + - is_false: fields.k8s\.pod\.network\.tx.long.non_aggregatable_indices |
| 230 | + - is_false: fields.k8s\.pod\.network\.tx.long.indices |
| 231 | + |
0 commit comments