Skip to content

Commit a9a23c8

Browse files
[O11y][MongoDB] Migrate Logs Overview dashboard visualizations to lens in kibana 8.1.0 (#5831)
* Migrate dashboard visualizations to lens * Update changelog
1 parent 5b39ce6 commit a9a23c8

File tree

7 files changed

+136
-100
lines changed

7 files changed

+136
-100
lines changed

packages/mongodb/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- version: "1.8.0"
2+
changes:
3+
- description: Migrate `Logs Overview` dashboard visualizations to lens.
4+
type: enhancement
5+
link: https://github.com/elastic/integrations/pull/5831
16
- version: "1.7.0"
27
changes:
38
- description: Migrate `Metrics Overview` dashboard visualizations to lens.
-23.9 KB
Loading

packages/mongodb/kibana/dashboard/mongodb-abcf35b0-0a82-11e8-bffe-ff7d4f68cf94.json

Lines changed: 126 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@
1717
"darkTheme": false
1818
},
1919
"panelsJSON": [
20-
{
21-
"embeddableConfig": {},
22-
"gridData": {
23-
"h": 12,
24-
"i": "1",
25-
"w": 16,
26-
"x": 0,
27-
"y": 0
28-
},
29-
"panelIndex": "1",
30-
"panelRefName": "panel_0",
31-
"version": "7.3.0"
32-
},
3320
{
3421
"embeddableConfig": {
3522
"columns": [
@@ -39,6 +26,7 @@
3926
"mongodb.log.context",
4027
"message"
4128
],
29+
"enhancements": {},
4230
"sort": [
4331
"@timestamp",
4432
"desc"
@@ -52,8 +40,9 @@
5240
"y": 0
5341
},
5442
"panelIndex": "2",
55-
"panelRefName": "panel_1",
56-
"version": "7.3.0"
43+
"panelRefName": "panel_2",
44+
"type": "search",
45+
"version": "8.1.0"
5746
},
5847
{
5948
"embeddableConfig": {
@@ -64,6 +53,7 @@
6453
"mongodb.log.context",
6554
"message"
6655
],
56+
"enhancements": {},
6757
"sort": [
6858
"mongodb.log.timestamp",
6959
"asc"
@@ -77,33 +67,144 @@
7767
"y": 12
7868
},
7969
"panelIndex": "3",
80-
"panelRefName": "panel_2",
81-
"version": "7.3.0"
70+
"panelRefName": "panel_3",
71+
"type": "search",
72+
"version": "8.1.0"
73+
},
74+
{
75+
"embeddableConfig": {
76+
"attributes": {
77+
"references": [
78+
{
79+
"id": "logs-*",
80+
"name": "indexpattern-datasource-current-indexpattern",
81+
"type": "index-pattern"
82+
},
83+
{
84+
"id": "logs-*",
85+
"name": "indexpattern-datasource-layer-1b24032e-d5d1-486a-9722-73ee57f1af16",
86+
"type": "index-pattern"
87+
}
88+
],
89+
"state": {
90+
"datasourceStates": {
91+
"indexpattern": {
92+
"layers": {
93+
"1b24032e-d5d1-486a-9722-73ee57f1af16": {
94+
"columnOrder": [
95+
"a9b00096-3941-408c-86f1-d7f7aeaea864",
96+
"d9fa1057-5a6f-4b9e-a169-c1f15e4a2e1a"
97+
],
98+
"columns": {
99+
"a9b00096-3941-408c-86f1-d7f7aeaea864": {
100+
"customLabel": true,
101+
"dataType": "string",
102+
"isBucketed": true,
103+
"label": "Log severity",
104+
"operationType": "terms",
105+
"params": {
106+
"missingBucket": false,
107+
"orderBy": {
108+
"columnId": "d9fa1057-5a6f-4b9e-a169-c1f15e4a2e1a",
109+
"type": "column"
110+
},
111+
"orderDirection": "desc",
112+
"otherBucket": false,
113+
"size": 5
114+
},
115+
"scale": "ordinal",
116+
"sourceField": "log.level"
117+
},
118+
"d9fa1057-5a6f-4b9e-a169-c1f15e4a2e1a": {
119+
"customLabel": true,
120+
"dataType": "number",
121+
"isBucketed": false,
122+
"label": "Count",
123+
"operationType": "count",
124+
"scale": "ratio",
125+
"sourceField": "___records___"
126+
}
127+
},
128+
"incompleteColumns": {}
129+
}
130+
}
131+
}
132+
},
133+
"filters": [],
134+
"query": {
135+
"language": "kuery",
136+
"query": "log.level: *"
137+
},
138+
"visualization": {
139+
"layers": [
140+
{
141+
"categoryDisplay": "default",
142+
"groups": [
143+
"a9b00096-3941-408c-86f1-d7f7aeaea864"
144+
],
145+
"layerId": "1b24032e-d5d1-486a-9722-73ee57f1af16",
146+
"layerType": "data",
147+
"legendDisplay": "show",
148+
"metric": "d9fa1057-5a6f-4b9e-a169-c1f15e4a2e1a",
149+
"nestedLegend": false,
150+
"numberDisplay": "percent"
151+
}
152+
],
153+
"palette": {
154+
"name": "kibana_palette",
155+
"type": "palette"
156+
},
157+
"shape": "donut"
158+
}
159+
},
160+
"title": "",
161+
"type": "lens",
162+
"visualizationType": "lnsPie"
163+
},
164+
"enhancements": {}
165+
},
166+
"gridData": {
167+
"h": 12,
168+
"i": "c04eb490-6120-49a7-a289-4c330689eb64",
169+
"w": 16,
170+
"x": 0,
171+
"y": 0
172+
},
173+
"panelIndex": "c04eb490-6120-49a7-a289-4c330689eb64",
174+
"title": "Logs Severity",
175+
"type": "lens",
176+
"version": "8.1.0"
82177
}
83178
],
84179
"timeRestore": false,
85180
"title": "[Logs MongoDB] Overview",
86181
"version": 1
87182
},
183+
"coreMigrationVersion": "8.1.0",
88184
"id": "mongodb-abcf35b0-0a82-11e8-bffe-ff7d4f68cf94",
89185
"migrationVersion": {
90-
"dashboard": "7.3.0"
186+
"dashboard": "8.1.0"
91187
},
92188
"references": [
93-
{
94-
"id": "mongodb-0fef5710-0a82-11e8-bffe-ff7d4f68cf94",
95-
"name": "panel_0",
96-
"type": "visualization"
97-
},
98189
{
99190
"id": "mongodb-e49fe000-0a7e-11e8-bffe-ff7d4f68cf94",
100-
"name": "panel_1",
191+
"name": "2:panel_2",
101192
"type": "search"
102193
},
103194
{
104195
"id": "mongodb-bfc96a60-0a80-11e8-bffe-ff7d4f68cf94",
105-
"name": "panel_2",
196+
"name": "3:panel_3",
106197
"type": "search"
198+
},
199+
{
200+
"id": "logs-*",
201+
"name": "c04eb490-6120-49a7-a289-4c330689eb64:indexpattern-datasource-current-indexpattern",
202+
"type": "index-pattern"
203+
},
204+
{
205+
"id": "logs-*",
206+
"name": "c04eb490-6120-49a7-a289-4c330689eb64:indexpattern-datasource-layer-1b24032e-d5d1-486a-9722-73ee57f1af16",
207+
"type": "index-pattern"
107208
}
108209
],
109210
"type": "dashboard"

packages/mongodb/kibana/search/mongodb-bfc96a60-0a80-11e8-bffe-ff7d4f68cf94.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
"title": "All logs",
3131
"version": 1
3232
},
33+
"coreMigrationVersion": "8.1.0",
3334
"id": "mongodb-bfc96a60-0a80-11e8-bffe-ff7d4f68cf94",
3435
"migrationVersion": {
35-
"search": "7.4.0"
36+
"search": "8.0.0"
3637
},
37-
"namespaces": [
38-
"default"
39-
],
4038
"references": [
4139
{
4240
"id": "logs-*",

packages/mongodb/kibana/search/mongodb-e49fe000-0a7e-11e8-bffe-ff7d4f68cf94.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
"title": "Error logs",
3131
"version": 1
3232
},
33+
"coreMigrationVersion": "8.1.0",
3334
"id": "mongodb-e49fe000-0a7e-11e8-bffe-ff7d4f68cf94",
3435
"migrationVersion": {
35-
"search": "7.4.0"
36+
"search": "8.0.0"
3637
},
37-
"namespaces": [
38-
"default"
39-
],
4038
"references": [
4139
{
4240
"id": "logs-*",

packages/mongodb/kibana/visualization/mongodb-0fef5710-0a82-11e8-bffe-ff7d4f68cf94.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

packages/mongodb/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mongodb
22
title: MongoDB
3-
version: 1.7.0
3+
version: 1.8.0
44
description: Collect logs and metrics from MongoDB instances with Elastic Agent.
55
type: integration
66
categories:

0 commit comments

Comments
 (0)