datasource_tests_mssql_fakedata.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "name": "Annotations & Alerts",
  11. "type": "dashboard"
  12. }
  13. ]
  14. },
  15. "description": "A dashboard visualizing data generated from grafana/fake-data-gen",
  16. "editable": true,
  17. "gnetId": null,
  18. "graphTooltip": 0,
  19. "id": 203,
  20. "iteration": 1532618661457,
  21. "links": [],
  22. "panels": [
  23. {
  24. "aliasColors": {
  25. "total avg": "#6ed0e0"
  26. },
  27. "bars": false,
  28. "dashLength": 10,
  29. "dashes": false,
  30. "datasource": "gdev-mssql",
  31. "fill": 2,
  32. "gridPos": {
  33. "h": 9,
  34. "w": 12,
  35. "x": 0,
  36. "y": 0
  37. },
  38. "id": 2,
  39. "legend": {
  40. "avg": false,
  41. "current": false,
  42. "max": false,
  43. "min": false,
  44. "show": true,
  45. "total": false,
  46. "values": false
  47. },
  48. "lines": true,
  49. "linewidth": 2,
  50. "links": [],
  51. "nullPointMode": "null",
  52. "percentage": false,
  53. "pointradius": 5,
  54. "points": false,
  55. "renderer": "flot",
  56. "seriesOverrides": [
  57. {
  58. "alias": "total avg",
  59. "fill": 0,
  60. "pointradius": 3,
  61. "points": true
  62. }
  63. ],
  64. "spaceLength": 10,
  65. "stack": false,
  66. "steppedLine": false,
  67. "targets": [
  68. {
  69. "alias": "",
  70. "format": "time_series",
  71. "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time,\n avg(value) as value,\n hostname as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'logins.count' AND\n hostname IN($host)\nGROUP BY $__timeGroup(createdAt,'$summarize'), hostname\nORDER BY 1",
  72. "refId": "A"
  73. },
  74. {
  75. "alias": "",
  76. "format": "time_series",
  77. "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time,\n min(value) as value,\n 'total avg' as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'logins.count'\nGROUP BY $__timeGroup(createdAt,'$summarize')\nORDER BY 1",
  78. "refId": "B"
  79. }
  80. ],
  81. "thresholds": [],
  82. "timeFrom": null,
  83. "timeShift": null,
  84. "title": "Average logins / $summarize",
  85. "tooltip": {
  86. "shared": true,
  87. "sort": 0,
  88. "value_type": "individual"
  89. },
  90. "type": "graph",
  91. "xaxis": {
  92. "buckets": null,
  93. "mode": "time",
  94. "name": null,
  95. "show": true,
  96. "values": []
  97. },
  98. "yaxes": [
  99. {
  100. "decimals": null,
  101. "format": "short",
  102. "label": null,
  103. "logBase": 1,
  104. "max": null,
  105. "min": null,
  106. "show": true
  107. },
  108. {
  109. "format": "short",
  110. "label": null,
  111. "logBase": 1,
  112. "max": null,
  113. "min": null,
  114. "show": true
  115. }
  116. ],
  117. "yaxis": {
  118. "align": false,
  119. "alignLevel": null
  120. }
  121. },
  122. {
  123. "aliasColors": {},
  124. "bars": false,
  125. "dashLength": 10,
  126. "dashes": false,
  127. "datasource": "gdev-mssql",
  128. "fill": 2,
  129. "gridPos": {
  130. "h": 18,
  131. "w": 12,
  132. "x": 12,
  133. "y": 0
  134. },
  135. "id": 8,
  136. "legend": {
  137. "avg": false,
  138. "current": false,
  139. "max": false,
  140. "min": false,
  141. "show": true,
  142. "total": false,
  143. "values": false
  144. },
  145. "lines": true,
  146. "linewidth": 2,
  147. "links": [],
  148. "nullPointMode": "null",
  149. "percentage": false,
  150. "pointradius": 5,
  151. "points": false,
  152. "renderer": "flot",
  153. "seriesOverrides": [],
  154. "spaceLength": 10,
  155. "stack": false,
  156. "steppedLine": false,
  157. "targets": [
  158. {
  159. "alias": "",
  160. "format": "time_series",
  161. "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time,\n avg(value) as value,\n 'started' as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'payment.started'\nGROUP BY $__timeGroup(createdAt,'$summarize')\nORDER BY 1",
  162. "refId": "A"
  163. },
  164. {
  165. "alias": "",
  166. "format": "time_series",
  167. "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time,\n avg(value) as value,\n 'ended' as \"metric\"\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'payment.ended'\nGROUP BY $__timeGroup(createdAt,'$summarize')\nORDER BY 1",
  168. "refId": "B"
  169. }
  170. ],
  171. "thresholds": [],
  172. "timeFrom": null,
  173. "timeShift": null,
  174. "title": "Average payments started/ended / $summarize",
  175. "tooltip": {
  176. "shared": true,
  177. "sort": 0,
  178. "value_type": "individual"
  179. },
  180. "type": "graph",
  181. "xaxis": {
  182. "buckets": null,
  183. "mode": "time",
  184. "name": null,
  185. "show": true,
  186. "values": []
  187. },
  188. "yaxes": [
  189. {
  190. "format": "short",
  191. "label": null,
  192. "logBase": 1,
  193. "max": null,
  194. "min": null,
  195. "show": true
  196. },
  197. {
  198. "format": "short",
  199. "label": null,
  200. "logBase": 1,
  201. "max": null,
  202. "min": null,
  203. "show": true
  204. }
  205. ],
  206. "yaxis": {
  207. "align": false,
  208. "alignLevel": null
  209. }
  210. },
  211. {
  212. "aliasColors": {},
  213. "bars": false,
  214. "dashLength": 10,
  215. "dashes": false,
  216. "datasource": "gdev-mssql",
  217. "fill": 2,
  218. "gridPos": {
  219. "h": 9,
  220. "w": 12,
  221. "x": 0,
  222. "y": 9
  223. },
  224. "id": 6,
  225. "legend": {
  226. "avg": false,
  227. "current": false,
  228. "max": false,
  229. "min": false,
  230. "show": true,
  231. "total": false,
  232. "values": false
  233. },
  234. "lines": true,
  235. "linewidth": 2,
  236. "links": [],
  237. "nullPointMode": "null",
  238. "percentage": false,
  239. "pointradius": 5,
  240. "points": false,
  241. "renderer": "flot",
  242. "seriesOverrides": [],
  243. "spaceLength": 10,
  244. "stack": false,
  245. "steppedLine": false,
  246. "targets": [
  247. {
  248. "alias": "",
  249. "format": "time_series",
  250. "rawSql": "SELECT\n $__timeGroup(createdAt,'$summarize') as time,\n max(value) as value,\n hostname as metric\nFROM \n grafana_metric\nWHERE\n $__timeFilter(createdAt) AND\n measurement = 'cpu' AND\n hostname IN($host)\nGROUP BY $__timeGroup(createdAt,'$summarize'), hostname\nORDER BY 1",
  251. "refId": "A"
  252. }
  253. ],
  254. "thresholds": [],
  255. "timeFrom": null,
  256. "timeShift": null,
  257. "title": "Max CPU / $summarize",
  258. "tooltip": {
  259. "shared": true,
  260. "sort": 0,
  261. "value_type": "individual"
  262. },
  263. "type": "graph",
  264. "xaxis": {
  265. "buckets": null,
  266. "mode": "time",
  267. "name": null,
  268. "show": true,
  269. "values": []
  270. },
  271. "yaxes": [
  272. {
  273. "format": "short",
  274. "label": null,
  275. "logBase": 1,
  276. "max": null,
  277. "min": null,
  278. "show": true
  279. },
  280. {
  281. "format": "short",
  282. "label": null,
  283. "logBase": 1,
  284. "max": null,
  285. "min": null,
  286. "show": true
  287. }
  288. ],
  289. "yaxis": {
  290. "align": false,
  291. "alignLevel": null
  292. }
  293. },
  294. {
  295. "columns": [],
  296. "datasource": "gdev-mssql",
  297. "fontSize": "100%",
  298. "gridPos": {
  299. "h": 10,
  300. "w": 24,
  301. "x": 0,
  302. "y": 18
  303. },
  304. "id": 4,
  305. "links": [],
  306. "pageSize": null,
  307. "scroll": true,
  308. "showHeader": true,
  309. "sort": {
  310. "col": 0,
  311. "desc": true
  312. },
  313. "styles": [
  314. {
  315. "alias": "Time",
  316. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  317. "pattern": "Time",
  318. "type": "date"
  319. },
  320. {
  321. "alias": "",
  322. "colorMode": null,
  323. "colors": [
  324. "rgba(245, 54, 54, 0.9)",
  325. "rgba(237, 129, 40, 0.89)",
  326. "rgba(50, 172, 45, 0.97)"
  327. ],
  328. "decimals": 2,
  329. "pattern": "/.*/",
  330. "thresholds": [],
  331. "type": "number",
  332. "unit": "short"
  333. }
  334. ],
  335. "targets": [
  336. {
  337. "alias": "",
  338. "format": "table",
  339. "rawSql": "SELECT createdAt as Time, source, datacenter, hostname, value FROM grafana_metric WHERE hostname in($host)",
  340. "refId": "A"
  341. }
  342. ],
  343. "title": "Values",
  344. "transform": "table",
  345. "type": "table"
  346. }
  347. ],
  348. "schemaVersion": 16,
  349. "style": "dark",
  350. "tags": ["gdev", "mssql", "fake-data-gen"],
  351. "templating": {
  352. "list": [
  353. {
  354. "allValue": null,
  355. "current": {},
  356. "datasource": "gdev-mssql",
  357. "hide": 0,
  358. "includeAll": false,
  359. "label": "Datacenter",
  360. "multi": false,
  361. "name": "datacenter",
  362. "options": [],
  363. "query": "SELECT DISTINCT datacenter FROM grafana_metric",
  364. "refresh": 1,
  365. "regex": "",
  366. "skipUrlSync": false,
  367. "sort": 1,
  368. "tagValuesQuery": "",
  369. "tags": [],
  370. "tagsQuery": "",
  371. "type": "query",
  372. "useTags": false
  373. },
  374. {
  375. "allValue": null,
  376. "current": {},
  377. "datasource": "gdev-mssql",
  378. "hide": 0,
  379. "includeAll": true,
  380. "label": "Hostname",
  381. "multi": true,
  382. "name": "host",
  383. "options": [],
  384. "query": "SELECT DISTINCT hostname FROM grafana_metric WHERE datacenter='$datacenter'",
  385. "refresh": 1,
  386. "regex": "",
  387. "skipUrlSync": false,
  388. "sort": 1,
  389. "tagValuesQuery": "",
  390. "tags": [],
  391. "tagsQuery": "",
  392. "type": "query",
  393. "useTags": false
  394. },
  395. {
  396. "auto": false,
  397. "auto_count": 30,
  398. "auto_min": "10s",
  399. "current": {
  400. "text": "1m",
  401. "value": "1m"
  402. },
  403. "hide": 0,
  404. "label": "Summarize",
  405. "name": "summarize",
  406. "options": [
  407. {
  408. "selected": false,
  409. "text": "1s",
  410. "value": "1s"
  411. },
  412. {
  413. "selected": false,
  414. "text": "10s",
  415. "value": "10s"
  416. },
  417. {
  418. "selected": false,
  419. "text": "30s",
  420. "value": "30s"
  421. },
  422. {
  423. "selected": true,
  424. "text": "1m",
  425. "value": "1m"
  426. },
  427. {
  428. "selected": false,
  429. "text": "5m",
  430. "value": "5m"
  431. },
  432. {
  433. "selected": false,
  434. "text": "10m",
  435. "value": "10m"
  436. },
  437. {
  438. "selected": false,
  439. "text": "30m",
  440. "value": "30m"
  441. },
  442. {
  443. "selected": false,
  444. "text": "1h",
  445. "value": "1h"
  446. },
  447. {
  448. "selected": false,
  449. "text": "6h",
  450. "value": "6h"
  451. },
  452. {
  453. "selected": false,
  454. "text": "12h",
  455. "value": "12h"
  456. },
  457. {
  458. "selected": false,
  459. "text": "1d",
  460. "value": "1d"
  461. },
  462. {
  463. "selected": false,
  464. "text": "7d",
  465. "value": "7d"
  466. },
  467. {
  468. "selected": false,
  469. "text": "14d",
  470. "value": "14d"
  471. },
  472. {
  473. "selected": false,
  474. "text": "30d",
  475. "value": "30d"
  476. }
  477. ],
  478. "query": "1s,10s,30s,1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
  479. "refresh": 2,
  480. "skipUrlSync": false,
  481. "type": "interval"
  482. }
  483. ]
  484. },
  485. "time": {
  486. "from": "now-1h",
  487. "to": "now"
  488. },
  489. "timepicker": {
  490. "refresh_intervals": [
  491. "5s",
  492. "10s",
  493. "30s",
  494. "1m",
  495. "5m",
  496. "15m",
  497. "30m",
  498. "1h",
  499. "2h",
  500. "1d"
  501. ],
  502. "time_options": [
  503. "5m",
  504. "15m",
  505. "1h",
  506. "6h",
  507. "12h",
  508. "24h",
  509. "2d",
  510. "7d",
  511. "30d"
  512. ]
  513. },
  514. "timezone": "",
  515. "title": "Datasource tests - MSSQL",
  516. "uid": "86Js1xRmk",
  517. "version": 1
  518. }