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" : 1535309830712 ,
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" : 14 ,
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+ "groupByAliases" : [],
94+ "groupByColumns" : [],
95+ "metricAggs" : [
96+ {
97+ "column" : " value" ,
98+ "type" : " avg"
99+ }
100+ ],
101+ "rawQuery" : true ,
102+ "refId" : " A" ,
103+ "resultFormat" : " time_series" ,
104+ "target" : " db.sensor_value.aggregate( [ \n { \" $match\" : { \" sensor_type\" : \" $var_sensor_type\" , \" host_name\" : \" $var_host\" , \" sensor_name\" : \" ep\" , \" ts\" : { \" $gte\" : \" $from\" , \" $lt\" : \" $to\" }}},\n { \" $bucketAuto\" : { \" groupBy\" : \" $ts\" , \n \" buckets\" : \" $dateBucketCount\" , \n \" output\" : { \" maxValue\" : { \" $max\" : \" $sensor_value\" } } } }, \n { \" $project\" : { \" name\" : \" ep\" , \" value\" : \" $maxValue\" , \" ts\" : \" $_id.min\" , \" _id\" : 0 } } ] \n ,{ \" allowDiskUse\" : true } )" ,
105+ "timeInterval" : " auto_gf" ,
106+ "type" : " timeserie" ,
107+ "whereClauses" : []
108+ },
109+ {
110+ "rawQuery" : true ,
111+ "refId" : " B" ,
112+ "target" : " db.sensor_value.aggregate( [ \n { \" $match\" : { \" sensor_type\" : \" $var_sensor_type\" , \" host_name\" : \" $var_host\" , \" sensor_name\" : \" lg-DS18B20\" , \" ts\" : { \" $gte\" : \" $from\" , \" $lt\" : \" $to\" }}},\n { \" $bucketAuto\" : { \" groupBy\" : \" $ts\" , \n \" buckets\" : \" $dateBucketCount\" , \n \" output\" : { \" maxValue\" : { \" $max\" : \" $sensor_value\" } } } }, \n { \" $project\" : { \" name\" : \" DS18B20\" , \" value\" : \" $maxValue\" , \" ts\" : \" $_id.min\" , \" _id\" : 0 } } ] \n ,{ \" allowDiskUse\" : true })" ,
113+ "type" : " timeserie"
114+ }
115+ ],
116+ "thresholds" : [],
117+ "timeFrom" : null ,
118+ "timeShift" : null ,
119+ "title" : " Sensor Value" ,
120+ "tooltip" : {
121+ "shared" : true ,
122+ "sort" : 0 ,
123+ "value_type" : " individual"
124+ },
125+ "type" : " graph" ,
126+ "xaxis" : {
127+ "buckets" : null ,
128+ "mode" : " time" ,
129+ "name" : null ,
130+ "show" : true ,
131+ "values" : []
132+ },
133+ "yaxes" : [
134+ {
135+ "format" : " none" ,
136+ "label" : null ,
137+ "logBase" : 1 ,
138+ "max" : null ,
139+ "min" : null ,
140+ "show" : true
141+ },
142+ {
143+ "format" : " short" ,
144+ "label" : null ,
145+ "logBase" : 1 ,
146+ "max" : null ,
147+ "min" : null ,
148+ "show" : true
149+ }
150+ ],
151+ "yaxis" : {
152+ "align" : false ,
153+ "alignLevel" : null
154+ }
155+ }
156+ ],
157+ "refresh" : false ,
158+ "schemaVersion" : 16 ,
159+ "style" : " dark" ,
160+ "tags" : [],
161+ "templating" : {
162+ "list" : [
163+ {
164+ "allValue" : null ,
165+ "current" : {},
166+ "datasource" : " ${DS_RPI_- ATLAS}" ,
167+ "hide" : 0 ,
168+ "includeAll" : false ,
169+ "label" : " host" ,
170+ "multi" : false ,
171+ "name" : " var_host" ,
172+ "options" : [],
173+ "query" : " db.sensor_value.aggregate ( [ { \" $group\" : { \" _id\" : \" $host_name\" } } ] ) " ,
174+ "refresh" : 1 ,
175+ "regex" : " " ,
176+ "sort" : 1 ,
177+ "tagValuesQuery" : " " ,
178+ "tags" : [],
179+ "tagsQuery" : " " ,
180+ "type" : " query" ,
181+ "useTags" : false
182+ },
183+ {
184+ "allValue" : null ,
185+ "current" : {},
186+ "datasource" : " ${DS_RPI_- ATLAS}" ,
187+ "hide" : 0 ,
188+ "includeAll" : false ,
189+ "label" : " sensor" ,
190+ "multi" : false ,
191+ "name" : " var_sensor_type" ,
192+ "options" : [],
193+ "query" : " db.sensor_value.aggregate ( [ { \" $group\" : { \" _id\" : \" $sensor_type\" } } ] )" ,
194+ "refresh" : 1 ,
195+ "regex" : " " ,
196+ "sort" : 1 ,
197+ "tagValuesQuery" : " " ,
198+ "tags" : [],
199+ "tagsQuery" : " " ,
200+ "type" : " query" ,
201+ "useTags" : false
202+ }
203+ ]
204+ },
205+ "time" : {
206+ "from" : " now/M" ,
207+ "to" : " now"
208+ },
209+ "timepicker" : {
210+ "refresh_intervals" : [
211+ " 5s" ,
212+ " 10s" ,
213+ " 30s" ,
214+ " 1m" ,
215+ " 5m" ,
216+ " 15m" ,
217+ " 30m" ,
218+ " 1h" ,
219+ " 2h" ,
220+ " 1d"
221+ ],
222+ "time_options" : [
223+ " 5m" ,
224+ " 15m" ,
225+ " 1h" ,
226+ " 6h" ,
227+ " 12h" ,
228+ " 24h" ,
229+ " 2d" ,
230+ " 7d" ,
231+ " 30d"
232+ ]
233+ },
234+ "timezone" : " " ,
235+ "title" : " RPI Mongo Bucket - Atlas Temp" ,
236+ "uid" : " 000000015" ,
237+ "version" : 7
238+ }
0 commit comments