Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Observability Onboarding] Prevent showing duplcated AWS servic…
…es in Firehose flow (elastic#201613) (elastic#202894) # Backport This will backport the following commits from `main` to `8.x`: - [[Observability Onboarding] Prevent showing duplcated AWS services in Firehose flow (elastic#201613)](elastic#201613) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Mykola Harmash","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-04T10:49:47Z","message":"[Observability Onboarding] Prevent showing duplcated AWS services in Firehose flow (elastic#201613)\n\nCloses elastic#200931 \r\n\r\nSwitched to using AWS service list as a base to showing the detected\r\nservices in the UI instead of the list of populated indices as multiple\r\nindices can be related to a single service.\r\n\r\n### How to test\r\n\r\n1. Go to Firehose flow `/observabilityOnboarding/firehose`\r\n2. Open Kibana dev tools in another tab\r\n3. Ingest documents related into multiple data streams which related to\r\na single AWS service:\r\n```\r\nPOST logs-aws.apigateway_logs-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:32:01.000Z\",\r\n \"some\": 111,\r\n \"aws.kinesis.name\": \"Elastic-CloudwatchLogs\"\r\n}\r\n\r\nPOST metrics-aws.apigateway_metrics-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:31:01.000Z\",\r\n \"agent\": {\r\n \"type\": \"firehose\"\r\n },\r\n \"aws\": {\r\n \"cloudwatch\": {\r\n \"namespace\": \"AWS/ApiGateway\"\r\n },\r\n \"exporter\": {\r\n \"arn\": \"arn:aws:cloudwatch:us-west-2:975050175126:metric-stream/Elastic-CloudwatchLogsAndMetricsToFirehose-CloudWatchMetricStream-Nhb4NhzPdL4J\"\r\n }\r\n },\r\n \"cloud\": {\r\n \"account\": {\r\n \"id\": \"975050175126\"\r\n },\r\n \"provider\": \"aws\",\r\n \"region\": \"us-west-2\"\r\n }\r\n}\r\n```\r\n4. Make sure you see only one entry for the service appear in the\r\nFirehose flow","sha":"a2fb9b736cd8007a0ba04b9b1051d7988c690b5b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","ci:project-deploy-observability"],"title":"[Observability Onboarding] Prevent showing duplcated AWS services in Firehose flow","number":201613,"url":"https://github.com/elastic/kibana/pull/201613","mergeCommit":{"message":"[Observability Onboarding] Prevent showing duplcated AWS services in Firehose flow (elastic#201613)\n\nCloses elastic#200931 \r\n\r\nSwitched to using AWS service list as a base to showing the detected\r\nservices in the UI instead of the list of populated indices as multiple\r\nindices can be related to a single service.\r\n\r\n### How to test\r\n\r\n1. Go to Firehose flow `/observabilityOnboarding/firehose`\r\n2. Open Kibana dev tools in another tab\r\n3. Ingest documents related into multiple data streams which related to\r\na single AWS service:\r\n```\r\nPOST logs-aws.apigateway_logs-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:32:01.000Z\",\r\n \"some\": 111,\r\n \"aws.kinesis.name\": \"Elastic-CloudwatchLogs\"\r\n}\r\n\r\nPOST metrics-aws.apigateway_metrics-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:31:01.000Z\",\r\n \"agent\": {\r\n \"type\": \"firehose\"\r\n },\r\n \"aws\": {\r\n \"cloudwatch\": {\r\n \"namespace\": \"AWS/ApiGateway\"\r\n },\r\n \"exporter\": {\r\n \"arn\": \"arn:aws:cloudwatch:us-west-2:975050175126:metric-stream/Elastic-CloudwatchLogsAndMetricsToFirehose-CloudWatchMetricStream-Nhb4NhzPdL4J\"\r\n }\r\n },\r\n \"cloud\": {\r\n \"account\": {\r\n \"id\": \"975050175126\"\r\n },\r\n \"provider\": \"aws\",\r\n \"region\": \"us-west-2\"\r\n }\r\n}\r\n```\r\n4. Make sure you see only one entry for the service appear in the\r\nFirehose flow","sha":"a2fb9b736cd8007a0ba04b9b1051d7988c690b5b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201613","number":201613,"mergeCommit":{"message":"[Observability Onboarding] Prevent showing duplcated AWS services in Firehose flow (elastic#201613)\n\nCloses elastic#200931 \r\n\r\nSwitched to using AWS service list as a base to showing the detected\r\nservices in the UI instead of the list of populated indices as multiple\r\nindices can be related to a single service.\r\n\r\n### How to test\r\n\r\n1. Go to Firehose flow `/observabilityOnboarding/firehose`\r\n2. Open Kibana dev tools in another tab\r\n3. Ingest documents related into multiple data streams which related to\r\na single AWS service:\r\n```\r\nPOST logs-aws.apigateway_logs-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:32:01.000Z\",\r\n \"some\": 111,\r\n \"aws.kinesis.name\": \"Elastic-CloudwatchLogs\"\r\n}\r\n\r\nPOST metrics-aws.apigateway_metrics-default/_doc\r\n{\r\n \"@timestamp\": \"2024-11-25T13:31:01.000Z\",\r\n \"agent\": {\r\n \"type\": \"firehose\"\r\n },\r\n \"aws\": {\r\n \"cloudwatch\": {\r\n \"namespace\": \"AWS/ApiGateway\"\r\n },\r\n \"exporter\": {\r\n \"arn\": \"arn:aws:cloudwatch:us-west-2:975050175126:metric-stream/Elastic-CloudwatchLogsAndMetricsToFirehose-CloudWatchMetricStream-Nhb4NhzPdL4J\"\r\n }\r\n },\r\n \"cloud\": {\r\n \"account\": {\r\n \"id\": \"975050175126\"\r\n },\r\n \"provider\": \"aws\",\r\n \"region\": \"us-west-2\"\r\n }\r\n}\r\n```\r\n4. Make sure you see only one entry for the service appear in the\r\nFirehose flow","sha":"a2fb9b736cd8007a0ba04b9b1051d7988c690b5b"}}]}] BACKPORT--> Co-authored-by: Mykola Harmash <[email protected]>
- Loading branch information