datasource_tests_mssql_fakedata.json 12 KB

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