Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[O11y][PostgreSQL] Lens migration for Query Duration Overview visualizations to Kibana version 8.4.0 #5749

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/postgresql/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.13.0"
changes:
- description: Migrate `Query Duration Overview` dashboard visualizations to lens.
type: enhancement
link: https://github.com/elastic/integrations/pull/5749
- version: "1.12.0"
changes:
- description: Migrate `Database Overview` dashboard visualizations to lens.
Expand Down
Binary file modified packages/postgresql/img/logs-slowlog-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,6 @@
"darkTheme": false
},
"panelsJSON": [
{
"embeddableConfig": {},
"gridData": {
"h": 12,
"i": "1",
"w": 24,
"x": 0,
"y": 0
},
"panelIndex": "1",
"panelRefName": "panel_0",
"version": "7.3.0"
},
{
"embeddableConfig": {
"columns": [
Expand All @@ -38,9 +25,12 @@
"event.duration",
"postgresql.log.query"
],
"enhancements": {},
"sort": [
"@timestamp",
"desc"
[
"@timestamp",
"desc"
]
]
},
"gridData": {
Expand All @@ -51,8 +41,9 @@
"y": 0
},
"panelIndex": "2",
"panelRefName": "panel_1",
"version": "7.3.0"
"panelRefName": "panel_2",
"type": "search",
"version": "8.4.0"
},
{
"embeddableConfig": {
Expand All @@ -62,9 +53,12 @@
"event.duration",
"postgresql.log.query"
],
"enhancements": {},
"sort": [
"@timestamp",
"desc"
[
"@timestamp",
"desc"
]
]
},
"gridData": {
Expand All @@ -75,36 +69,164 @@
"y": 12
},
"panelIndex": "3",
"panelRefName": "panel_2",
"version": "7.3.0"
"panelRefName": "panel_3",
"type": "search",
"version": "8.4.0"
},
{
"embeddableConfig": {
"attributes": {
"references": [
{
"id": "logs-*",
"name": "indexpattern-datasource-layer-8bd997c5-e539-4bf3-a16f-4dd771d2447c",
"type": "index-pattern"
}
],
"state": {
"datasourceStates": {
"indexpattern": {
"layers": {
"8bd997c5-e539-4bf3-a16f-4dd771d2447c": {
"columnOrder": [
"f25c7940-de59-4acf-997a-70c39d123ea8",
"7bb419df-01b2-44d8-b9e2-62ec3546b4e6",
"2aa59a6a-3a1d-4ea4-b465-c6df8f043405"
],
"columns": {
"2aa59a6a-3a1d-4ea4-b465-c6df8f043405": {
"customLabel": true,
"dataType": "number",
"isBucketed": false,
"label": "Sum of query duration",
"operationType": "sum",
"params": {
"emptyAsNull": true
},
"scale": "ratio",
"sourceField": "event.duration"
},
"7bb419df-01b2-44d8-b9e2-62ec3546b4e6": {
"customLabel": true,
"dataType": "number",
"isBucketed": false,
"label": "Number of queries",
"operationType": "count",
"params": {
"emptyAsNull": true
},
"scale": "ratio",
"sourceField": "___records___"
},
"f25c7940-de59-4acf-997a-70c39d123ea8": {
"dataType": "date",
"isBucketed": true,
"label": "@timestamp",
"operationType": "date_histogram",
"params": {
"dropPartials": false,
"includeEmptyRows": false,
"interval": "auto"
},
"scale": "interval",
"sourceField": "@timestamp"
}
},
"incompleteColumns": {}
}
}
}
},
"filters": [],
"query": {
"language": "kuery",
"query": "event.duration:*"
},
"visualization": {
"gridlinesVisibilitySettings": {
"x": false,
"yLeft": false,
"yRight": true
},
"layers": [
{
"accessors": [
"7bb419df-01b2-44d8-b9e2-62ec3546b4e6",
"2aa59a6a-3a1d-4ea4-b465-c6df8f043405"
],
"layerId": "8bd997c5-e539-4bf3-a16f-4dd771d2447c",
"layerType": "data",
"position": "top",
"seriesType": "bar",
"showGridlines": false,
"xAccessor": "f25c7940-de59-4acf-997a-70c39d123ea8",
"yConfig": [
{
"axisMode": "left",
"color": "#0a437c",
"forAccessor": "7bb419df-01b2-44d8-b9e2-62ec3546b4e6"
},
{
"axisMode": "left",
"color": "#6ed0e0",
"forAccessor": "2aa59a6a-3a1d-4ea4-b465-c6df8f043405"
}
]
}
],
"legend": {
"isVisible": true,
"position": "right",
"showSingleSeries": true
},
"preferredSeriesType": "bar",
"title": "Empty XY chart",
"valueLabels": "hide"
}
},
"title": "",
"type": "lens",
"visualizationType": "lnsXY"
},
"enhancements": {}
},
"gridData": {
"h": 12,
"i": "16408b1a-8238-46ca-aa8e-67656147812b",
"w": 24,
"x": 0,
"y": 0
},
"panelIndex": "16408b1a-8238-46ca-aa8e-67656147812b",
"title": "Query count and cumulated duration [Logs PostgreSQL]",
"type": "lens",
"version": "8.4.0"
}
],
"timeRestore": false,
"title": "[Logs PostgreSQL] Query Duration Overview",
"version": 1
},
"coreMigrationVersion": "8.4.0",
"id": "postgresql-e4c5f230-87f3-11e7-ad9c-db80de0bf8d3",
"migrationVersion": {
"dashboard": "7.9.3"
"dashboard": "8.4.0"
},
"namespaces": [
"default"
],
"references": [
{
"id": "postgresql-PostgreSQL Query Count and Duration",
"name": "panel_0",
"type": "visualization"
},
{
"id": "postgresql-Slow PostgreSQL Queries",
"name": "panel_1",
"name": "2:panel_2",
"type": "search"
},
{
"id": "postgresql-PostgreSQL Query Durations",
"name": "panel_2",
"name": "3:panel_3",
"type": "search"
},
{
"id": "logs-*",
"name": "16408b1a-8238-46ca-aa8e-67656147812b:indexpattern-datasource-layer-8bd997c5-e539-4bf3-a16f-4dd771d2447c",
"type": "index-pattern"
}
],
"type": "dashboard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@
"title": "Query Durations [Logs PostgreSQL]",
"version": 1
},
"coreMigrationVersion": "8.4.0",
"id": "postgresql-PostgreSQL Query Durations",
"migrationVersion": {
"search": "7.9.3"
"search": "8.0.0"
},
"namespaces": [
"default"
],
"references": [
{
"id": "logs-*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@
"title": "Slow Queries [Logs PostgreSQL]",
"version": 1
},
"coreMigrationVersion": "8.4.0",
"id": "postgresql-Slow PostgreSQL Queries",
"migrationVersion": {
"search": "7.9.3"
"search": "8.0.0"
},
"namespaces": [
"default"
],
"references": [
{
"id": "logs-*",
Expand Down

This file was deleted.

This file was deleted.

Loading