table_tests.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. "editable": true,
  16. "gnetId": null,
  17. "graphTooltip": 0,
  18. "links": [],
  19. "panels": [
  20. {
  21. "columns": [],
  22. "datasource": "gdev-testdata",
  23. "fontSize": "100%",
  24. "gridPos": {
  25. "h": 11,
  26. "w": 12,
  27. "x": 0,
  28. "y": 0
  29. },
  30. "id": 3,
  31. "links": [],
  32. "pageSize": 10,
  33. "scroll": true,
  34. "showHeader": true,
  35. "sort": {
  36. "col": 0,
  37. "desc": true
  38. },
  39. "styles": [
  40. {
  41. "alias": "Time",
  42. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  43. "pattern": "Time",
  44. "type": "date"
  45. },
  46. {
  47. "alias": "",
  48. "colorMode": "cell",
  49. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  50. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  51. "decimals": 2,
  52. "mappingType": 1,
  53. "pattern": "ColorCell",
  54. "thresholds": ["5", "10"],
  55. "type": "number",
  56. "unit": "currencyUSD"
  57. },
  58. {
  59. "alias": "",
  60. "colorMode": "value",
  61. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  62. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  63. "decimals": 2,
  64. "mappingType": 1,
  65. "pattern": "ColorValue",
  66. "thresholds": ["5", "10"],
  67. "type": "number",
  68. "unit": "Bps"
  69. },
  70. {
  71. "alias": "",
  72. "colorMode": null,
  73. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  74. "decimals": 2,
  75. "pattern": "/.*/",
  76. "thresholds": [],
  77. "type": "number",
  78. "unit": "short"
  79. }
  80. ],
  81. "targets": [
  82. {
  83. "alias": "server1",
  84. "expr": "",
  85. "format": "table",
  86. "intervalFactor": 1,
  87. "refId": "A",
  88. "scenarioId": "csv_metric_values",
  89. "stringInput": "1,20,90,30,5,0,20,10"
  90. },
  91. {
  92. "alias": "server2",
  93. "refId": "B",
  94. "scenarioId": "csv_metric_values",
  95. "stringInput": "1,20,90,30,5,0"
  96. }
  97. ],
  98. "title": "Time series to rows (2 pages)",
  99. "transform": "timeseries_to_rows",
  100. "type": "table"
  101. },
  102. {
  103. "columns": [
  104. {
  105. "text": "Avg",
  106. "value": "avg"
  107. },
  108. {
  109. "text": "Max",
  110. "value": "max"
  111. },
  112. {
  113. "text": "Current",
  114. "value": "current"
  115. }
  116. ],
  117. "datasource": "gdev-testdata",
  118. "fontSize": "100%",
  119. "gridPos": {
  120. "h": 11,
  121. "w": 12,
  122. "x": 12,
  123. "y": 0
  124. },
  125. "id": 4,
  126. "links": [],
  127. "pageSize": 10,
  128. "scroll": true,
  129. "showHeader": true,
  130. "sort": {
  131. "col": 0,
  132. "desc": true
  133. },
  134. "styles": [
  135. {
  136. "alias": "Time",
  137. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  138. "pattern": "Time",
  139. "type": "date"
  140. },
  141. {
  142. "alias": "",
  143. "colorMode": "cell",
  144. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  145. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  146. "decimals": 2,
  147. "mappingType": 1,
  148. "pattern": "ColorCell",
  149. "thresholds": ["5", "10"],
  150. "type": "number",
  151. "unit": "currencyUSD"
  152. },
  153. {
  154. "alias": "",
  155. "colorMode": "value",
  156. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  157. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  158. "decimals": 2,
  159. "mappingType": 1,
  160. "pattern": "ColorValue",
  161. "thresholds": ["5", "10"],
  162. "type": "number",
  163. "unit": "Bps"
  164. },
  165. {
  166. "alias": "",
  167. "colorMode": null,
  168. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  169. "decimals": 2,
  170. "pattern": "/.*/",
  171. "thresholds": [],
  172. "type": "number",
  173. "unit": "short"
  174. }
  175. ],
  176. "targets": [
  177. {
  178. "alias": "server1",
  179. "expr": "",
  180. "format": "table",
  181. "intervalFactor": 1,
  182. "refId": "A",
  183. "scenarioId": "csv_metric_values",
  184. "stringInput": "1,20,90,30,5,0,20,10"
  185. },
  186. {
  187. "alias": "server2",
  188. "refId": "B",
  189. "scenarioId": "csv_metric_values",
  190. "stringInput": "1,20,90,30,5,0"
  191. }
  192. ],
  193. "title": "Time series aggregations",
  194. "transform": "timeseries_aggregations",
  195. "type": "table"
  196. },
  197. {
  198. "columns": [],
  199. "datasource": "gdev-testdata",
  200. "fontSize": "100%",
  201. "gridPos": {
  202. "h": 7,
  203. "w": 24,
  204. "x": 0,
  205. "y": 11
  206. },
  207. "id": 5,
  208. "links": [],
  209. "pageSize": null,
  210. "scroll": true,
  211. "showHeader": true,
  212. "sort": {
  213. "col": 0,
  214. "desc": true
  215. },
  216. "styles": [
  217. {
  218. "alias": "Time",
  219. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  220. "pattern": "Time",
  221. "type": "date"
  222. },
  223. {
  224. "alias": "",
  225. "colorMode": "row",
  226. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  227. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  228. "decimals": 2,
  229. "mappingType": 1,
  230. "pattern": "/Color/",
  231. "thresholds": ["5", "10"],
  232. "type": "number",
  233. "unit": "currencyUSD"
  234. },
  235. {
  236. "alias": "",
  237. "colorMode": null,
  238. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  239. "decimals": 2,
  240. "pattern": "/.*/",
  241. "thresholds": [],
  242. "type": "number",
  243. "unit": "short"
  244. }
  245. ],
  246. "targets": [
  247. {
  248. "alias": "ColorValue",
  249. "expr": "",
  250. "format": "table",
  251. "intervalFactor": 1,
  252. "refId": "A",
  253. "scenarioId": "csv_metric_values",
  254. "stringInput": "1,20,90,30,5,0,20,10"
  255. }
  256. ],
  257. "title": "color row by threshold",
  258. "transform": "timeseries_to_columns",
  259. "type": "table"
  260. },
  261. {
  262. "columns": [],
  263. "datasource": "gdev-testdata",
  264. "fontSize": "100%",
  265. "gridPos": {
  266. "h": 8,
  267. "w": 24,
  268. "x": 0,
  269. "y": 18
  270. },
  271. "id": 2,
  272. "links": [],
  273. "pageSize": null,
  274. "scroll": true,
  275. "showHeader": true,
  276. "sort": {
  277. "col": 0,
  278. "desc": true
  279. },
  280. "styles": [
  281. {
  282. "alias": "Time",
  283. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  284. "pattern": "Time",
  285. "type": "date"
  286. },
  287. {
  288. "alias": "",
  289. "colorMode": "cell",
  290. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  291. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  292. "decimals": 2,
  293. "mappingType": 1,
  294. "pattern": "ColorCell",
  295. "thresholds": ["5", "10"],
  296. "type": "number",
  297. "unit": "currencyUSD"
  298. },
  299. {
  300. "alias": "",
  301. "colorMode": "value",
  302. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  303. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  304. "decimals": 2,
  305. "mappingType": 1,
  306. "pattern": "ColorValue",
  307. "thresholds": ["5", "10"],
  308. "type": "number",
  309. "unit": "Bps"
  310. },
  311. {
  312. "alias": "",
  313. "colorMode": null,
  314. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  315. "decimals": 2,
  316. "pattern": "/.*/",
  317. "thresholds": [],
  318. "type": "number",
  319. "unit": "short"
  320. }
  321. ],
  322. "targets": [
  323. {
  324. "alias": "ColorValue",
  325. "expr": "",
  326. "format": "table",
  327. "intervalFactor": 1,
  328. "refId": "A",
  329. "scenarioId": "csv_metric_values",
  330. "stringInput": "1,20,90,30,5,0,20,10"
  331. },
  332. {
  333. "alias": "ColorCell",
  334. "refId": "B",
  335. "scenarioId": "csv_metric_values",
  336. "stringInput": "5,1,2,3,4,5,10,20"
  337. }
  338. ],
  339. "title": "Column style thresholds & units",
  340. "transform": "timeseries_to_columns",
  341. "type": "table"
  342. },
  343. {
  344. "columns": [],
  345. "datasource": "gdev-testdata",
  346. "fontSize": "100%",
  347. "gridPos": {
  348. "h": 10,
  349. "w": 24,
  350. "x": 0,
  351. "y": 26
  352. },
  353. "id": 6,
  354. "links": [],
  355. "pageSize": 20,
  356. "scroll": true,
  357. "showHeader": true,
  358. "sort": {
  359. "col": 0,
  360. "desc": true
  361. },
  362. "styles": [
  363. {
  364. "alias": "Time",
  365. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  366. "pattern": "Time",
  367. "type": "date"
  368. },
  369. {
  370. "alias": "",
  371. "colorMode": "cell",
  372. "colors": ["rgba(245, 54, 54, 0.5)", "rgba(237, 129, 40, 0.5)", "rgba(50, 172, 45, 0.5)"],
  373. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  374. "decimals": 2,
  375. "link": true,
  376. "linkTargetBlank": true,
  377. "linkTooltip": "",
  378. "linkUrl": "http://www.grafana.com",
  379. "mappingType": 1,
  380. "pattern": "ColorCell",
  381. "thresholds": ["5", "10"],
  382. "type": "number",
  383. "unit": "currencyUSD"
  384. },
  385. {
  386. "alias": "",
  387. "colorMode": "value",
  388. "colors": ["rgba(245, 54, 54, 0.5)", "rgba(237, 129, 40, 0.5)", "rgba(50, 172, 45, 0.5)"],
  389. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  390. "decimals": 2,
  391. "link": true,
  392. "linkUrl": "http://www.grafana.com",
  393. "mappingType": 1,
  394. "pattern": "ColorValue",
  395. "thresholds": ["5", "10"],
  396. "type": "number",
  397. "unit": "Bps"
  398. },
  399. {
  400. "alias": "",
  401. "colorMode": null,
  402. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  403. "decimals": 2,
  404. "pattern": "/.*/",
  405. "thresholds": [],
  406. "type": "number",
  407. "unit": "short"
  408. }
  409. ],
  410. "targets": [
  411. {
  412. "alias": "ColorValue",
  413. "expr": "",
  414. "format": "table",
  415. "intervalFactor": 1,
  416. "refId": "A",
  417. "scenarioId": "csv_metric_values",
  418. "stringInput": "null,1,20,90,30,5,0,20,10"
  419. },
  420. {
  421. "alias": "ColorCell",
  422. "refId": "B",
  423. "scenarioId": "csv_metric_values",
  424. "stringInput": "null,5,1,2,3,4,5,10,20"
  425. }
  426. ],
  427. "title": "Column style thresholds and links",
  428. "transform": "timeseries_to_columns",
  429. "type": "table"
  430. }
  431. ],
  432. "refresh": false,
  433. "revision": 8,
  434. "schemaVersion": 16,
  435. "style": "dark",
  436. "tags": ["gdev", "panel-tests"],
  437. "templating": {
  438. "list": []
  439. },
  440. "time": {
  441. "from": "now-1h",
  442. "to": "now"
  443. },
  444. "timepicker": {
  445. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
  446. "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
  447. },
  448. "timezone": "browser",
  449. "title": "Panel Tests - Table",
  450. "uid": "pttable",
  451. "version": 2
  452. }