influxdb-templated.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. {
  2. "annotations": {
  3. "enable": false,
  4. "list": [
  5. {
  6. "builtIn": 1,
  7. "datasource": "-- Grafana --",
  8. "enable": true,
  9. "hide": true,
  10. "iconColor": "rgba(0, 211, 255, 1)",
  11. "name": "Annotations & Alerts",
  12. "type": "dashboard"
  13. }
  14. ]
  15. },
  16. "editable": true,
  17. "gnetId": null,
  18. "graphTooltip": 0,
  19. "iteration": 1556259111212,
  20. "links": [],
  21. "panels": [
  22. {
  23. "aliasColors": {},
  24. "annotate": {
  25. "enable": false
  26. },
  27. "bars": false,
  28. "dashLength": 10,
  29. "dashes": false,
  30. "datasource": "gdev-influxdb",
  31. "editable": true,
  32. "error": false,
  33. "fill": 2,
  34. "grid": {},
  35. "gridPos": {
  36. "h": 9,
  37. "w": 24,
  38. "x": 0,
  39. "y": 0
  40. },
  41. "id": 1,
  42. "interval": "$summarize",
  43. "legend": {
  44. "alignAsTable": true,
  45. "avg": false,
  46. "current": false,
  47. "max": false,
  48. "min": false,
  49. "rightSide": true,
  50. "show": true,
  51. "total": false,
  52. "values": false
  53. },
  54. "lines": true,
  55. "linewidth": 1,
  56. "links": [],
  57. "nullPointMode": "connected",
  58. "percentage": false,
  59. "pointradius": 5,
  60. "points": false,
  61. "renderer": "flot",
  62. "resolution": 100,
  63. "scale": 1,
  64. "seriesOverrides": [],
  65. "spaceLength": 10,
  66. "stack": true,
  67. "steppedLine": false,
  68. "targets": [
  69. {
  70. "alias": "$tag_hostname",
  71. "dsType": "influxdb",
  72. "groupBy": [
  73. {
  74. "params": ["auto"],
  75. "type": "time"
  76. },
  77. {
  78. "params": ["hostname"],
  79. "type": "tag"
  80. }
  81. ],
  82. "measurement": "logins.count",
  83. "policy": "default",
  84. "query": "SELECT mean(\"value\") FROM \"logins.count\" WHERE \"hostname\" =~ /$Hostname$/ AND $timeFilter GROUP BY time($interval), \"hostname\"",
  85. "refId": "A",
  86. "resultFormat": "time_series",
  87. "select": [
  88. [
  89. {
  90. "params": ["value"],
  91. "type": "field"
  92. },
  93. {
  94. "params": [],
  95. "type": "mean"
  96. }
  97. ]
  98. ],
  99. "tags": [
  100. {
  101. "key": "datacenter",
  102. "operator": "=~",
  103. "value": "/^$datacenter$/"
  104. },
  105. {
  106. "condition": "AND",
  107. "key": "hostname",
  108. "operator": "=~",
  109. "value": "/^$host$/"
  110. }
  111. ],
  112. "target": ""
  113. }
  114. ],
  115. "thresholds": [],
  116. "timeFrom": null,
  117. "timeRegions": [],
  118. "timeShift": null,
  119. "title": "Selected Servers",
  120. "tooltip": {
  121. "msResolution": false,
  122. "query_as_alias": true,
  123. "shared": false,
  124. "sort": 0,
  125. "value_type": "cumulative"
  126. },
  127. "type": "graph",
  128. "xaxis": {
  129. "buckets": null,
  130. "mode": "time",
  131. "name": null,
  132. "show": true,
  133. "values": []
  134. },
  135. "yaxes": [
  136. {
  137. "format": "short",
  138. "logBase": 1,
  139. "max": null,
  140. "min": null,
  141. "show": true
  142. },
  143. {
  144. "format": "short",
  145. "logBase": 1,
  146. "max": null,
  147. "min": null,
  148. "show": true
  149. }
  150. ],
  151. "yaxis": {
  152. "align": false,
  153. "alignLevel": null
  154. },
  155. "zerofill": true
  156. }
  157. ],
  158. "refresh": false,
  159. "schemaVersion": 18,
  160. "style": "dark",
  161. "tags": ["gdev", "datasource-test", "influxdb"],
  162. "templating": {
  163. "list": [
  164. {
  165. "allValue": null,
  166. "current": {
  167. "text": "America",
  168. "value": "America"
  169. },
  170. "datasource": "gdev-influxdb",
  171. "definition": "",
  172. "hide": 0,
  173. "includeAll": false,
  174. "label": null,
  175. "multi": false,
  176. "name": "datacenter",
  177. "options": [],
  178. "query": "SHOW TAG VALUES WITH KEY = \"datacenter\" ",
  179. "refresh": 1,
  180. "regex": "",
  181. "skipUrlSync": false,
  182. "sort": 0,
  183. "tagValuesQuery": null,
  184. "tags": [],
  185. "tagsQuery": null,
  186. "type": "query",
  187. "useTags": false
  188. },
  189. {
  190. "allFormat": "regex values",
  191. "allValue": null,
  192. "current": {
  193. "text": "All",
  194. "value": "$__all"
  195. },
  196. "datasource": "gdev-influxdb",
  197. "definition": "",
  198. "hide": 0,
  199. "includeAll": true,
  200. "label": null,
  201. "multi": true,
  202. "multiFormat": "regex values",
  203. "name": "host",
  204. "options": [],
  205. "query": "SHOW TAG VALUES WITH KEY = \"hostname\" WHERE \"datacenter\" =~ /^$datacenter$/",
  206. "refresh": 1,
  207. "refresh_on_load": false,
  208. "regex": "",
  209. "skipUrlSync": false,
  210. "sort": 0,
  211. "tagValuesQuery": null,
  212. "tags": [],
  213. "tagsQuery": null,
  214. "type": "query",
  215. "useTags": false
  216. },
  217. {
  218. "allFormat": "glob",
  219. "auto": true,
  220. "auto_count": 5,
  221. "auto_min": "10s",
  222. "current": {
  223. "text": "1m",
  224. "value": "1m"
  225. },
  226. "datasource": null,
  227. "hide": 0,
  228. "includeAll": false,
  229. "label": "",
  230. "name": "summarize",
  231. "options": [
  232. {
  233. "selected": false,
  234. "text": "auto",
  235. "value": "$__auto_interval_summarize"
  236. },
  237. {
  238. "selected": true,
  239. "text": "1m",
  240. "value": "1m"
  241. },
  242. {
  243. "selected": false,
  244. "text": "10m",
  245. "value": "10m"
  246. },
  247. {
  248. "selected": false,
  249. "text": "30m",
  250. "value": "30m"
  251. },
  252. {
  253. "selected": false,
  254. "text": "1h",
  255. "value": "1h"
  256. },
  257. {
  258. "selected": false,
  259. "text": "6h",
  260. "value": "6h"
  261. },
  262. {
  263. "selected": false,
  264. "text": "12h",
  265. "value": "12h"
  266. },
  267. {
  268. "selected": false,
  269. "text": "1d",
  270. "value": "1d"
  271. },
  272. {
  273. "selected": false,
  274. "text": "7d",
  275. "value": "7d"
  276. },
  277. {
  278. "selected": false,
  279. "text": "14d",
  280. "value": "14d"
  281. },
  282. {
  283. "selected": false,
  284. "text": "30d",
  285. "value": "30d"
  286. }
  287. ],
  288. "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
  289. "refresh": 2,
  290. "refresh_on_load": false,
  291. "skipUrlSync": false,
  292. "type": "interval"
  293. },
  294. {
  295. "datasource": "InfluxDB",
  296. "filters": [],
  297. "hide": 0,
  298. "label": null,
  299. "name": "adhoc",
  300. "skipUrlSync": false,
  301. "type": "adhoc"
  302. }
  303. ]
  304. },
  305. "time": {
  306. "from": "now-1h",
  307. "to": "now"
  308. },
  309. "timepicker": {
  310. "collapse": false,
  311. "enable": true,
  312. "notice": false,
  313. "now": true,
  314. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
  315. "status": "Stable",
  316. "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"],
  317. "type": "timepicker"
  318. },
  319. "timezone": "browser",
  320. "title": "Datasource tests - InfluxDB Templated",
  321. "uid": "000000002",
  322. "version": 2
  323. }