1+ {
2+ "__inputs" : [
3+ {
4+ "name" : " DS_RPI_- ATLAS" ,
5+ "label" : " RPI - Atlas" ,
6+ "description" : " " ,
7+ "type" : " datasource" ,
8+ "pluginId" : " grafana-mongodb-datasource" ,
9+ "pluginName" : " MongoDB"
10+ }
11+ ],
12+ "__requires" : [
13+ {
14+ "type" : " grafana" ,
15+ "id" : " grafana" ,
16+ "name" : " Grafana" ,
17+ "version" : " 5.1.3"
18+ },
19+ {
20+ "type" : " datasource" ,
21+ "id" : " grafana-mongodb-datasource" ,
22+ "name" : " MongoDB" ,
23+ "version" : " 0.8.1"
24+ },
25+ {
26+ "type" : " panel" ,
27+ "id" : " graph" ,
28+ "name" : " Graph" ,
29+ "version" : " 5.0.0"
30+ }
31+ ],
32+ "annotations" : {
33+ "list" : [
34+ {
35+ "builtIn" : 1 ,
36+ "datasource" : " -- Grafana --" ,
37+ "enable" : true ,
38+ "hide" : true ,
39+ "iconColor" : " rgba(0, 211, 255, 1)" ,
40+ "name" : " Annotations & Alerts" ,
41+ "type" : " dashboard"
42+ }
43+ ]
44+ },
45+ "editable" : true ,
46+ "gnetId" : null ,
47+ "graphTooltip" : 0 ,
48+ "id" : null ,
49+ "iteration" : 1535309747386 ,
50+ "links" : [],
51+ "panels" : [
52+ {
53+ "aliasColors" : {},
54+ "bars" : false ,
55+ "dashLength" : 10 ,
56+ "dashes" : false ,
57+ "datasource" : " ${DS_RPI_- ATLAS}" ,
58+ "fill" : 1 ,
59+ "gridPos" : {
60+ "h" : 11 ,
61+ "w" : 24 ,
62+ "x" : 0 ,
63+ "y" : 0
64+ },
65+ "id" : 1 ,
66+ "legend" : {
67+ "avg" : false ,
68+ "current" : false ,
69+ "max" : false ,
70+ "min" : false ,
71+ "show" : true ,
72+ "total" : false ,
73+ "values" : false
74+ },
75+ "lines" : true ,
76+ "linewidth" : 1 ,
77+ "links" : [],
78+ "nullPointMode" : " null" ,
79+ "percentage" : false ,
80+ "pointradius" : 5 ,
81+ "points" : false ,
82+ "renderer" : " flot" ,
83+ "seriesOverrides" : [
84+ {
85+ "alias" : " value"
86+ }
87+ ],
88+ "spaceLength" : 10 ,
89+ "stack" : false ,
90+ "steppedLine" : false ,
91+ "targets" : [
92+ {
93+ "rawQuery" : true ,
94+ "refId" : " B" ,
95+ "target" : " db.sensor_value.aggregate( [ \n { \" $match\" : { \" sensor_type\" : \" $var_sensor_type\" , \" host_name\" : \" $var_host\" , \" sensor_name\" : \" ep\" , \" sensor_type\" : \" temperature\" , \" ts\" : { \" $gte\" : \" $from\" , \" $lt\" : \" $to\" }}},\n { \" $bucketAuto\" : { \" groupBy\" : \" $ts\" , \n \" buckets\" : \" $dateBucketCount\" , \n \" output\" : { \" maxValue\" : { \" $max\" : \" $sensor_value\" } } } }, \n { \" $project\" : { \" name\" : \" Enviro pHAT\" , \" value\" : \" $maxValue\" , \" ts\" : \" $_id.min\" , \" _id\" : 0 } } ] )" ,
96+ "type" : " timeserie"
97+ }
98+ ],
99+ "thresholds" : [],
100+ "timeFrom" : null ,
101+ "timeShift" : null ,
102+ "title" : " Sensor Value" ,
103+ "tooltip" : {
104+ "shared" : true ,
105+ "sort" : 0 ,
106+ "value_type" : " individual"
107+ },
108+ "type" : " graph" ,
109+ "xaxis" : {
110+ "buckets" : null ,
111+ "mode" : " time" ,
112+ "name" : null ,
113+ "show" : true ,
114+ "values" : []
115+ },
116+ "yaxes" : [
117+ {
118+ "format" : " none" ,
119+ "label" : null ,
120+ "logBase" : 1 ,
121+ "max" : null ,
122+ "min" : null ,
123+ "show" : true
124+ },
125+ {
126+ "format" : " short" ,
127+ "label" : null ,
128+ "logBase" : 1 ,
129+ "max" : null ,
130+ "min" : null ,
131+ "show" : true
132+ }
133+ ],
134+ "yaxis" : {
135+ "align" : false ,
136+ "alignLevel" : null
137+ }
138+ },
139+ {
140+ "aliasColors" : {},
141+ "bars" : true ,
142+ "dashLength" : 10 ,
143+ "dashes" : false ,
144+ "datasource" : " ${DS_RPI_- ATLAS}" ,
145+ "fill" : 1 ,
146+ "gridPos" : {
147+ "h" : 7 ,
148+ "w" : 24 ,
149+ "x" : 0 ,
150+ "y" : 11
151+ },
152+ "id" : 2 ,
153+ "legend" : {
154+ "avg" : false ,
155+ "current" : false ,
156+ "max" : false ,
157+ "min" : false ,
158+ "show" : true ,
159+ "total" : false ,
160+ "values" : false
161+ },
162+ "lines" : false ,
163+ "linewidth" : 1 ,
164+ "links" : [],
165+ "nullPointMode" : " null" ,
166+ "percentage" : false ,
167+ "pointradius" : 5 ,
168+ "points" : false ,
169+ "renderer" : " flot" ,
170+ "seriesOverrides" : [
171+ {
172+ "alias" : " DS18B20" ,
173+ "color" : " #eab839"
174+ }
175+ ],
176+ "spaceLength" : 10 ,
177+ "stack" : false ,
178+ "steppedLine" : false ,
179+ "targets" : [
180+ {
181+ "groupByAliases" : [],
182+ "groupByColumns" : [],
183+ "metricAggs" : [
184+ {
185+ "column" : " value" ,
186+ "type" : " avg"
187+ }
188+ ],
189+ "rawQuery" : true ,
190+ "refId" : " A" ,
191+ "resultFormat" : " time_series" ,
192+ "target" : " db.trend_value.aggregate( [ \n { \" $match\" : { \" sensor_type\" : \" $var_sensor_type\" , \" host_name\" : \" $var_host\" , \" sensor_name\" : \" ep\" , \" sensor_type\" : \" temperature\" , \" ts\" : { \" $gte\" : \" $from\" , \" $lt\" : \" $to\" }}},\n { \" $bucketAuto\" : { \" groupBy\" : \" $ts\" , \n \" buckets\" : \" $dateBucketCount\" , \n \" output\" : { \" maxValue\" : { \" $max\" : \" $trend_value\" } } } }, \n { \" $project\" : { \" name\" : \" Enviro pHAT\" , \" value\" : \" $maxValue\" , \" ts\" : \" $_id.min\" , \" _id\" : 0 } } ] )" ,
193+ "timeInterval" : " auto_gf" ,
194+ "type" : " timeserie" ,
195+ "whereClauses" : []
196+ }
197+ ],
198+ "thresholds" : [
199+ {
200+ "colorMode" : " critical" ,
201+ "fill" : true ,
202+ "line" : true ,
203+ "op" : " lt" ,
204+ "value" : 0
205+ },
206+ {
207+ "colorMode" : " ok" ,
208+ "fill" : true ,
209+ "line" : true ,
210+ "op" : " gt" ,
211+ "value" : 0
212+ }
213+ ],
214+ "timeFrom" : null ,
215+ "timeShift" : null ,
216+ "title" : " Trend" ,
217+ "tooltip" : {
218+ "shared" : true ,
219+ "sort" : 0 ,
220+ "value_type" : " individual"
221+ },
222+ "type" : " graph" ,
223+ "xaxis" : {
224+ "buckets" : null ,
225+ "mode" : " time" ,
226+ "name" : null ,
227+ "show" : true ,
228+ "values" : []
229+ },
230+ "yaxes" : [
231+ {
232+ "decimals" : 0 ,
233+ "format" : " short" ,
234+ "label" : null ,
235+ "logBase" : 1 ,
236+ "max" : null ,
237+ "min" : null ,
238+ "show" : true
239+ },
240+ {
241+ "format" : " short" ,
242+ "label" : null ,
243+ "logBase" : 1 ,
244+ "max" : null ,
245+ "min" : null ,
246+ "show" : true
247+ }
248+ ],
249+ "yaxis" : {
250+ "align" : false ,
251+ "alignLevel" : null
252+ }
253+ }
254+ ],
255+ "refresh" : " 5s" ,
256+ "schemaVersion" : 16 ,
257+ "style" : " dark" ,
258+ "tags" : [],
259+ "templating" : {
260+ "list" : [
261+ {
262+ "allValue" : null ,
263+ "current" : {},
264+ "datasource" : " ${DS_RPI_- ATLAS}" ,
265+ "hide" : 0 ,
266+ "includeAll" : false ,
267+ "label" : " host" ,
268+ "multi" : false ,
269+ "name" : " var_host" ,
270+ "options" : [],
271+ "query" : " db.sensor_value.aggregate ( [ { \" $group\" : { \" _id\" : \" $host_name\" } } ] ) " ,
272+ "refresh" : 1 ,
273+ "regex" : " " ,
274+ "sort" : 1 ,
275+ "tagValuesQuery" : " " ,
276+ "tags" : [],
277+ "tagsQuery" : " " ,
278+ "type" : " query" ,
279+ "useTags" : false
280+ },
281+ {
282+ "allValue" : null ,
283+ "current" : {},
284+ "datasource" : " ${DS_RPI_- ATLAS}" ,
285+ "hide" : 0 ,
286+ "includeAll" : false ,
287+ "label" : " sensor" ,
288+ "multi" : false ,
289+ "name" : " var_sensor_type" ,
290+ "options" : [],
291+ "query" : " db.sensor_value.aggregate ( [ { \" $group\" : { \" _id\" : \" $sensor_type\" } } ] )" ,
292+ "refresh" : 1 ,
293+ "regex" : " " ,
294+ "sort" : 1 ,
295+ "tagValuesQuery" : " " ,
296+ "tags" : [],
297+ "tagsQuery" : " " ,
298+ "type" : " query" ,
299+ "useTags" : false
300+ }
301+ ]
302+ },
303+ "time" : {
304+ "from" : " now-15m" ,
305+ "to" : " now"
306+ },
307+ "timepicker" : {
308+ "refresh_intervals" : [
309+ " 5s" ,
310+ " 10s" ,
311+ " 30s" ,
312+ " 1m" ,
313+ " 5m" ,
314+ " 15m" ,
315+ " 30m" ,
316+ " 1h" ,
317+ " 2h" ,
318+ " 1d"
319+ ],
320+ "time_options" : [
321+ " 5m" ,
322+ " 15m" ,
323+ " 1h" ,
324+ " 6h" ,
325+ " 12h" ,
326+ " 24h" ,
327+ " 2d" ,
328+ " 7d" ,
329+ " 30d"
330+ ]
331+ },
332+ "timezone" : " " ,
333+ "title" : " RPI Mongo Bucket - Atlas CS" ,
334+ "uid" : " 000000016" ,
335+ "version" : 9
336+ }
0 commit comments