Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.9] [Fleet] fix dynamic mapping missing
time_series_metric
(#160417…
…) (#160444) # Backport This will backport the following commits from `main` to `8.9`: - [[Fleet] fix dynamic mapping missing `time_series_metric` (#160417)](#160417) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Bardi","email":"90178898+juliaElastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-06-23T17:51:12Z","message":"[Fleet] fix dynamic mapping missing `time_series_metric` (#160417)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155004\r\n\r\nFound a simplification of adding `time_series_metric` to\r\n`dynamic_templates`.\r\n\r\nI think tsdb enabled check is not needed similarly to\r\nhttps://github.com//pull/157047\r\n\r\nTo test:\r\n- Install package by upload or local registry\r\n[istio-0.3.3.zip](https://github.com/elastic/kibana/files/11849494/istio-0.3.3.zip)\r\n- Check that the created `metrics-istio.istiod_metric`s index template\r\nincludes `time_series_metric`\r\n```\r\n\"dynamic_templates\": [\r\n {\r\n \"istio.istiod.metrics.*.counter\": {\r\n \"path_match\": \"istio.istiod.metrics.*.counter\",\r\n \"mapping\": {\r\n \"time_series_metric\": \"counter\",\r\n \"type\": \"double\"\r\n }\r\n }\r\n },\r\n {\r\n```","sha":"863f6bdb8bca99af02392e74ec75e37373bdcfc0","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.9.0","v8.10.0"],"number":160417,"url":"https://github.com/elastic/kibana/pull/160417","mergeCommit":{"message":"[Fleet] fix dynamic mapping missing `time_series_metric` (#160417)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155004\r\n\r\nFound a simplification of adding `time_series_metric` to\r\n`dynamic_templates`.\r\n\r\nI think tsdb enabled check is not needed similarly to\r\nhttps://github.com//pull/157047\r\n\r\nTo test:\r\n- Install package by upload or local registry\r\n[istio-0.3.3.zip](https://github.com/elastic/kibana/files/11849494/istio-0.3.3.zip)\r\n- Check that the created `metrics-istio.istiod_metric`s index template\r\nincludes `time_series_metric`\r\n```\r\n\"dynamic_templates\": [\r\n {\r\n \"istio.istiod.metrics.*.counter\": {\r\n \"path_match\": \"istio.istiod.metrics.*.counter\",\r\n \"mapping\": {\r\n \"time_series_metric\": \"counter\",\r\n \"type\": \"double\"\r\n }\r\n }\r\n },\r\n {\r\n```","sha":"863f6bdb8bca99af02392e74ec75e37373bdcfc0"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160417","number":160417,"mergeCommit":{"message":"[Fleet] fix dynamic mapping missing `time_series_metric` (#160417)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/155004\r\n\r\nFound a simplification of adding `time_series_metric` to\r\n`dynamic_templates`.\r\n\r\nI think tsdb enabled check is not needed similarly to\r\nhttps://github.com//pull/157047\r\n\r\nTo test:\r\n- Install package by upload or local registry\r\n[istio-0.3.3.zip](https://github.com/elastic/kibana/files/11849494/istio-0.3.3.zip)\r\n- Check that the created `metrics-istio.istiod_metric`s index template\r\nincludes `time_series_metric`\r\n```\r\n\"dynamic_templates\": [\r\n {\r\n \"istio.istiod.metrics.*.counter\": {\r\n \"path_match\": \"istio.istiod.metrics.*.counter\",\r\n \"mapping\": {\r\n \"time_series_metric\": \"counter\",\r\n \"type\": \"double\"\r\n }\r\n }\r\n },\r\n {\r\n```","sha":"863f6bdb8bca99af02392e74ec75e37373bdcfc0"}}]}] BACKPORT--> Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
- Loading branch information