-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[x-pack/performance] use es/kbn archives with sample data, load dashb…
…oard w/out map (#144100) * [x-pack/performance] use es archives with sample data, load dashboards w/out map * wait for chrome map only test * fix selector * fix * [journeys] open dashboard from dashboards list page * remove waitForChrome * fix waiting for map * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' Co-authored-by: lizozom <[email protected]> Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
d61299c
commit ba227dc
Showing
21 changed files
with
2,675 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
100 changes: 100 additions & 0 deletions
100
x-pack/performance/es_archives/sample_data_flights/mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"type": "index", | ||
"value": { | ||
"aliases": { | ||
}, | ||
"index": "kibana_sample_data_flights", | ||
"mappings": { | ||
"properties": { | ||
"AvgTicketPrice": { | ||
"type": "float" | ||
}, | ||
"Cancelled": { | ||
"type": "boolean" | ||
}, | ||
"Carrier": { | ||
"type": "keyword" | ||
}, | ||
"Dest": { | ||
"type": "keyword" | ||
}, | ||
"DestAirportID": { | ||
"type": "keyword" | ||
}, | ||
"DestCityName": { | ||
"type": "keyword" | ||
}, | ||
"DestCountry": { | ||
"type": "keyword" | ||
}, | ||
"DestLocation": { | ||
"type": "geo_point" | ||
}, | ||
"DestRegion": { | ||
"type": "keyword" | ||
}, | ||
"DestWeather": { | ||
"type": "keyword" | ||
}, | ||
"DistanceKilometers": { | ||
"type": "float" | ||
}, | ||
"DistanceMiles": { | ||
"type": "float" | ||
}, | ||
"FlightDelay": { | ||
"type": "boolean" | ||
}, | ||
"FlightDelayMin": { | ||
"type": "integer" | ||
}, | ||
"FlightDelayType": { | ||
"type": "keyword" | ||
}, | ||
"FlightNum": { | ||
"type": "keyword" | ||
}, | ||
"FlightTimeHour": { | ||
"type": "keyword" | ||
}, | ||
"FlightTimeMin": { | ||
"type": "float" | ||
}, | ||
"Origin": { | ||
"type": "keyword" | ||
}, | ||
"OriginAirportID": { | ||
"type": "keyword" | ||
}, | ||
"OriginCityName": { | ||
"type": "keyword" | ||
}, | ||
"OriginCountry": { | ||
"type": "keyword" | ||
}, | ||
"OriginLocation": { | ||
"type": "geo_point" | ||
}, | ||
"OriginRegion": { | ||
"type": "keyword" | ||
}, | ||
"OriginWeather": { | ||
"type": "keyword" | ||
}, | ||
"dayOfWeek": { | ||
"type": "integer" | ||
}, | ||
"timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
}, | ||
"settings": { | ||
"index": { | ||
"auto_expand_replicas": "0-1", | ||
"number_of_replicas": "0", | ||
"number_of_shards": "1" | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
173 changes: 173 additions & 0 deletions
173
x-pack/performance/es_archives/sample_data_logs/mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
{ | ||
"type": "index", | ||
"value": { | ||
"aliases": { | ||
}, | ||
"index": "kibana_sample_data_logs", | ||
"mappings": { | ||
"properties": { | ||
"@timestamp": { | ||
"path": "timestamp", | ||
"type": "alias" | ||
}, | ||
"agent": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"bytes": { | ||
"type": "long" | ||
}, | ||
"clientip": { | ||
"type": "ip" | ||
}, | ||
"event": { | ||
"properties": { | ||
"dataset": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"extension": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"geo": { | ||
"properties": { | ||
"coordinates": { | ||
"type": "geo_point" | ||
}, | ||
"dest": { | ||
"type": "keyword" | ||
}, | ||
"src": { | ||
"type": "keyword" | ||
}, | ||
"srcdest": { | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"host": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"index": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"ip": { | ||
"type": "ip" | ||
}, | ||
"ip_range": { | ||
"type": "ip_range" | ||
}, | ||
"machine": { | ||
"properties": { | ||
"os": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"ram": { | ||
"type": "long" | ||
} | ||
} | ||
}, | ||
"memory": { | ||
"type": "double" | ||
}, | ||
"message": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"phpmemory": { | ||
"type": "long" | ||
}, | ||
"referer": { | ||
"type": "keyword" | ||
}, | ||
"request": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"response": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"tags": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"timestamp": { | ||
"type": "date" | ||
}, | ||
"timestamp_range": { | ||
"type": "date_range" | ||
}, | ||
"url": { | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 256, | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"utc_time": { | ||
"type": "date" | ||
} | ||
} | ||
}, | ||
"settings": { | ||
"index": { | ||
"auto_expand_replicas": "0-1", | ||
"number_of_replicas": "0", | ||
"number_of_shards": "1" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
x-pack/performance/journeys/ecommerce_dashboard_map_only.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Journey } from '@kbn/journeys'; | ||
import { subj } from '@kbn/test-subj-selector'; | ||
|
||
export const journey = new Journey({ | ||
esArchives: ['x-pack/performance/es_archives/sample_data_ecommerce'], | ||
kbnArchives: ['x-pack/performance/kbn_archives/ecommerce_map_only_dashboard'], | ||
}) | ||
|
||
.step('Go to Dashboards Page', async ({ page, kbnUrl }) => { | ||
await page.goto(kbnUrl.get(`/app/dashboards`)); | ||
await page.waitForSelector('#dashboardListingHeading'); | ||
}) | ||
|
||
.step('Go to Ecommerce No Map Dashboard', async ({ page, kbnUrl }) => { | ||
await page.click(subj('dashboardListingTitleLink-[eCommerce]-Map-Only')); | ||
await page.waitForSelector( | ||
'div[data-title="[eCommerce] Orders by Country"][data-render-complete="true"]' | ||
); | ||
}); |
Oops, something went wrong.