[APM] Remove dashboards (#29043)

related to #1673
This commit is contained in:
Silvia Mitter 2019-01-21 19:08:58 +01:00 committed by GitHub
parent f469861c78
commit 414dec39cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 283 deletions

View file

@ -18,7 +18,6 @@
*/
import indexPattern from './index_pattern.json';
import staticSavedObjects from './saved_objects.json';
function getIndexPatternWithTitle(indexPatternTitle) {
indexPattern.attributes.title = indexPatternTitle;
@ -26,5 +25,5 @@ function getIndexPatternWithTitle(indexPatternTitle) {
}
export function getSavedObjects(indexPatternTitle) {
return [getIndexPatternWithTitle(indexPatternTitle), ...staticSavedObjects];
return [getIndexPatternWithTitle(indexPatternTitle)];
}

View file

@ -1,260 +0,0 @@
[{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Services [APM]",
"uiStateJSON": "{\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}",
"version": 1,
"visState": "{\"type\": \"table\", \"title\": \"Services [APM]\", \"aggs\": [{\"id\": \"1\", \"type\": \"avg\", \"enabled\": true, \"params\": {\"customLabel\": \"Avg. Trans. Time (us)\", \"field\": \"transaction.duration.us\"}, \"schema\": \"metric\"}, {\"id\": \"3\", \"type\": \"percentiles\", \"enabled\": true, \"params\": {\"customLabel\": \"Trans. Time (us)\", \"field\": \"transaction.duration.us\", \"percents\": [95]}, \"schema\": \"metric\"}, {\"id\": \"4\", \"type\": \"cardinality\", \"enabled\": true, \"params\": {\"customLabel\": \"Total Transactions\", \"field\": \"transaction.id\"}, \"schema\": \"metric\"}, {\"id\": \"6\", \"type\": \"cardinality\", \"enabled\": true, \"params\": {\"customLabel\": \"Errors\", \"field\": \"error.id\"}, \"schema\": \"metric\"}, {\"id\": \"5\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"-\", \"size\": 1, \"field\": \"view errors\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}, {\"id\": \"2\", \"type\": \"terms\", \"enabled\": true, \"params\": {\"field\": \"context.service.name\", \"orderBy\": \"1\", \"size\": 1000, \"order\": \"desc\"}, \"schema\": \"bucket\"}], \"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}, \"showPartialRows\": false, \"showTotal\": false, \"totalFunc\": \"sum\", \"perPage\": 10, \"showMeticsAtAllLevels\": false}}"
},
"id": "1ffc5e20-7827-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 1
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Top Services by Transaction Time [APM]",
"uiStateJSON": "{}",
"version": 1,
"visState": "{\"type\": \"metrics\", \"title\": \"Top Services by Transaction Time [APM]\", \"aggs\": [], \"params\": {\"type\": \"timeseries\", \"show_grid\": 1, \"interval\": \">=1m\", \"axis_position\": \"left\", \"time_field\": \"@timestamp\", \"id\": \"61ca57f0-469d-11e7-af02-69e470af7417\", \"show_legend\": 1, \"series\": [{\"value_template\": \"{{value}} ms\", \"formatter\": \"us,ms,0\", \"terms_field\": \"context.service.name\", \"id\": \"61ca57f1-469d-11e7-af02-69e470af7417\", \"color\": \"rgba(0,156,224,1)\", \"stacked\": \"none\", \"line_width\": \"2\", \"fill\": \"0\", \"split_color_mode\": \"gradient\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"type\": \"avg\", \"field\": \"transaction.duration.us\"}], \"terms_order_by\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"chart_type\": \"line\", \"point_size\": 1, \"split_mode\": \"terms\"}], \"axis_formatter\": \"number\"}}"
},
"id": "1bdca740-7828-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 2
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Top Services by Transaction Per Minute [APM]",
"uiStateJSON": "{}",
"version": 1,
"visState": "{\"type\": \"metrics\", \"title\": \"Top Apps by Transaction Per Minute [APM]\", \"aggs\": [], \"params\": {\"type\": \"timeseries\", \"show_grid\": 1, \"interval\": \">=1m\", \"axis_position\": \"left\", \"time_field\": \"@timestamp\", \"id\": \"61ca57f0-469d-11e7-af02-69e470af7417\", \"show_legend\": 1, \"series\": [{\"value_template\": \"{{value}} tpm\", \"formatter\": \"number\", \"terms_field\": \"context.service.name\", \"id\": \"61ca57f1-469d-11e7-af02-69e470af7417\", \"color\": \"rgba(0,156,224,1)\", \"stacked\": \"none\", \"line_width\": \"2\", \"fill\": \"0\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"type\": \"count\"}, {\"id\": \"3fcaa6c0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"cumulative_sum\", \"field\": \"61ca57f2-469d-11e7-af02-69e470af7417\"}, {\"id\": \"467f1cd0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"derivative\", \"field\": \"3fcaa6c0-7828-11e7-bb25-2ff6dee07a1b\", \"unit\": \"1m\"}, {\"id\": \"4bd1b8f0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"positive_only\", \"field\": \"467f1cd0-7828-11e7-bb25-2ff6dee07a1b\", \"unit\": \"\"}], \"terms_order_by\": \"_count\", \"chart_type\": \"line\", \"point_size\": 1, \"split_mode\": \"terms\"}], \"axis_formatter\": \"number\"}}"
},
"id": "804ffc40-7828-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 1
},
{
"attributes": {
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"highlightAll\": true, \"version\": true, \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"optionsJSON": "{\"darkTheme\": false}",
"panelsJSON": "[{\"size_x\": 12, \"size_y\": 5, \"id\": \"1ffc5e20-7827-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 1, \"row\": 4, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 6, \"size_y\": 3, \"id\": \"1bdca740-7828-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 2, \"row\": 1, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 6, \"size_y\": 3, \"id\": \"804ffc40-7828-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 3, \"row\": 1, \"col\": 7, \"type\": \"visualization\"}]",
"timeRestore": false,
"title": "[APM] Services",
"uiStateJSON": "{\"P-1\": {\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}}",
"version": 1
},
"id": "8d3ed660-7828-11e7-8c47-65b845b5cfb3",
"type": "dashboard",
"version": 1
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Error Occurrences [APM]",
"uiStateJSON": "{}",
"version": 1,
"visState": "{\"type\": \"metrics\", \"title\": \"Error Occurrences [APM]\", \"aggs\": [], \"params\": {\"filter\": \"processor.event:error\", \"type\": \"timeseries\", \"show_grid\": 1, \"interval\": \">=1m\", \"axis_position\": \"left\", \"time_field\": \"@timestamp\", \"id\": \"61ca57f0-469d-11e7-af02-69e470af7417\", \"show_legend\": 0, \"series\": [{\"label\": \"Occurrences\", \"formatter\": \"number\", \"terms_field\": \"error.grouping_key\", \"id\": \"61ca57f1-469d-11e7-af02-69e470af7417\", \"color\": \"rgba(0,156,224,1)\", \"stacked\": \"none\", \"line_width\": \"0\", \"fill\": \"1\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"type\": \"count\"}], \"chart_type\": \"bar\", \"point_size\": 1, \"split_mode\": \"terms\"}], \"axis_formatter\": \"number\"}}"
},
"id": "c618e4e0-7c69-11e7-aa55-3b0d52c71c60",
"type": "visualization",
"version": 1
},
{
"attributes": {
"columns": [
"error.culprit",
"error.exception.type",
"error.exception.message",
"error.log.message",
"error.exception.handled",
"context.service.name"
],
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [{\"$state\": {\"store\": \"appState\"}, \"meta\": {\"value\": \"error\", \"disabled\": false, \"key\": \"processor.event\", \"negate\": false, \"type\": \"phrase\", \"alias\": null, \"index\": \"apm-*\", \"params\": {\"type\": \"phrase\", \"query\": \"error\"}}, \"query\": {\"match\": {\"processor.event\": {\"type\": \"phrase\", \"query\": \"error\"}}}}], \"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}, \"highlightAll\": true, \"version\": true}"
},
"sort": [
"@timestamp",
"desc"
],
"title": "Error Details [APM]",
"version": 1
},
"id": "ceefd050-7c6a-11e7-aa55-3b0d52c71c60",
"type": "search",
"version": 1
},
{
"attributes": {
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"highlightAll\": true, \"version\": true, \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"optionsJSON": "{\"darkTheme\": false}",
"panelsJSON": "[{\"size_x\": 12, \"size_y\": 3, \"id\": \"c618e4e0-7c69-11e7-aa55-3b0d52c71c60\", \"panelIndex\": 1, \"row\": 1, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 12, \"sort\": [\"@timestamp\", \"desc\"], \"size_y\": 21, \"id\": \"ceefd050-7c6a-11e7-aa55-3b0d52c71c60\", \"columns\": [\"error.culprit\", \"error.exception.type\", \"error.exception.message\", \"error.log.message\", \"error.exception.handled\", \"context.service.name\"], \"panelIndex\": 2, \"row\": 4, \"col\": 1, \"type\": \"search\"}]",
"timeRestore": false,
"title": "[APM] Error Details",
"uiStateJSON": "{}",
"version": 1
},
"id": "5f08a870-7c6a-11e7-aa55-3b0d52c71c60",
"type": "dashboard",
"version": 1
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Top Errors for Time Period [APM]",
"uiStateJSON": "{\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}",
"version": 1,
"visState": "{\"type\": \"table\", \"title\": \"Top Errors for Time Period [APM]\", \"aggs\": [{\"id\": \"2\", \"type\": \"terms\", \"enabled\": true, \"params\": {\"customLabel\": \"-\", \"field\": \"error id icon\", \"orderBy\": \"1\", \"size\": 100, \"order\": \"desc\"}, \"schema\": \"bucket\"}, {\"id\": \"5\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"Message\", \"size\": 1, \"field\": \"error.exception.message\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}, {\"id\": \"1\", \"type\": \"count\", \"enabled\": true, \"params\": {\"customLabel\": \"Number of Errors\"}, \"schema\": \"metric\"}, {\"id\": \"4\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"Type\", \"size\": 1, \"field\": \"error.exception.type\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}, {\"id\": \"3\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"Culprit\", \"size\": 1, \"field\": \"error.culprit\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}, {\"id\": \"6\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"App Name\", \"size\": 1, \"field\": \"context.service.name\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}, {\"id\": \"7\", \"type\": \"top_hits\", \"enabled\": true, \"params\": {\"sortOrder\": \"desc\", \"customLabel\": \"-\", \"size\": 1, \"field\": \"error.grouping_key\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}, \"schema\": \"metric\"}], \"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}, \"showPartialRows\": false, \"showTotal\": false, \"totalFunc\": \"sum\", \"perPage\": 25, \"showMeticsAtAllLevels\": false}}"
},
"id": "22518e70-7c69-11e7-aa55-3b0d52c71c60",
"type": "visualization",
"version": 1
},
{
"attributes": {
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"highlightAll\": true, \"version\": true, \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"optionsJSON": "{\"darkTheme\": false}",
"panelsJSON": "[{\"size_x\": 12, \"size_y\": 10, \"id\": \"22518e70-7c69-11e7-aa55-3b0d52c71c60\", \"panelIndex\": 1, \"row\": 4, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 12, \"size_y\": 3, \"id\": \"c618e4e0-7c69-11e7-aa55-3b0d52c71c60\", \"panelIndex\": 2, \"row\": 1, \"col\": 1, \"type\": \"visualization\"}]",
"timeRestore": false,
"title": "[APM] Errors",
"uiStateJSON": "{\"P-1\": {\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}}",
"version": 1
},
"id": "37f6fac0-7c6a-11e7-aa55-3b0d52c71c60",
"type": "dashboard",
"version": 1
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Top Transactions for Time Period [APM]",
"uiStateJSON": "{\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}",
"version": 1,
"visState": "{\"type\": \"table\", \"title\": \"Top Transactions for Time Period [APM]\", \"aggs\": [{\"id\": \"2\", \"type\": \"terms\", \"enabled\": true, \"schema\": \"bucket\", \"params\": {\"customLabel\": \"Transaction\", \"field\": \"transaction.name.keyword\", \"orderBy\": \"1\", \"size\": 1000, \"order\": \"desc\"}}, {\"id\": \"5\", \"type\": \"top_hits\", \"enabled\": true, \"schema\": \"metric\", \"params\": {\"customLabel\": \"Type\", \"sortOrder\": \"desc\", \"size\": 1, \"field\": \"transaction.type\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}}, {\"id\": \"1\", \"type\": \"avg\", \"enabled\": true, \"schema\": \"metric\", \"params\": {\"customLabel\": \"Avg. Trans. Time (us)\", \"field\": \"transaction.duration.us\"}}, {\"id\": \"3\", \"type\": \"percentiles\", \"enabled\": true, \"schema\": \"metric\", \"params\": {\"customLabel\": \"Trans. Time (us)\", \"field\": \"transaction.duration.us\", \"percents\": [95]}}, {\"id\": \"4\", \"type\": \"top_hits\", \"enabled\": true, \"schema\": \"metric\", \"params\": {\"customLabel\": \"View Spans\", \"sortOrder\": \"desc\", \"size\": 1, \"field\": \"transaction.id\", \"aggregate\": \"concat\", \"sortField\": \"@timestamp\"}}], \"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}, \"showPartialRows\": false, \"showTotal\": false, \"totalFunc\": \"sum\", \"perPage\": 25, \"showMeticsAtAllLevels\": false}}"
},
"id": "a2e199b0-7820-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 1
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Transaction Times [APM]",
"uiStateJSON": "{}",
"version": 1,
"visState": "{\"type\": \"metrics\", \"title\": \"Transaction Times [APM]\", \"aggs\": [], \"params\": {\"type\": \"timeseries\", \"show_grid\": 1, \"interval\": \">=1m\", \"axis_position\": \"left\", \"time_field\": \"@timestamp\", \"id\": \"61ca57f0-469d-11e7-af02-69e470af7417\", \"legend_position\": \"right\", \"show_legend\": 1, \"series\": [{\"label\": \"Average\", \"value_template\": \"{{value}} ms\", \"formatter\": \"us,ms,0\", \"id\": \"61ca57f1-469d-11e7-af02-69e470af7417\", \"color\": \"rgba(0,156,224,1)\", \"stacked\": \"none\", \"line_width\": \"2\", \"fill\": \"0\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"type\": \"avg\", \"field\": \"transaction.duration.us\"}], \"chart_type\": \"line\", \"point_size\": 1, \"split_mode\": \"everything\"}, {\"label\": \"95th Percentile\", \"value_template\": \"{{value}} ms\", \"formatter\": \"us,ms,0\", \"id\": \"79921480-7821-11e7-8745-07eaffcb65e5\", \"color\": \"rgba(115,216,255,1)\", \"stacked\": \"none\", \"line_width\": 1, \"fill\": 0.5, \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"79921481-7821-11e7-8745-07eaffcb65e5\", \"type\": \"percentile\", \"percentiles\": [{\"id\": \"858ec670-7821-11e7-8745-07eaffcb65e5\", \"value\": \"95\", \"percentile\": \"\", \"shade\": 0.2, \"mode\": \"line\"}], \"field\": \"transaction.duration.us\"}], \"chart_type\": \"line\", \"point_size\": 1, \"split_mode\": \"everything\"}, {\"label\": \"99th Percentile\", \"value_template\": \"{{value}} ms\", \"formatter\": \"us,ms,0\", \"id\": \"c1e42de0-7821-11e7-8745-07eaffcb65e5\", \"color\": \"rgba(254,146,0,1)\", \"stacked\": \"none\", \"line_width\": \"2\", \"fill\": \"0\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"c1e42de1-7821-11e7-8745-07eaffcb65e5\", \"type\": \"percentile\", \"percentiles\": [{\"id\": \"858ec670-7821-11e7-8745-07eaffcb65e5\", \"value\": \"99\", \"percentile\": \"\", \"shade\": 0.2, \"mode\": \"line\"}], \"field\": \"transaction.duration.us\"}], \"chart_type\": \"line\", \"point_size\": 1, \"split_mode\": \"everything\"}], \"axis_formatter\": \"number\"}}"
},
"id": "09bcf890-7822-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 2
},
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"title": "Transaction Per Minute [APM]",
"uiStateJSON": "{}",
"version": 1,
"visState": "{\"type\": \"metrics\", \"title\": \"Transaction Per Minute [APM]\", \"aggs\": [], \"params\": {\"type\": \"timeseries\", \"show_grid\": 1, \"interval\": \">=1m\", \"axis_position\": \"left\", \"time_field\": \"@timestamp\", \"id\": \"61ca57f0-469d-11e7-af02-69e470af7417\", \"show_legend\": 0, \"series\": [{\"label\": \"\", \"value_template\": \"{{value}} tpm\", \"formatter\": \"number\", \"terms_field\": \"transaction.result\", \"id\": \"61ca57f1-469d-11e7-af02-69e470af7417\", \"color\": \"rgba(115,216,255,1)\", \"stacked\": \"none\", \"line_width\": \"2\", \"fill\": \"0\", \"seperate_axis\": 0, \"axis_position\": \"right\", \"metrics\": [{\"id\": \"61ca57f2-469d-11e7-af02-69e470af7417\", \"type\": \"cardinality\", \"field\": \"transaction.id\"}, {\"id\": \"3fcaa6c0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"cumulative_sum\", \"field\": \"61ca57f2-469d-11e7-af02-69e470af7417\"}, {\"id\": \"467f1cd0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"derivative\", \"field\": \"3fcaa6c0-7828-11e7-bb25-2ff6dee07a1b\", \"unit\": \"1m\"}, {\"id\": \"4bd1b8f0-7828-11e7-bb25-2ff6dee07a1b\", \"type\": \"positive_only\", \"field\": \"467f1cd0-7828-11e7-bb25-2ff6dee07a1b\", \"unit\": \"\"}], \"chart_type\": \"line\", \"point_size\": \"0\", \"split_mode\": \"everything\"}], \"axis_formatter\": \"number\"}}"
},
"id": "55606a60-7823-11e7-8c47-65b845b5cfb3",
"type": "visualization",
"version": 1
},
{
"attributes": {
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"highlightAll\": true, \"version\": true, \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"optionsJSON": "{\"darkTheme\": false}",
"panelsJSON": "[{\"size_x\": 12, \"size_y\": 10, \"id\": \"a2e199b0-7820-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 1, \"row\": 4, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 6, \"size_y\": 3, \"id\": \"09bcf890-7822-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 2, \"row\": 1, \"col\": 1, \"type\": \"visualization\"}, {\"size_x\": 6, \"size_y\": 3, \"id\": \"55606a60-7823-11e7-8c47-65b845b5cfb3\", \"panelIndex\": 3, \"row\": 1, \"col\": 7, \"type\": \"visualization\"}]",
"timeRestore": false,
"title": "[APM] Transactions",
"uiStateJSON": "{\"P-1\": {\"vis\": {\"params\": {\"sort\": {\"direction\": null, \"columnIndex\": null}}}}}",
"version": 1
},
"id": "41b5d920-7821-11e7-8c47-65b845b5cfb3",
"type": "dashboard",
"version": 1
},
{
"attributes": {
"columns": [
"span.type",
"span.name",
"span.duration.us",
"span.start.us"
],
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [{\"$state\": {\"store\": \"appState\"}, \"meta\": {\"value\": \"span\", \"disabled\": false, \"key\": \"processor.event\", \"negate\": false, \"type\": \"phrase\", \"alias\": null, \"index\": \"apm-*\", \"params\": {\"type\": \"phrase\", \"query\": \"span\"}}, \"query\": {\"match\": {\"processor.event\": {\"type\": \"phrase\", \"query\": \"span\"}}}}], \"index\": \"apm-*\", \"query\": {\"language\": \"lucene\", \"query\": \"\"}, \"highlightAll\": true, \"version\": true}"
},
"sort": [
"span.start.us",
"asc"
],
"title": "Spans [APM]",
"version": 1
},
"id": "d7735b90-7ddf-11e7-b115-df9c90da2df1",
"type": "search",
"version": 1
},
{
"attributes": {
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\": [], \"highlightAll\": true, \"version\": true, \"query\": {\"language\": \"lucene\", \"query\": \"\"}}"
},
"optionsJSON": "{\"darkTheme\": false}",
"panelsJSON": "[{\"size_x\": 12, \"sort\": [\"span.start.us\", \"asc\"], \"size_y\": 23, \"type\": \"search\", \"columns\": [\"span.type\", \"span.name\", \"span.duration.us\", \"span.start.us\"], \"panelIndex\": 1, \"row\": 1, \"col\": 1, \"id\": \"d7735b90-7ddf-11e7-b115-df9c90da2df1\"}]",
"timeRestore": false,
"title": "[APM] Span Details",
"uiStateJSON": "{}",
"version": 1
},
"id": "3e3de700-7de0-11e7-b115-df9c90da2df1",
"type": "dashboard",
"version": 2
}]

View file

@ -33,26 +33,5 @@ export default function ({ getService, getPageObjects }) {
expect(tutorialExists).to.be(true);
});
});
describe('apm', function describeIndexTests() {
it('should install saved objects', async ()=> {
await PageObjects.common.navigateToUrl('home', 'tutorial_directory');
await PageObjects.header.waitUntilLoadingHasFinished();
await retry.try(async () => {
await PageObjects.home.clickSynopsis('apm');
});
await PageObjects.home.loadSavedObjects();
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.searchForDashboardWithName('APM');
const countOfDashboards = await PageObjects.dashboard.getCountOfDashboardsInListingTable();
expect(countOfDashboards).to.equal(5);
});
});
});
}