Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.16] [Observability Onboarding] Show existing data callout in Fireh…
…ose flow (#203072) (#203565) # Backport This will backport the following commits from `main` to `8.16`: - [[Observability Onboarding] Show existing data callout in Firehose flow (#203072)](#203072) <!--- 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-10T13:07:11Z","message":"[Observability Onboarding] Show existing data callout in Firehose flow (#203072)\n\nCloses https://github.com/elastic/kibana/issues/190795\r\n\r\nAdds the logic to display a message to the user in case there is already\r\nan existing Firehose data in their cluster and to show the identified\r\nAWS services in the \"Visualize Data\" step right away without waiting for\r\nthe window to loose focus first.\r\n\r\n![CleanShot 2024-12-05 at 11 50\r\n59@2x](https://github.com/user-attachments/assets/00653bf0-f711-4029-9011-a34a160b4b9b)\r\n\r\n\r\n## How to test\r\n\r\n1. Open the Firehose flow\r\n2. Make sure there is no callout and the third step is not active\r\n3. Go to Kibana dev console and ingest some dummy data (see examples\r\nbellow)\r\n4. Refresh the page with the Firehose flow\r\n5. make sure there is a callout and the third steps shows the identified\r\nAWS service\r\n\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```","sha":"6cb14302a1a3fd157d1e1947493a0d0d5f4980f6","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","Team:obs-ux-logs","Feature: Observability Onboarding"],"title":"[Observability Onboarding] Show existing data callout in Firehose flow","number":203072,"url":"https://github.com/elastic/kibana/pull/203072","mergeCommit":{"message":"[Observability Onboarding] Show existing data callout in Firehose flow (#203072)\n\nCloses https://github.com/elastic/kibana/issues/190795\r\n\r\nAdds the logic to display a message to the user in case there is already\r\nan existing Firehose data in their cluster and to show the identified\r\nAWS services in the \"Visualize Data\" step right away without waiting for\r\nthe window to loose focus first.\r\n\r\n![CleanShot 2024-12-05 at 11 50\r\n59@2x](https://github.com/user-attachments/assets/00653bf0-f711-4029-9011-a34a160b4b9b)\r\n\r\n\r\n## How to test\r\n\r\n1. Open the Firehose flow\r\n2. Make sure there is no callout and the third step is not active\r\n3. Go to Kibana dev console and ingest some dummy data (see examples\r\nbellow)\r\n4. Refresh the page with the Firehose flow\r\n5. make sure there is a callout and the third steps shows the identified\r\nAWS service\r\n\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```","sha":"6cb14302a1a3fd157d1e1947493a0d0d5f4980f6"}},"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/203072","number":203072,"mergeCommit":{"message":"[Observability Onboarding] Show existing data callout in Firehose flow (#203072)\n\nCloses https://github.com/elastic/kibana/issues/190795\r\n\r\nAdds the logic to display a message to the user in case there is already\r\nan existing Firehose data in their cluster and to show the identified\r\nAWS services in the \"Visualize Data\" step right away without waiting for\r\nthe window to loose focus first.\r\n\r\n![CleanShot 2024-12-05 at 11 50\r\n59@2x](https://github.com/user-attachments/assets/00653bf0-f711-4029-9011-a34a160b4b9b)\r\n\r\n\r\n## How to test\r\n\r\n1. Open the Firehose flow\r\n2. Make sure there is no callout and the third step is not active\r\n3. Go to Kibana dev console and ingest some dummy data (see examples\r\nbellow)\r\n4. Refresh the page with the Firehose flow\r\n5. make sure there is a callout and the third steps shows the identified\r\nAWS service\r\n\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```","sha":"6cb14302a1a3fd157d1e1947493a0d0d5f4980f6"}}]}] BACKPORT--> Co-authored-by: Mykola Harmash <[email protected]>
- Loading branch information