panel_tests_table.json 13 KB

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