diff --git a/packages/mysql/changelog.yml b/packages/mysql/changelog.yml index 3884049e08f6..a13f7860291b 100644 --- a/packages/mysql/changelog.yml +++ b/packages/mysql/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "1.13.0" + changes: + - description: Migrate Logs Overview dashboard visualizations to lens. + type: enhancement + link: https://github.com/elastic/integrations/pull/5818 - version: "1.12.4" changes: - description: Fix to correct the aggregate function used in dashboard for fields having `metric_type` value `counter`. diff --git a/packages/mysql/img/kibana-mysql.png b/packages/mysql/img/kibana-mysql.png index 13c5ea4d276f..71216ec5ce74 100644 Binary files a/packages/mysql/img/kibana-mysql.png and b/packages/mysql/img/kibana-mysql.png differ diff --git a/packages/mysql/kibana/dashboard/mysql-Logs-MySQL-Dashboard.json b/packages/mysql/kibana/dashboard/mysql-Logs-MySQL-Dashboard.json index c0636e82d713..46665fa68d63 100644 --- a/packages/mysql/kibana/dashboard/mysql-Logs-MySQL-Dashboard.json +++ b/packages/mysql/kibana/dashboard/mysql-Logs-MySQL-Dashboard.json @@ -1,48 +1,416 @@ { "attributes": { "description": "Overview dashboard for the Logs MySQL integration", - "hits": 0, "kibanaSavedObjectMeta": { "searchSourceJSON": { "filter": [], - "highlightAll": true, "query": { "language": "kuery", "query": "" - }, - "version": true + } } }, "optionsJSON": { - "darkTheme": false + "hidePanelTitles": false, + "syncColors": false, + "syncCursor": true, + "syncTooltips": false, + "useMargins": true }, "panelsJSON": [ { "embeddableConfig": { - "enhancements": {}, - "vis": { - "params": { - "sort": { - "columnIndex": null, - "direction": null + "attributes": { + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-10c1edbd-866e-4186-83ac-465865085079", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "18d40a87-4926-44bc-b73b-e1e3b82b16c7", + "type": "index-pattern" } - } - } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "10c1edbd-866e-4186-83ac-465865085079": { + "columnOrder": [ + "62c48aeb-bfa7-4591-8917-b0106a31808d", + "39bfa269-307a-460e-8a07-0cfbaf089330", + "8e15aeab-dede-4f18-a5e9-30a128cab6e3", + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X0", + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X1" + ], + "columns": { + "39bfa269-307a-460e-8a07-0cfbaf089330": { + "customLabel": true, + "dataType": "string", + "isBucketed": true, + "label": "User", + "operationType": "terms", + "params": { + "exclude": [], + "excludeIsRegex": false, + "include": [], + "includeIsRegex": false, + "missingBucket": false, + "orderBy": { + "fallback": true, + "type": "alphabetical" + }, + "orderDirection": "desc", + "otherBucket": false, + "parentFormat": { + "id": "terms" + }, + "size": 5 + }, + "scale": "ordinal", + "sourceField": "user.name" + }, + "62c48aeb-bfa7-4591-8917-b0106a31808d": { + "customLabel": true, + "dataType": "string", + "isBucketed": true, + "label": "Query", + "operationType": "terms", + "params": { + "accuracyMode": false, + "exclude": [], + "excludeIsRegex": false, + "include": [], + "includeIsRegex": false, + "missingBucket": false, + "orderAgg": { + "dataType": "number", + "isBucketed": false, + "label": "Maximum of event.duration", + "operationType": "max", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "event.duration" + }, + "orderBy": { + "type": "custom" + }, + "orderDirection": "desc", + "otherBucket": false, + "parentFormat": { + "id": "terms" + }, + "size": 5 + }, + "scale": "ordinal", + "sourceField": "mysql.slowlog.query" + }, + "8e15aeab-dede-4f18-a5e9-30a128cab6e3": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Query time (ms)", + "operationType": "formula", + "params": { + "format": { + "id": "number", + "params": { + "decimals": 2 + } + }, + "formula": "max(event.duration)/1000000", + "isFormulaBroken": false + }, + "references": [ + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X1" + ], + "scale": "ratio" + }, + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X0": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Part of Query time", + "operationType": "max", + "params": { + "emptyAsNull": false + }, + "scale": "ratio", + "sourceField": "event.duration" + }, + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X1": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Part of Query time", + "operationType": "math", + "params": { + "tinymathAst": { + "args": [ + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X0", + 1000000 + ], + "location": { + "max": 27, + "min": 0 + }, + "name": "divide", + "text": "max(event.duration)/1000000", + "type": "function" + } + }, + "references": [ + "8e15aeab-dede-4f18-a5e9-30a128cab6e3X0" + ], + "scale": "ratio" + } + }, + "incompleteColumns": {} + } + } + }, + "textBased": { + "layers": {} + } + }, + "filters": [ + { + "$state": { + "store": "appState" + }, + "meta": { + "alias": null, + "disabled": false, + "index": "18d40a87-4926-44bc-b73b-e1e3b82b16c7", + "key": "data_stream.dataset", + "negate": false, + "params": { + "query": "mysql.slowlog" + }, + "type": "phrase" + }, + "query": { + "match_phrase": { + "data_stream.dataset": "mysql.slowlog" + } + } + } + ], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "" + }, + "visualization": { + "columns": [ + { + "alignment": "left", + "columnId": "8e15aeab-dede-4f18-a5e9-30a128cab6e3" + }, + { + "alignment": "left", + "columnId": "62c48aeb-bfa7-4591-8917-b0106a31808d" + }, + { + "alignment": "left", + "columnId": "39bfa269-307a-460e-8a07-0cfbaf089330" + } + ], + "headerRowHeight": "single", + "layerId": "10c1edbd-866e-4186-83ac-465865085079", + "layerType": "data", + "paging": { + "enabled": true, + "size": 10 + }, + "rowHeight": "single" + } + }, + "title": "", + "type": "lens", + "visualizationType": "lnsDatatable" + }, + "enhancements": {} }, "gridData": { - "h": 16, + "h": 20, "i": "1", "w": 24, "x": 0, "y": 28 }, "panelIndex": "1", - "panelRefName": "panel_1", - "type": "visualization", - "version": "7.3.0" + "title": "Top slowest queries [Logs MySQL]", + "type": "lens", + "version": "8.8.0" }, { "embeddableConfig": { + "attributes": { + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-08427b5d-ebe0-413b-99aa-adacd26642e0", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "db62e1d5-40a6-46f5-95b5-21ced452e4f3", + "type": "index-pattern" + } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "08427b5d-ebe0-413b-99aa-adacd26642e0": { + "columnOrder": [ + "439c739d-435d-4d0a-b18c-76135760aa64", + "942ea915-ee84-4750-b694-0f5dd3f1b100" + ], + "columns": { + "439c739d-435d-4d0a-b18c-76135760aa64": { + "customLabel": true, + "dataType": "date", + "isBucketed": true, + "label": "@timestamp", + "operationType": "date_histogram", + "params": { + "dropPartials": false, + "includeEmptyRows": false, + "interval": "auto" + }, + "scale": "interval", + "sourceField": "@timestamp" + }, + "942ea915-ee84-4750-b694-0f5dd3f1b100": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Slow queries", + "operationType": "count", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "___records___" + } + }, + "incompleteColumns": {} + } + } + }, + "textBased": { + "layers": {} + } + }, + "filters": [ + { + "$state": { + "store": "appState" + }, + "meta": { + "alias": null, + "disabled": false, + "index": "db62e1d5-40a6-46f5-95b5-21ced452e4f3", + "key": "data_stream.dataset", + "negate": false, + "params": { + "query": "mysql.slowlog" + }, + "type": "phrase" + }, + "query": { + "match_phrase": { + "data_stream.dataset": "mysql.slowlog" + } + } + } + ], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "" + }, + "visualization": { + "axisTitlesVisibilitySettings": { + "x": true, + "yLeft": true, + "yRight": true + }, + "curveType": "LINEAR", + "gridlinesVisibilitySettings": { + "x": false, + "yLeft": false, + "yRight": true + }, + "labelsOrientation": { + "x": 0, + "yLeft": 0, + "yRight": -90 + }, + "layers": [ + { + "accessors": [ + "942ea915-ee84-4750-b694-0f5dd3f1b100" + ], + "isHistogram": true, + "layerId": "08427b5d-ebe0-413b-99aa-adacd26642e0", + "layerType": "data", + "palette": { + "name": "kibana_palette", + "type": "palette" + }, + "seriesType": "bar_stacked", + "simpleView": false, + "xAccessor": "439c739d-435d-4d0a-b18c-76135760aa64", + "xScaleType": "time", + "yConfig": [ + { + "axisMode": "left", + "color": "#EF843C", + "forAccessor": "942ea915-ee84-4750-b694-0f5dd3f1b100" + } + ] + } + ], + "legend": { + "isVisible": true, + "legendSize": "auto", + "maxLines": 1, + "position": "right", + "shouldTruncate": true, + "showSingleSeries": true + }, + "preferredSeriesType": "bar_stacked", + "showCurrentTimeMarker": false, + "tickLabelsVisibilitySettings": { + "x": true, + "yLeft": true, + "yRight": true + }, + "valueLabels": "hide", + "valuesInLegend": false, + "xTitle": "@timestamp per 30 seconds", + "yLeftExtent": { + "enforce": true, + "mode": "full" + }, + "yLeftScale": "linear", + "yRightScale": "linear", + "yTitle": "Slow queries" + } + }, + "title": "", + "type": "lens", + "visualizationType": "lnsXY" + }, "enhancements": {} }, "gridData": { @@ -53,12 +421,172 @@ "y": 0 }, "panelIndex": "2", - "panelRefName": "panel_2", - "type": "visualization", - "version": "7.3.0" + "title": "Slow queries over time [Logs MySQL]", + "type": "lens", + "version": "8.8.0" }, { "embeddableConfig": { + "attributes": { + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-636ea26e-2240-4fd9-9c4f-30d2a6680854", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "583a31e6-2399-4d1e-b2a6-dc41ec29c736", + "type": "index-pattern" + } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "636ea26e-2240-4fd9-9c4f-30d2a6680854": { + "columnOrder": [ + "1887890a-b607-40df-ae96-65010dfe1549", + "56288910-c42b-482a-9cfd-0ef16fe36e54" + ], + "columns": { + "1887890a-b607-40df-ae96-65010dfe1549": { + "customLabel": true, + "dataType": "date", + "isBucketed": true, + "label": "@timestamp", + "operationType": "date_histogram", + "params": { + "dropPartials": false, + "includeEmptyRows": false, + "interval": "auto" + }, + "scale": "interval", + "sourceField": "@timestamp" + }, + "56288910-c42b-482a-9cfd-0ef16fe36e54": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Error logs", + "operationType": "count", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "___records___" + } + }, + "incompleteColumns": {} + } + } + }, + "textBased": { + "layers": {} + } + }, + "filters": [ + { + "$state": { + "store": "appState" + }, + "meta": { + "alias": null, + "disabled": false, + "index": "583a31e6-2399-4d1e-b2a6-dc41ec29c736", + "key": "data_stream.dataset", + "negate": false, + "params": { + "query": "mysql.error" + }, + "type": "phrase" + }, + "query": { + "match_phrase": { + "data_stream.dataset": "mysql.error" + } + } + } + ], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "" + }, + "visualization": { + "axisTitlesVisibilitySettings": { + "x": true, + "yLeft": true, + "yRight": true + }, + "curveType": "LINEAR", + "gridlinesVisibilitySettings": { + "x": false, + "yLeft": false, + "yRight": true + }, + "labelsOrientation": { + "x": 0, + "yLeft": 0, + "yRight": -90 + }, + "layers": [ + { + "accessors": [ + "56288910-c42b-482a-9cfd-0ef16fe36e54" + ], + "isHistogram": true, + "layerId": "636ea26e-2240-4fd9-9c4f-30d2a6680854", + "layerType": "data", + "palette": { + "name": "kibana_palette", + "type": "palette" + }, + "seriesType": "bar_stacked", + "simpleView": false, + "xAccessor": "1887890a-b607-40df-ae96-65010dfe1549", + "xScaleType": "time", + "yConfig": [ + { + "axisMode": "left", + "color": "#1F78C1", + "forAccessor": "56288910-c42b-482a-9cfd-0ef16fe36e54" + } + ] + } + ], + "legend": { + "isVisible": true, + "legendSize": "auto", + "maxLines": 1, + "position": "right", + "shouldTruncate": true, + "showSingleSeries": true + }, + "preferredSeriesType": "bar_stacked", + "showCurrentTimeMarker": false, + "tickLabelsVisibilitySettings": { + "x": true, + "yLeft": true, + "yRight": true + }, + "valueLabels": "hide", + "valuesInLegend": false, + "xTitle": "@timestamp per 30 seconds", + "yLeftExtent": { + "enforce": true, + "mode": "full" + }, + "yLeftScale": "linear", + "yRightScale": "linear", + "yTitle": "Error logs" + } + }, + "title": "", + "type": "lens", + "visualizationType": "lnsXY" + }, "enhancements": {} }, "gridData": { @@ -69,9 +597,9 @@ "y": 0 }, "panelIndex": "3", - "panelRefName": "panel_3", - "type": "visualization", - "version": "7.3.0" + "title": "Error logs over time [Logs MySQL]", + "type": "lens", + "version": "8.8.0" }, { "embeddableConfig": { @@ -95,10 +623,146 @@ "panelIndex": "4", "panelRefName": "panel_4", "type": "search", - "version": "7.3.0" + "version": "8.8.0" }, { "embeddableConfig": { + "attributes": { + "description": "", + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-fa3445d7-f3eb-4b56-bdf1-be99771139f8", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "611fea97-3472-4dde-9487-c4b164238815", + "type": "index-pattern" + } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "fa3445d7-f3eb-4b56-bdf1-be99771139f8": { + "columnOrder": [ + "486f1788-075a-4a17-b6c9-c389b79e51a2", + "c354a143-0f64-4b37-9515-bf7e3fde8896" + ], + "columns": { + "486f1788-075a-4a17-b6c9-c389b79e51a2": { + "customLabel": true, + "dataType": "string", + "isBucketed": true, + "label": "log.level: Descending", + "operationType": "terms", + "params": { + "exclude": [], + "excludeIsRegex": false, + "include": [], + "includeIsRegex": false, + "missingBucket": false, + "orderBy": { + "columnId": "c354a143-0f64-4b37-9515-bf7e3fde8896", + "type": "column" + }, + "orderDirection": "desc", + "otherBucket": false, + "parentFormat": { + "id": "terms" + }, + "size": 5 + }, + "scale": "ordinal", + "sourceField": "log.level" + }, + "c354a143-0f64-4b37-9515-bf7e3fde8896": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Count", + "operationType": "count", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "___records___" + } + }, + "incompleteColumns": {} + } + } + }, + "textBased": { + "layers": {} + } + }, + "filters": [ + { + "$state": { + "store": "appState" + }, + "meta": { + "alias": null, + "disabled": false, + "index": "611fea97-3472-4dde-9487-c4b164238815", + "key": "data_stream.dataset", + "negate": false, + "params": { + "query": "mysql.error" + }, + "type": "phrase" + }, + "query": { + "match_phrase": { + "data_stream.dataset": "mysql.error" + } + } + } + ], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "" + }, + "visualization": { + "layers": [ + { + "categoryDisplay": "default", + "emptySizeRatio": 0.3, + "layerId": "fa3445d7-f3eb-4b56-bdf1-be99771139f8", + "layerType": "data", + "legendDisplay": "show", + "legendMaxLines": 1, + "legendPosition": "bottom", + "legendSize": "auto", + "metrics": [ + "c354a143-0f64-4b37-9515-bf7e3fde8896" + ], + "nestedLegend": false, + "numberDisplay": "percent", + "percentDecimals": 2, + "primaryGroups": [ + "486f1788-075a-4a17-b6c9-c389b79e51a2" + ], + "secondaryGroups": [], + "showValuesInLegend": true, + "truncateLegend": true + } + ], + "palette": { + "name": "default", + "type": "palette" + }, + "shape": "pie" + } + }, + "title": "", + "type": "lens", + "visualizationType": "lnsPie" + }, "enhancements": {} }, "gridData": { @@ -109,12 +773,148 @@ "y": 12 }, "panelIndex": "5", - "panelRefName": "panel_5", - "type": "visualization", - "version": "7.3.0" + "title": "Error logs levels breakdown [Logs MySQL]", + "type": "lens", + "version": "8.8.0" }, { "embeddableConfig": { + "attributes": { + "description": "", + "references": [ + { + "id": "logs-*", + "name": "indexpattern-datasource-layer-3e618193-e77a-4e60-82e9-f97556db1c33", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "9b1083c0-3720-4dc3-9bfc-74717c28d454", + "type": "index-pattern" + } + ], + "state": { + "adHocDataViews": {}, + "datasourceStates": { + "formBased": { + "layers": { + "3e618193-e77a-4e60-82e9-f97556db1c33": { + "columnOrder": [ + "3c069702-bf8b-4b75-be3a-cbadd56cb60f", + "7c2a5211-247e-49df-8450-cff3afe395a9" + ], + "columns": { + "3c069702-bf8b-4b75-be3a-cbadd56cb60f": { + "customLabel": true, + "dataType": "string", + "isBucketed": true, + "label": "mysql.slowlog.query: Descending", + "operationType": "terms", + "params": { + "exclude": [], + "excludeIsRegex": false, + "include": [], + "includeIsRegex": false, + "missingBucket": false, + "orderBy": { + "columnId": "7c2a5211-247e-49df-8450-cff3afe395a9", + "type": "column" + }, + "orderDirection": "desc", + "otherBucket": false, + "parentFormat": { + "id": "terms" + }, + "size": 5 + }, + "scale": "ordinal", + "sourceField": "mysql.slowlog.query" + }, + "7c2a5211-247e-49df-8450-cff3afe395a9": { + "customLabel": true, + "dataType": "number", + "isBucketed": false, + "label": "Count", + "operationType": "count", + "params": { + "emptyAsNull": true + }, + "scale": "ratio", + "sourceField": "___records___" + } + }, + "incompleteColumns": {} + } + } + }, + "textBased": { + "layers": {} + } + }, + "filters": [ + { + "$state": { + "store": "appState" + }, + "meta": { + "alias": null, + "disabled": false, + "index": "9b1083c0-3720-4dc3-9bfc-74717c28d454", + "key": "data_stream.dataset", + "negate": false, + "params": { + "query": "mysql.slowlog" + }, + "type": "phrase" + }, + "query": { + "match_phrase": { + "data_stream.dataset": "mysql.slowlog" + } + } + } + ], + "internalReferences": [], + "query": { + "language": "kuery", + "query": "" + }, + "visualization": { + "layers": [ + { + "categoryDisplay": "default", + "emptySizeRatio": 0.3, + "layerId": "3e618193-e77a-4e60-82e9-f97556db1c33", + "layerType": "data", + "legendDisplay": "show", + "legendMaxLines": 1, + "legendPosition": "bottom", + "legendSize": "auto", + "metrics": [ + "7c2a5211-247e-49df-8450-cff3afe395a9" + ], + "nestedLegend": false, + "numberDisplay": "percent", + "percentDecimals": 2, + "primaryGroups": [ + "3c069702-bf8b-4b75-be3a-cbadd56cb60f" + ], + "secondaryGroups": [], + "showValuesInLegend": true, + "truncateLegend": true + } + ], + "palette": { + "name": "default", + "type": "palette" + }, + "shape": "pie" + } + }, + "title": "", + "type": "lens", + "visualizationType": "lnsPie" + }, "enhancements": {} }, "gridData": { @@ -125,38 +925,51 @@ "y": 12 }, "panelIndex": "6", - "panelRefName": "panel_6", - "type": "visualization", - "version": "7.3.0" + "title": "Slow logs breakdown [Logs MySQL]", + "type": "lens", + "version": "8.8.0" } ], "timeRestore": false, "title": "[Logs MySQL] Overview", "version": 1 }, - "coreMigrationVersion": "7.14.0", + "coreMigrationVersion": "8.7.0", + "created_at": "2023-07-18T08:39:19.726Z", "id": "mysql-Logs-MySQL-Dashboard", "migrationVersion": { - "dashboard": "7.14.0" + "dashboard": "8.7.0" }, - "namespaces": [ - "default" - ], "references": [ { - "id": "mysql-slowest-queries", - "name": "1:panel_1", - "type": "visualization" + "id": "logs-*", + "name": "1:indexpattern-datasource-layer-10c1edbd-866e-4186-83ac-465865085079", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "1:18d40a87-4926-44bc-b73b-e1e3b82b16c7", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "2:indexpattern-datasource-layer-08427b5d-ebe0-413b-99aa-adacd26642e0", + "type": "index-pattern" }, { - "id": "mysql-Slow-queries-over-time", - "name": "2:panel_2", - "type": "visualization" + "id": "logs-*", + "name": "2:db62e1d5-40a6-46f5-95b5-21ced452e4f3", + "type": "index-pattern" }, { - "id": "mysql-error-logs", - "name": "3:panel_3", - "type": "visualization" + "id": "logs-*", + "name": "3:indexpattern-datasource-layer-636ea26e-2240-4fd9-9c4f-30d2a6680854", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "3:583a31e6-2399-4d1e-b2a6-dc41ec29c736", + "type": "index-pattern" }, { "id": "mysql-Logs-MySQL-error-log", @@ -164,14 +977,24 @@ "type": "search" }, { - "id": "mysql-Error-logs-levels", - "name": "5:panel_5", - "type": "visualization" + "id": "logs-*", + "name": "5:indexpattern-datasource-layer-fa3445d7-f3eb-4b56-bdf1-be99771139f8", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "5:611fea97-3472-4dde-9487-c4b164238815", + "type": "index-pattern" + }, + { + "id": "logs-*", + "name": "6:indexpattern-datasource-layer-3e618193-e77a-4e60-82e9-f97556db1c33", + "type": "index-pattern" }, { - "id": "mysql-Slow-logs-by-count", - "name": "6:panel_6", - "type": "visualization" + "id": "logs-*", + "name": "6:9b1083c0-3720-4dc3-9bfc-74717c28d454", + "type": "index-pattern" } ], "type": "dashboard" diff --git a/packages/mysql/kibana/search/mysql-Logs-MySQL-Slow-log.json b/packages/mysql/kibana/search/mysql-Logs-MySQL-Slow-log.json deleted file mode 100644 index 398979b0fa4d..000000000000 --- a/packages/mysql/kibana/search/mysql-Logs-MySQL-Slow-log.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "attributes": { - "columns": [], - "description": "", - "hits": 0, - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [ - { - "$state": { - "store": "appState" - }, - "meta": { - "alias": null, - "disabled": false, - "indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index", - "key": "data_stream.dataset", - "negate": false, - "params": { - "query": "mysql.slowlog" - }, - "type": "phrase" - }, - "query": { - "match_phrase": { - "data_stream.dataset": "mysql.slowlog" - } - } - } - ], - "highlight": { - "fields": { - "*": {} - }, - "fragment_size": 2147483647, - "post_tags": [ - "@/kibana-highlighted-field@" - ], - "pre_tags": [ - "@kibana-highlighted-field@" - ], - "require_field_match": false - }, - "highlightAll": true, - "indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.index", - "query": { - "language": "kuery", - "query": "" - }, - "version": true - } - }, - "sort": [ - [ - "@timestamp", - "desc" - ] - ], - "title": "Slow logs [Logs MySQL]", - "version": 1 - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-Logs-MySQL-Slow-log", - "migrationVersion": { - "search": "7.9.3" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "logs-*", - "name": "kibanaSavedObjectMeta.searchSourceJSON.index", - "type": "index-pattern" - }, - { - "id": "logs-*", - "name": "kibanaSavedObjectMeta.searchSourceJSON.filter[0].meta.index", - "type": "index-pattern" - } - ], - "type": "search" -} \ No newline at end of file diff --git a/packages/mysql/kibana/search/mysql-Logs-MySQL-error-log.json b/packages/mysql/kibana/search/mysql-Logs-MySQL-error-log.json index d6867cbead6f..ea07af9746ee 100644 --- a/packages/mysql/kibana/search/mysql-Logs-MySQL-error-log.json +++ b/packages/mysql/kibana/search/mysql-Logs-MySQL-error-log.json @@ -62,14 +62,12 @@ "title": "Error logs [Logs MySQL]", "version": 1 }, - "coreMigrationVersion": "7.14.0", + "coreMigrationVersion": "8.7.0", + "created_at": "2023-07-18T08:39:19.726Z", "id": "mysql-Logs-MySQL-error-log", "migrationVersion": { - "search": "7.9.3" + "search": "8.0.0" }, - "namespaces": [ - "default" - ], "references": [ { "id": "logs-*", diff --git a/packages/mysql/kibana/visualization/mysql-Error-logs-levels.json b/packages/mysql/kibana/visualization/mysql-Error-logs-levels.json deleted file mode 100644 index 2786b568276b..000000000000 --- a/packages/mysql/kibana/visualization/mysql-Error-logs-levels.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [] - } - }, - "savedSearchRefName": "search_0", - "title": "Error logs levels breakdown [Logs MySQL]", - "uiStateJSON": { - "vis": { - "colors": { - "ERROR": "#E24D42", - "Note": "#9AC48A", - "Warning": "#F9934E" - } - } - }, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": {}, - "schema": "metric", - "type": "count" - }, - { - "enabled": true, - "id": "2", - "params": { - "field": "log.level", - "order": "desc", - "orderBy": "1", - "size": 5 - }, - "schema": "segment", - "type": "terms" - } - ], - "params": { - "addLegend": true, - "addTooltip": true, - "distinctColors": true, - "isDonut": false, - "legendPosition": "bottom", - "palette": { - "name": "kibana_palette", - "type": "palette" - }, - "shareYAxis": true, - "type": "pie" - }, - "title": "Error logs levels breakdown [Logs MySQL]", - "type": "pie" - } - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-Error-logs-levels", - "migrationVersion": { - "visualization": "7.14.0" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "mysql-Logs-MySQL-error-log", - "name": "search_0", - "type": "search" - } - ], - "type": "visualization" -} \ No newline at end of file diff --git a/packages/mysql/kibana/visualization/mysql-Slow-logs-by-count.json b/packages/mysql/kibana/visualization/mysql-Slow-logs-by-count.json deleted file mode 100644 index 86caf2d3df68..000000000000 --- a/packages/mysql/kibana/visualization/mysql-Slow-logs-by-count.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [] - } - }, - "savedSearchRefName": "search_0", - "title": "Slow logs breakdown [Logs MySQL]", - "uiStateJSON": {}, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": {}, - "schema": "metric", - "type": "count" - }, - { - "enabled": true, - "id": "2", - "params": { - "field": "mysql.slowlog.query", - "order": "desc", - "orderBy": "1", - "size": 5 - }, - "schema": "segment", - "type": "terms" - } - ], - "params": { - "addLegend": true, - "addTooltip": true, - "distinctColors": true, - "isDonut": false, - "legendPosition": "bottom", - "palette": { - "name": "kibana_palette", - "type": "palette" - }, - "shareYAxis": true, - "type": "pie" - }, - "title": "Slow logs breakdown [Logs MySQL]", - "type": "pie" - } - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-Slow-logs-by-count", - "migrationVersion": { - "visualization": "7.14.0" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "mysql-Logs-MySQL-Slow-log", - "name": "search_0", - "type": "search" - } - ], - "type": "visualization" -} \ No newline at end of file diff --git a/packages/mysql/kibana/visualization/mysql-Slow-queries-over-time.json b/packages/mysql/kibana/visualization/mysql-Slow-queries-over-time.json deleted file mode 100644 index 6236bb6ad20a..000000000000 --- a/packages/mysql/kibana/visualization/mysql-Slow-queries-over-time.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [] - } - }, - "savedSearchRefName": "search_0", - "title": "Slow queries over time [Logs MySQL]", - "uiStateJSON": { - "vis": { - "colors": { - "Slow queries": "#EF843C" - } - } - }, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": { - "customLabel": "Slow queries" - }, - "schema": "metric", - "type": "count" - }, - { - "enabled": true, - "id": "2", - "params": { - "extended_bounds": {}, - "field": "@timestamp", - "interval": "auto", - "min_doc_count": 1 - }, - "schema": "segment", - "type": "date_histogram" - } - ], - "params": { - "addLegend": true, - "addTimeMarker": false, - "addTooltip": true, - "categoryAxes": [ - { - "id": "CategoryAxis-1", - "labels": { - "filter": true, - "show": true, - "truncate": 100 - }, - "position": "bottom", - "scale": { - "type": "linear" - }, - "show": true, - "style": {}, - "title": { - "text": "@timestamp per 30 seconds" - }, - "type": "category" - } - ], - "defaultYExtents": false, - "detailedTooltip": true, - "grid": { - "categoryLines": false, - "style": { - "color": "#eee" - } - }, - "isVislibVis": true, - "legendPosition": "right", - "mode": "stacked", - "palette": { - "name": "kibana_palette", - "type": "palette" - }, - "scale": "linear", - "seriesParams": [ - { - "data": { - "id": "1", - "label": "Slow queries" - }, - "drawLinesBetweenPoints": true, - "mode": "stacked", - "show": "true", - "showCircles": true, - "type": "histogram", - "valueAxis": "ValueAxis-1" - } - ], - "setYExtents": false, - "shareYAxis": true, - "times": [], - "type": "histogram", - "valueAxes": [ - { - "id": "ValueAxis-1", - "labels": { - "filter": false, - "rotate": 0, - "show": true, - "truncate": 100 - }, - "name": "LeftAxis-1", - "position": "left", - "scale": { - "mode": "normal", - "type": "linear" - }, - "show": true, - "style": {}, - "title": { - "text": "Slow queries" - }, - "type": "value" - } - ], - "yAxis": {} - }, - "title": "Slow queries over time [Logs MySQL]", - "type": "histogram" - } - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-Slow-queries-over-time", - "migrationVersion": { - "visualization": "7.14.0" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "mysql-Logs-MySQL-Slow-log", - "name": "search_0", - "type": "search" - } - ], - "type": "visualization" -} \ No newline at end of file diff --git a/packages/mysql/kibana/visualization/mysql-error-logs.json b/packages/mysql/kibana/visualization/mysql-error-logs.json deleted file mode 100644 index 99f3fd3deb49..000000000000 --- a/packages/mysql/kibana/visualization/mysql-error-logs.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [] - } - }, - "savedSearchRefName": "search_0", - "title": "Error logs over time [Logs MySQL]", - "uiStateJSON": { - "vis": { - "colors": { - "Count": "#447EBC", - "Error logs": "#1F78C1" - } - } - }, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": { - "customLabel": "Error logs" - }, - "schema": "metric", - "type": "count" - }, - { - "enabled": true, - "id": "2", - "params": { - "extended_bounds": {}, - "field": "@timestamp", - "interval": "auto", - "min_doc_count": 1 - }, - "schema": "segment", - "type": "date_histogram" - } - ], - "params": { - "addLegend": true, - "addTimeMarker": false, - "addTooltip": true, - "categoryAxes": [ - { - "id": "CategoryAxis-1", - "labels": { - "filter": true, - "show": true, - "truncate": 100 - }, - "position": "bottom", - "scale": { - "type": "linear" - }, - "show": true, - "style": {}, - "title": { - "text": "@timestamp per 30 seconds" - }, - "type": "category" - } - ], - "defaultYExtents": false, - "detailedTooltip": true, - "grid": { - "categoryLines": false, - "style": { - "color": "#eee" - } - }, - "isVislibVis": true, - "legendPosition": "right", - "mode": "stacked", - "palette": { - "name": "kibana_palette", - "type": "palette" - }, - "scale": "linear", - "seriesParams": [ - { - "data": { - "id": "1", - "label": "Error logs" - }, - "drawLinesBetweenPoints": true, - "mode": "stacked", - "show": "true", - "showCircles": true, - "type": "histogram", - "valueAxis": "ValueAxis-1" - } - ], - "setYExtents": false, - "shareYAxis": true, - "times": [], - "type": "histogram", - "valueAxes": [ - { - "id": "ValueAxis-1", - "labels": { - "filter": false, - "rotate": 0, - "show": true, - "truncate": 100 - }, - "name": "LeftAxis-1", - "position": "left", - "scale": { - "mode": "normal", - "type": "linear" - }, - "show": true, - "style": {}, - "title": { - "text": "Error logs" - }, - "type": "value" - } - ], - "yAxis": {} - }, - "title": "Error logs over time [Logs MySQL]", - "type": "histogram" - } - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-error-logs", - "migrationVersion": { - "visualization": "7.14.0" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "mysql-Logs-MySQL-error-log", - "name": "search_0", - "type": "search" - } - ], - "type": "visualization" -} \ No newline at end of file diff --git a/packages/mysql/kibana/visualization/mysql-slowest-queries.json b/packages/mysql/kibana/visualization/mysql-slowest-queries.json deleted file mode 100644 index f43b64747ee0..000000000000 --- a/packages/mysql/kibana/visualization/mysql-slowest-queries.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "attributes": { - "description": "", - "kibanaSavedObjectMeta": { - "searchSourceJSON": { - "filter": [] - } - }, - "savedSearchRefName": "search_0", - "title": "Top slowest queries [Logs MySQL]", - "uiStateJSON": { - "vis": { - "params": { - "sort": { - "columnIndex": null, - "direction": null - } - } - } - }, - "version": 1, - "visState": { - "aggs": [ - { - "enabled": true, - "id": "1", - "params": { - "customLabel": "Query time", - "field": "event.duration" - }, - "schema": "metric", - "type": "max" - }, - { - "enabled": true, - "id": "2", - "params": { - "customLabel": "Query", - "field": "mysql.slowlog.query", - "order": "desc", - "orderBy": "1", - "size": 5 - }, - "schema": "bucket", - "type": "terms" - }, - { - "enabled": true, - "id": "3", - "params": { - "customLabel": "User", - "field": "user.name", - "order": "desc", - "orderBy": "1", - "size": 5 - }, - "schema": "bucket", - "type": "terms" - } - ], - "params": { - "perPage": 10, - "showMeticsAtAllLevels": false, - "showPartialRows": false, - "showToolbar": true, - "showTotal": false, - "sort": { - "columnIndex": null, - "direction": null - }, - "totalFunc": "sum" - }, - "title": "Top slowest queries [Logs MySQL]", - "type": "table" - } - }, - "coreMigrationVersion": "7.14.0", - "id": "mysql-slowest-queries", - "migrationVersion": { - "visualization": "7.14.0" - }, - "namespaces": [ - "default" - ], - "references": [ - { - "id": "mysql-Logs-MySQL-Slow-log", - "name": "search_0", - "type": "search" - } - ], - "type": "visualization" -} \ No newline at end of file diff --git a/packages/mysql/manifest.yml b/packages/mysql/manifest.yml index ea324d61096d..a0c1020900b8 100644 --- a/packages/mysql/manifest.yml +++ b/packages/mysql/manifest.yml @@ -1,7 +1,7 @@ format_version: 1.0.0 name: mysql title: MySQL -version: "1.12.4" +version: "1.13.0" license: basic description: Collect logs and metrics from MySQL servers with Elastic Agent. type: integration