1+ {
2+ "__inputs" : [
3+ {
4+ "name" : " DS_INFLUXDB" ,
5+ "label" : " InfluxDB" ,
6+ "description" : " " ,
7+ "type" : " datasource" ,
8+ "pluginId" : " influxdb" ,
9+ "pluginName" : " InfluxDB"
10+ }
11+ ],
12+ "__requires" : [
13+ {
14+ "type" : " panel" ,
15+ "id" : " graph" ,
16+ "name" : " Graph" ,
17+ "version" : " "
18+ },
19+ {
20+ "type" : " panel" ,
21+ "id" : " table" ,
22+ "name" : " Table" ,
23+ "version" : " "
24+ },
25+ {
26+ "type" : " grafana" ,
27+ "id" : " grafana" ,
28+ "name" : " Grafana" ,
29+ "version" : " 4.0.2"
30+ },
31+ {
32+ "type" : " datasource" ,
33+ "id" : " influxdb" ,
34+ "name" : " InfluxDB" ,
35+ "version" : " 1.0.0"
36+ }
37+ ],
38+ "id" : null ,
39+ "title" : " Events" ,
40+ "tags" : [],
41+ "style" : " dark" ,
42+ "timezone" : " browser" ,
43+ "editable" : true ,
44+ "sharedCrosshair" : false ,
45+ "hideControls" : false ,
46+ "time" : {
47+ "from" : " now-6h" ,
48+ "to" : " now"
49+ },
50+ "timepicker" : {
51+ "refresh_intervals" : [
52+ " 5s" ,
53+ " 10s" ,
54+ " 30s" ,
55+ " 1m" ,
56+ " 5m" ,
57+ " 15m" ,
58+ " 30m" ,
59+ " 1h" ,
60+ " 2h" ,
61+ " 1d"
62+ ],
63+ "time_options" : [
64+ " 5m" ,
65+ " 15m" ,
66+ " 1h" ,
67+ " 6h" ,
68+ " 12h" ,
69+ " 24h" ,
70+ " 2d" ,
71+ " 7d" ,
72+ " 30d"
73+ ]
74+ },
75+ "templating" : {
76+ "list" : [
77+ {
78+ "allValue" : null ,
79+ "current" : {},
80+ "datasource" : " ${DS_INFLUXDB}" ,
81+ "hide" : 0 ,
82+ "includeAll" : false ,
83+ "label" : " Organization" ,
84+ "multi" : false ,
85+ "name" : " org_name" ,
86+ "options" : [],
87+ "query" : " show tag values WITH key = \" org\" " ,
88+ "refresh" : 1 ,
89+ "regex" : " " ,
90+ "sort" : 0 ,
91+ "tagValuesQuery" : null ,
92+ "tagsQuery" : null ,
93+ "type" : " query" ,
94+ "useTags" : false
95+ },
96+ {
97+ "allValue" : null ,
98+ "current" : {},
99+ "datasource" : " ${DS_INFLUXDB}" ,
100+ "hide" : 0 ,
101+ "includeAll" : false ,
102+ "label" : " Space" ,
103+ "multi" : false ,
104+ "name" : " space_name" ,
105+ "options" : [],
106+ "query" : " show tag values WITH key = \" space\" " ,
107+ "refresh" : 1 ,
108+ "regex" : " " ,
109+ "sort" : 0 ,
110+ "tagValuesQuery" : null ,
111+ "tagsQuery" : null ,
112+ "type" : " query" ,
113+ "useTags" : false
114+ },
115+ {
116+ "allValue" : null ,
117+ "current" : {},
118+ "datasource" : " ${DS_INFLUXDB}" ,
119+ "hide" : 0 ,
120+ "includeAll" : false ,
121+ "label" : " Application" ,
122+ "multi" : false ,
123+ "name" : " app_name" ,
124+ "options" : [],
125+ "query" : " show tag values WITH key = \" application\" " ,
126+ "refresh" : 1 ,
127+ "regex" : " " ,
128+ "sort" : 0 ,
129+ "tagValuesQuery" : null ,
130+ "tagsQuery" : null ,
131+ "type" : " query" ,
132+ "useTags" : false
133+ }
134+ ]
135+ },
136+ "annotations" : {
137+ "list" : []
138+ },
139+ "refresh" : " 30s" ,
140+ "schemaVersion" : 13 ,
141+ "version" : 8 ,
142+ "links" : [
143+ {
144+ "icon" : " external link" ,
145+ "tags" : [],
146+ "type" : " dashboards"
147+ }
148+ ],
149+ "gnetId" : null ,
150+ "rows" : [
151+ {
152+ "title" : " Dashboard Row" ,
153+ "panels" : [
154+ {
155+ "aliasColors" : {},
156+ "bars" : false ,
157+ "datasource" : " ${DS_INFLUXDB}" ,
158+ "editable" : true ,
159+ "error" : false ,
160+ "fill" : 1 ,
161+ "id" : 1 ,
162+ "legend" : {
163+ "alignAsTable" : true ,
164+ "avg" : false ,
165+ "current" : false ,
166+ "max" : false ,
167+ "min" : false ,
168+ "show" : true ,
169+ "total" : false ,
170+ "values" : false
171+ },
172+ "lines" : false ,
173+ "linewidth" : 1 ,
174+ "links" : [],
175+ "nullPointMode" : " connected" ,
176+ "percentage" : false ,
177+ "pointradius" : 4 ,
178+ "points" : true ,
179+ "renderer" : " flot" ,
180+ "seriesOverrides" : [],
181+ "span" : 12 ,
182+ "stack" : false ,
183+ "steppedLine" : false ,
184+ "targets" : [
185+ {
186+ "dsType" : " influxdb" ,
187+ "groupBy" : [
188+ {
189+ "params" : [
190+ " $interval"
191+ ],
192+ "type" : " time"
193+ },
194+ {
195+ "params" : [
196+ " event"
197+ ],
198+ "type" : " tag"
199+ },
200+ {
201+ "params" : [
202+ " actor"
203+ ],
204+ "type" : " tag"
205+ },
206+ {
207+ "params" : [
208+ " null"
209+ ],
210+ "type" : " fill"
211+ }
212+ ],
213+ "measurement" : " app event" ,
214+ "policy" : " default" ,
215+ "refId" : " A" ,
216+ "resultFormat" : " time_series" ,
217+ "select" : [
218+ [
219+ {
220+ "params" : [
221+ " value"
222+ ],
223+ "type" : " field"
224+ },
225+ {
226+ "params" : [],
227+ "type" : " mean"
228+ }
229+ ]
230+ ],
231+ "tags" : [
232+ {
233+ "key" : " state" ,
234+ "operator" : " !=" ,
235+ "value" : " expired"
236+ },
237+ {
238+ "condition" : " AND" ,
239+ "key" : " application" ,
240+ "operator" : " =~" ,
241+ "value" : " /^$app_name$/"
242+ }
243+ ]
244+ }
245+ ],
246+ "thresholds" : [],
247+ "timeFrom" : null ,
248+ "timeShift" : null ,
249+ "title" : " Application events" ,
250+ "tooltip" : {
251+ "msResolution" : false ,
252+ "shared" : true ,
253+ "sort" : 0 ,
254+ "value_type" : " individual"
255+ },
256+ "type" : " graph" ,
257+ "xaxis" : {
258+ "mode" : " time" ,
259+ "name" : null ,
260+ "show" : true ,
261+ "values" : []
262+ },
263+ "yaxes" : [
264+ {
265+ "format" : " short" ,
266+ "label" : null ,
267+ "logBase" : 1 ,
268+ "max" : null ,
269+ "min" : null ,
270+ "show" : true
271+ },
272+ {
273+ "format" : " short" ,
274+ "label" : null ,
275+ "logBase" : 1 ,
276+ "max" : null ,
277+ "min" : null ,
278+ "show" : true
279+ }
280+ ]
281+ }
282+ ],
283+ "showTitle" : false ,
284+ "titleSize" : " h6" ,
285+ "height" : 250 ,
286+ "repeat" : null ,
287+ "repeatRowId" : null ,
288+ "repeatIteration" : null ,
289+ "collapse" : false
290+ },
291+ {
292+ "title" : " New row" ,
293+ "panels" : [
294+ {
295+ "columns" : [],
296+ "editable" : true ,
297+ "error" : false ,
298+ "fontSize" : " 100%" ,
299+ "id" : 2 ,
300+ "pageSize" : null ,
301+ "scroll" : true ,
302+ "showHeader" : true ,
303+ "sort" : {
304+ "col" : 0 ,
305+ "desc" : true
306+ },
307+ "span" : 12 ,
308+ "styles" : [
309+ {
310+ "dateFormat" : " YYYY-MM-DD HH:mm:ss" ,
311+ "pattern" : " Time" ,
312+ "type" : " date"
313+ },
314+ {
315+ "colorMode" : null ,
316+ "colors" : [
317+ " rgba(245, 54, 54, 0.9)" ,
318+ " rgba(237, 129, 40, 0.89)" ,
319+ " rgba(50, 172, 45, 0.97)"
320+ ],
321+ "decimals" : 2 ,
322+ "pattern" : " /.*/" ,
323+ "thresholds" : [],
324+ "type" : " number" ,
325+ "unit" : " short"
326+ }
327+ ],
328+ "targets" : [
329+ {
330+ "alias" : " " ,
331+ "dsType" : " influxdb" ,
332+ "groupBy" : [
333+ {
334+ "params" : [
335+ " event"
336+ ],
337+ "type" : " tag"
338+ },
339+ {
340+ "params" : [
341+ " actor"
342+ ],
343+ "type" : " tag"
344+ },
345+ {
346+ "params" : [
347+ " actor_type"
348+ ],
349+ "type" : " tag"
350+ }
351+ ],
352+ "measurement" : " app event" ,
353+ "policy" : " default" ,
354+ "refId" : " A" ,
355+ "resultFormat" : " table" ,
356+ "select" : [
357+ [
358+ {
359+ "params" : [
360+ " value"
361+ ],
362+ "type" : " field"
363+ }
364+ ]
365+ ],
366+ "tags" : [
367+ {
368+ "key" : " state" ,
369+ "operator" : " !=" ,
370+ "value" : " expired"
371+ },
372+ {
373+ "condition" : " AND" ,
374+ "key" : " application" ,
375+ "operator" : " =~" ,
376+ "value" : " /^$app_name$/"
377+ }
378+ ]
379+ }
380+ ],
381+ "title" : " Panel Title" ,
382+ "transform" : " table" ,
383+ "type" : " table"
384+ }
385+ ],
386+ "showTitle" : false ,
387+ "titleSize" : " h6" ,
388+ "height" : " 500px" ,
389+ "repeat" : null ,
390+ "repeatRowId" : null ,
391+ "repeatIteration" : null ,
392+ "collapse" : false
393+ }
394+ ]
395+ }
0 commit comments