21
21
"id" : 2 ,
22
22
"links" : [],
23
23
"panels" : [
24
+ {
25
+ "datasource" : {
26
+ "type" : " mongodb-grafana-datasource" ,
27
+ "uid" : " fdkn0wi0apkw0c"
28
+ },
29
+ "fieldConfig" : {
30
+ "defaults" : {
31
+ "color" : {
32
+ "mode" : " thresholds"
33
+ },
34
+ "custom" : {
35
+ "hideFrom" : {
36
+ "legend" : false ,
37
+ "tooltip" : false ,
38
+ "viz" : false
39
+ }
40
+ },
41
+ "mappings" : [],
42
+ "thresholds" : {
43
+ "mode" : " absolute" ,
44
+ "steps" : [
45
+ {
46
+ "color" : " green" ,
47
+ "value" : null
48
+ },
49
+ {
50
+ "color" : " red" ,
51
+ "value" : 80
52
+ }
53
+ ]
54
+ }
55
+ },
56
+ "overrides" : []
57
+ },
58
+ "gridPos" : {
59
+ "h" : 13 ,
60
+ "w" : 12 ,
61
+ "x" : 0 ,
62
+ "y" : 0
63
+ },
64
+ "id" : 6 ,
65
+ "options" : {
66
+ "basemap" : {
67
+ "config" : {},
68
+ "name" : " Layer 0" ,
69
+ "type" : " osm-standard"
70
+ },
71
+ "controls" : {
72
+ "mouseWheelZoom" : true ,
73
+ "showAttribution" : true ,
74
+ "showDebug" : false ,
75
+ "showMeasure" : false ,
76
+ "showScale" : false ,
77
+ "showZoom" : true
78
+ },
79
+ "layers" : [
80
+ {
81
+ "config" : {
82
+ "showLegend" : true ,
83
+ "style" : {
84
+ "color" : {
85
+ "fixed" : " dark-green"
86
+ },
87
+ "opacity" : 0.4 ,
88
+ "rotation" : {
89
+ "fixed" : 0 ,
90
+ "max" : 360 ,
91
+ "min" : -360 ,
92
+ "mode" : " mod"
93
+ },
94
+ "size" : {
95
+ "fixed" : 5 ,
96
+ "max" : 15 ,
97
+ "min" : 2
98
+ },
99
+ "symbol" : {
100
+ "fixed" : " img/icons/marker/circle.svg" ,
101
+ "mode" : " fixed"
102
+ },
103
+ "symbolAlign" : {
104
+ "horizontal" : " center" ,
105
+ "vertical" : " center"
106
+ },
107
+ "textConfig" : {
108
+ "fontSize" : 12 ,
109
+ "offsetX" : 0 ,
110
+ "offsetY" : 0 ,
111
+ "textAlign" : " center" ,
112
+ "textBaseline" : " middle"
113
+ }
114
+ }
115
+ },
116
+ "location" : {
117
+ "mode" : " auto"
118
+ },
119
+ "name" : " Layer 1" ,
120
+ "tooltip" : true ,
121
+ "type" : " markers"
122
+ }
123
+ ],
124
+ "tooltip" : {
125
+ "mode" : " details"
126
+ },
127
+ "view" : {
128
+ "allLayers" : true ,
129
+ "id" : " north-america" ,
130
+ "lat" : 40 ,
131
+ "lon" : -100 ,
132
+ "zoom" : 4
133
+ }
134
+ },
135
+ "pluginVersion" : " 10.4.2" ,
136
+ "targets" : [
137
+ {
138
+ "collection" : " theaters" ,
139
+ "datasource" : {
140
+ "type" : " mongodb-grafana-datasource" ,
141
+ "uid" : " fdkn0wi0apkw0c"
142
+ },
143
+ "queryText" : " [\n {\n '$project': {\n 'latitude': {\n '$arrayElemAt': [\n '$location.geo.coordinates', 1\n ]\n }, \n 'longitude': {\n '$arrayElemAt': [\n '$location.geo.coordinates', 0\n ]\n }\n }\n }\n ]" ,
144
+ "queryType" : " table" ,
145
+ "refId" : " A"
146
+ }
147
+ ],
148
+ "title" : " US Theaters" ,
149
+ "transformations" : [
150
+ {
151
+ "id" : " convertFieldType" ,
152
+ "options" : {
153
+ "conversions" : [
154
+ {
155
+ "destinationType" : " number" ,
156
+ "targetField" : " latitude"
157
+ },
158
+ {
159
+ "destinationType" : " number" ,
160
+ "targetField" : " longitude"
161
+ }
162
+ ],
163
+ "fields" : {}
164
+ }
165
+ }
166
+ ],
167
+ "type" : " geomap"
168
+ },
169
+ {
170
+ "datasource" : {
171
+ "type" : " mongodb-grafana-datasource" ,
172
+ "uid" : " fdkn0wi0apkw0c"
173
+ },
174
+ "fieldConfig" : {
175
+ "defaults" : {
176
+ "color" : {
177
+ "mode" : " palette-classic"
178
+ },
179
+ "custom" : {
180
+ "hideFrom" : {
181
+ "legend" : false ,
182
+ "tooltip" : false ,
183
+ "viz" : false
184
+ }
185
+ },
186
+ "mappings" : []
187
+ },
188
+ "overrides" : []
189
+ },
190
+ "gridPos" : {
191
+ "h" : 13 ,
192
+ "w" : 12 ,
193
+ "x" : 12 ,
194
+ "y" : 0
195
+ },
196
+ "id" : 5 ,
197
+ "options" : {
198
+ "displayLabels" : [
199
+ " name"
200
+ ],
201
+ "legend" : {
202
+ "displayMode" : " list" ,
203
+ "placement" : " bottom" ,
204
+ "showLegend" : true
205
+ },
206
+ "pieType" : " pie" ,
207
+ "reduceOptions" : {
208
+ "calcs" : [
209
+ " lastNotNull"
210
+ ],
211
+ "fields" : " " ,
212
+ "values" : true
213
+ },
214
+ "tooltip" : {
215
+ "mode" : " single" ,
216
+ "sort" : " none"
217
+ }
218
+ },
219
+ "pluginVersion" : " 10.4.2" ,
220
+ "targets" : [
221
+ {
222
+ "collection" : " movies" ,
223
+ "datasource" : {
224
+ "type" : " mongodb-grafana-datasource" ,
225
+ "uid" : " fdkn0wi0apkw0c"
226
+ },
227
+ "queryText" : " [\n {\n \" $unwind\" : {\n \" path\" : \" $genres\"\n }\n },\n {\n \" $project\" : {\n \" genres\" : 1\n }\n },\n {\n \" $group\" : {\n \" _id\" : \" $genres\" ,\n \" __value\" : {\n \" $sum\" : 1\n }\n }\n }\n ]" ,
228
+ "queryType" : " table" ,
229
+ "refId" : " A"
230
+ }
231
+ ],
232
+ "title" : " Genres" ,
233
+ "transformations" : [
234
+ {
235
+ "id" : " convertFieldType" ,
236
+ "options" : {
237
+ "conversions" : [
238
+ {
239
+ "destinationType" : " number" ,
240
+ "targetField" : " __value"
241
+ }
242
+ ],
243
+ "fields" : {}
244
+ }
245
+ }
246
+ ],
247
+ "type" : " piechart"
248
+ },
24
249
{
25
250
"datasource" : {
26
251
"type" : " mongodb-grafana-datasource" ,
84
309
"h" : 8 ,
85
310
"w" : 12 ,
86
311
"x" : 0 ,
87
- "y" : 0
312
+ "y" : 13
88
313
},
89
314
"id" : 3 ,
90
315
"options" : {
112
337
"refId" : " A"
113
338
}
114
339
],
115
- "title" : " Panel Title " ,
340
+ "title" : " Released movies in a month " ,
116
341
"type" : " timeseries"
117
342
},
118
343
{
175
400
"overrides" : []
176
401
},
177
402
"gridPos" : {
178
- "h" : 11 ,
403
+ "h" : 8 ,
179
404
"w" : 12 ,
180
405
"x" : 12 ,
181
- "y" : 0
406
+ "y" : 13
182
407
},
183
408
"id" : 2 ,
184
409
"options" : {
219
444
"title" : " Panel Title" ,
220
445
"type" : " timeseries"
221
446
},
222
- {
223
- "datasource" : {
224
- "type" : " mongodb-grafana-datasource" ,
225
- "uid" : " fdkn0wi0apkw0c"
226
- },
227
- "fieldConfig" : {
228
- "defaults" : {
229
- "color" : {
230
- "mode" : " palette-classic"
231
- },
232
- "custom" : {
233
- "hideFrom" : {
234
- "legend" : false ,
235
- "tooltip" : false ,
236
- "viz" : false
237
- }
238
- },
239
- "mappings" : []
240
- },
241
- "overrides" : []
242
- },
243
- "gridPos" : {
244
- "h" : 11 ,
245
- "w" : 12 ,
246
- "x" : 0 ,
247
- "y" : 8
248
- },
249
- "id" : 5 ,
250
- "options" : {
251
- "displayLabels" : [
252
- " name"
253
- ],
254
- "legend" : {
255
- "displayMode" : " list" ,
256
- "placement" : " bottom" ,
257
- "showLegend" : true
258
- },
259
- "pieType" : " pie" ,
260
- "reduceOptions" : {
261
- "calcs" : [
262
- " lastNotNull"
263
- ],
264
- "fields" : " " ,
265
- "values" : true
266
- },
267
- "tooltip" : {
268
- "mode" : " single" ,
269
- "sort" : " none"
270
- }
271
- },
272
- "pluginVersion" : " 10.4.2" ,
273
- "targets" : [
274
- {
275
- "collection" : " movies" ,
276
- "datasource" : {
277
- "type" : " mongodb-grafana-datasource" ,
278
- "uid" : " fdkn0wi0apkw0c"
279
- },
280
- "queryText" : " [\n {\n \" $unwind\" : {\n \" path\" : \" $genres\"\n }\n },\n {\n \" $project\" : {\n \" genres\" : 1\n }\n },\n {\n \" $group\" : {\n \" _id\" : \" $genres\" ,\n \" __value\" : {\n \" $sum\" : 1\n }\n }\n }\n ]" ,
281
- "queryType" : " table" ,
282
- "refId" : " A"
283
- }
284
- ],
285
- "title" : " Panel Title" ,
286
- "transformations" : [
287
- {
288
- "id" : " convertFieldType" ,
289
- "options" : {
290
- "conversions" : [
291
- {
292
- "destinationType" : " number" ,
293
- "targetField" : " __value"
294
- }
295
- ],
296
- "fields" : {}
297
- }
298
- }
299
- ],
300
- "type" : " piechart"
301
- },
302
447
{
303
448
"datasource" : {
304
449
"type" : " mongodb-grafana-datasource" ,
334
479
"overrides" : []
335
480
},
336
481
"gridPos" : {
337
- "h" : 8 ,
338
- "w" : 12 ,
339
- "x" : 12 ,
340
- "y" : 11
482
+ "h" : 9 ,
483
+ "w" : 24 ,
484
+ "x" : 0 ,
485
+ "y" : 21
341
486
},
342
487
"id" : 1 ,
343
488
"options" : {
383
528
"timezone" : " browser" ,
384
529
"title" : " mflix" ,
385
530
"uid" : " bdkpj0btmpr7kc" ,
386
- "version" : 31 ,
531
+ "version" : 33 ,
387
532
"weekStart" : " "
388
533
}
0 commit comments