Skip to content

Commit 9092608

Browse files
[9.2] [Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'. (#238947) (#239199)
# Backport This will backport the following commits from `main` to `9.2`: - [[Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'. (#238947)](#238947) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Chris Cowan","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-15T16:53:04Z","message":"[Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'. (#238947)\n\n## 🍒 Summary\n\nThis closes #238875 by only expanding wildcards for \"open\" datastreams\nwhich will exclude \"hidden\" datastreams. Prior to this PR the display\nbelow would include metrics from\n`remote_cluster:metrics-service_summary.1m.otel-default` and\n`remote_cluster:metrics-service_summary.30m.otel-default` even though\nthe `30m` summary index was \"hidden\".\n\n<img width=\"2048\" height=\"1005\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/51801379-ff8a-4f14-9c3d-152db4d76ea4\"\n/>","sha":"c4c64e0542a1b44f32e1050df54a1b4bb40bc7b2","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-infra_services","backport:version","v9.2.0","Feature:Metrics in Discover","v9.3.0"],"title":"[Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'.","number":238947,"url":"https://github.com/elastic/kibana/pull/238947","mergeCommit":{"message":"[Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'. (#238947)\n\n## 🍒 Summary\n\nThis closes #238875 by only expanding wildcards for \"open\" datastreams\nwhich will exclude \"hidden\" datastreams. Prior to this PR the display\nbelow would include metrics from\n`remote_cluster:metrics-service_summary.1m.otel-default` and\n`remote_cluster:metrics-service_summary.30m.otel-default` even though\nthe `30m` summary index was \"hidden\".\n\n<img width=\"2048\" height=\"1005\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/51801379-ff8a-4f14-9c3d-152db4d76ea4\"\n/>","sha":"c4c64e0542a1b44f32e1050df54a1b4bb40bc7b2"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238947","number":238947,"mergeCommit":{"message":"[Metrics][Discover] Limit wildcard to 'open' datastreams excluding 'hidden'. (#238947)\n\n## 🍒 Summary\n\nThis closes #238875 by only expanding wildcards for \"open\" datastreams\nwhich will exclude \"hidden\" datastreams. Prior to this PR the display\nbelow would include metrics from\n`remote_cluster:metrics-service_summary.1m.otel-default` and\n`remote_cluster:metrics-service_summary.30m.otel-default` even though\nthe `30m` summary index was \"hidden\".\n\n<img width=\"2048\" height=\"1005\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/51801379-ff8a-4f14-9c3d-152db4d76ea4\"\n/>","sha":"c4c64e0542a1b44f32e1050df54a1b4bb40bc7b2"}}]}] BACKPORT--> Co-authored-by: Chris Cowan <[email protected]>
1 parent db9d5b0 commit 9092608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/plugins/shared/metrics_experience/server/lib/fields/retrieve_fieldcaps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function retrieveFieldCaps({
3232
// First, resolve the index pattern to get data streams
3333
const resolveResponse = await esClient.indices.resolveIndex({
3434
name: indexPattern,
35-
expand_wildcards: 'all',
35+
expand_wildcards: 'open',
3636
});
3737

3838
// Extract data stream names

0 commit comments

Comments
 (0)