panel_tests_singlestat.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  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. "cacheTimeout": null,
  22. "colorBackground": false,
  23. "colorValue": true,
  24. "colors": [
  25. "#299c46",
  26. "rgba(237, 129, 40, 0.89)",
  27. "#d44a3a"
  28. ],
  29. "datasource": "gdev-testdata",
  30. "decimals": null,
  31. "description": "",
  32. "format": "ms",
  33. "gauge": {
  34. "maxValue": 100,
  35. "minValue": 0,
  36. "show": false,
  37. "thresholdLabels": false,
  38. "thresholdMarkers": true
  39. },
  40. "gridPos": {
  41. "h": 7,
  42. "w": 8,
  43. "x": 0,
  44. "y": 0
  45. },
  46. "id": 2,
  47. "interval": null,
  48. "links": [],
  49. "mappingType": 1,
  50. "mappingTypes": [
  51. {
  52. "name": "value to text",
  53. "value": 1
  54. },
  55. {
  56. "name": "range to text",
  57. "value": 2
  58. }
  59. ],
  60. "maxDataPoints": 100,
  61. "nullPointMode": "connected",
  62. "nullText": null,
  63. "postfix": "postfix",
  64. "postfixFontSize": "50%",
  65. "prefix": "prefix",
  66. "prefixFontSize": "50%",
  67. "rangeMaps": [
  68. {
  69. "from": "null",
  70. "text": "N/A",
  71. "to": "null"
  72. }
  73. ],
  74. "sparkline": {
  75. "fillColor": "rgba(31, 118, 189, 0.18)",
  76. "full": false,
  77. "lineColor": "rgb(31, 120, 193)",
  78. "show": true
  79. },
  80. "tableColumn": "",
  81. "targets": [
  82. {
  83. "expr": "",
  84. "format": "time_series",
  85. "intervalFactor": 1,
  86. "refId": "A",
  87. "scenarioId": "csv_metric_values",
  88. "stringInput": "1,2,3,4,5"
  89. }
  90. ],
  91. "thresholds": "5,10",
  92. "title": "prefix 3 ms (green) postfixt + sparkline",
  93. "type": "singlestat",
  94. "valueFontSize": "80%",
  95. "valueMaps": [
  96. {
  97. "op": "=",
  98. "text": "N/A",
  99. "value": "null"
  100. }
  101. ],
  102. "valueName": "avg"
  103. },
  104. {
  105. "cacheTimeout": null,
  106. "colorBackground": false,
  107. "colorPrefix": false,
  108. "colorValue": true,
  109. "colors": [
  110. "#d44a3a",
  111. "rgba(237, 129, 40, 0.89)",
  112. "#299c46"
  113. ],
  114. "datasource": "gdev-testdata",
  115. "decimals": null,
  116. "description": "",
  117. "format": "ms",
  118. "gauge": {
  119. "maxValue": 100,
  120. "minValue": 0,
  121. "show": false,
  122. "thresholdLabels": false,
  123. "thresholdMarkers": true
  124. },
  125. "gridPos": {
  126. "h": 7,
  127. "w": 8,
  128. "x": 8,
  129. "y": 0
  130. },
  131. "id": 3,
  132. "interval": null,
  133. "links": [],
  134. "mappingType": 1,
  135. "mappingTypes": [
  136. {
  137. "name": "value to text",
  138. "value": 1
  139. },
  140. {
  141. "name": "range to text",
  142. "value": 2
  143. }
  144. ],
  145. "maxDataPoints": 100,
  146. "nullPointMode": "connected",
  147. "nullText": null,
  148. "postfix": "",
  149. "postfixFontSize": "50%",
  150. "prefix": "",
  151. "prefixFontSize": "50%",
  152. "rangeMaps": [
  153. {
  154. "from": "null",
  155. "text": "N/A",
  156. "to": "null"
  157. }
  158. ],
  159. "sparkline": {
  160. "fillColor": "rgba(31, 118, 189, 0.18)",
  161. "full": true,
  162. "lineColor": "rgb(31, 120, 193)",
  163. "show": true
  164. },
  165. "tableColumn": "",
  166. "targets": [
  167. {
  168. "expr": "",
  169. "format": "time_series",
  170. "intervalFactor": 1,
  171. "refId": "A",
  172. "scenarioId": "csv_metric_values",
  173. "stringInput": "1,2,3,4,5"
  174. }
  175. ],
  176. "thresholds": "5,10",
  177. "title": "3 ms (red) + full height sparkline",
  178. "type": "singlestat",
  179. "valueFontSize": "200%",
  180. "valueMaps": [
  181. {
  182. "op": "=",
  183. "text": "N/A",
  184. "value": "null"
  185. }
  186. ],
  187. "valueName": "avg"
  188. },
  189. {
  190. "cacheTimeout": null,
  191. "colorBackground": true,
  192. "colorPrefix": false,
  193. "colorValue": false,
  194. "colors": [
  195. "#d44a3a",
  196. "rgba(237, 129, 40, 0.89)",
  197. "#299c46"
  198. ],
  199. "datasource": "gdev-testdata",
  200. "decimals": null,
  201. "description": "",
  202. "format": "ms",
  203. "gauge": {
  204. "maxValue": 100,
  205. "minValue": 0,
  206. "show": false,
  207. "thresholdLabels": false,
  208. "thresholdMarkers": true
  209. },
  210. "gridPos": {
  211. "h": 7,
  212. "w": 8,
  213. "x": 16,
  214. "y": 0
  215. },
  216. "id": 4,
  217. "interval": null,
  218. "links": [],
  219. "mappingType": 1,
  220. "mappingTypes": [
  221. {
  222. "name": "value to text",
  223. "value": 1
  224. },
  225. {
  226. "name": "range to text",
  227. "value": 2
  228. }
  229. ],
  230. "maxDataPoints": 100,
  231. "nullPointMode": "connected",
  232. "nullText": null,
  233. "postfix": "",
  234. "postfixFontSize": "50%",
  235. "prefix": "",
  236. "prefixFontSize": "50%",
  237. "rangeMaps": [
  238. {
  239. "from": "null",
  240. "text": "N/A",
  241. "to": "null"
  242. }
  243. ],
  244. "sparkline": {
  245. "fillColor": "rgba(31, 118, 189, 0.18)",
  246. "full": true,
  247. "lineColor": "rgb(31, 120, 193)",
  248. "show": false
  249. },
  250. "tableColumn": "",
  251. "targets": [
  252. {
  253. "expr": "",
  254. "format": "time_series",
  255. "intervalFactor": 1,
  256. "refId": "A",
  257. "scenarioId": "csv_metric_values",
  258. "stringInput": "1,2,3,4,5"
  259. }
  260. ],
  261. "thresholds": "5,10",
  262. "title": "3 ms + red background",
  263. "type": "singlestat",
  264. "valueFontSize": "200%",
  265. "valueMaps": [
  266. {
  267. "op": "=",
  268. "text": "N/A",
  269. "value": "null"
  270. }
  271. ],
  272. "valueName": "avg"
  273. },
  274. {
  275. "cacheTimeout": null,
  276. "colorBackground": false,
  277. "colorPrefix": false,
  278. "colorValue": true,
  279. "colors": [
  280. "#299c46",
  281. "rgba(237, 129, 40, 0.89)",
  282. "#d44a3a"
  283. ],
  284. "datasource": "gdev-testdata",
  285. "decimals": null,
  286. "description": "",
  287. "format": "ms",
  288. "gauge": {
  289. "maxValue": 150,
  290. "minValue": 0,
  291. "show": true,
  292. "thresholdLabels": true,
  293. "thresholdMarkers": true
  294. },
  295. "gridPos": {
  296. "h": 7,
  297. "w": 8,
  298. "x": 0,
  299. "y": 7
  300. },
  301. "id": 5,
  302. "interval": null,
  303. "links": [],
  304. "mappingType": 1,
  305. "mappingTypes": [
  306. {
  307. "name": "value to text",
  308. "value": 1
  309. },
  310. {
  311. "name": "range to text",
  312. "value": 2
  313. }
  314. ],
  315. "maxDataPoints": 100,
  316. "nullPointMode": "connected",
  317. "nullText": null,
  318. "postfix": "",
  319. "postfixFontSize": "50%",
  320. "prefix": "",
  321. "prefixFontSize": "50%",
  322. "rangeMaps": [
  323. {
  324. "from": "null",
  325. "text": "N/A",
  326. "to": "null"
  327. }
  328. ],
  329. "sparkline": {
  330. "fillColor": "rgba(31, 118, 189, 0.18)",
  331. "full": true,
  332. "lineColor": "rgb(31, 120, 193)",
  333. "show": false
  334. },
  335. "tableColumn": "",
  336. "targets": [
  337. {
  338. "expr": "",
  339. "format": "time_series",
  340. "intervalFactor": 1,
  341. "refId": "A",
  342. "scenarioId": "csv_metric_values",
  343. "stringInput": "10,20,80"
  344. }
  345. ],
  346. "thresholds": "81,90",
  347. "title": "80 ms green gauge, thresholds 81, 90",
  348. "type": "singlestat",
  349. "valueFontSize": "80%",
  350. "valueMaps": [
  351. {
  352. "op": "=",
  353. "text": "N/A",
  354. "value": "null"
  355. }
  356. ],
  357. "valueName": "current"
  358. },
  359. {
  360. "cacheTimeout": null,
  361. "colorBackground": false,
  362. "colorPrefix": false,
  363. "colorValue": true,
  364. "colors": [
  365. "#299c46",
  366. "rgba(237, 129, 40, 0.89)",
  367. "#d44a3a"
  368. ],
  369. "datasource": "gdev-testdata",
  370. "decimals": null,
  371. "description": "",
  372. "format": "ms",
  373. "gauge": {
  374. "maxValue": 150,
  375. "minValue": 0,
  376. "show": true,
  377. "thresholdLabels": false,
  378. "thresholdMarkers": true
  379. },
  380. "gridPos": {
  381. "h": 7,
  382. "w": 8,
  383. "x": 8,
  384. "y": 7
  385. },
  386. "id": 6,
  387. "interval": null,
  388. "links": [],
  389. "mappingType": 1,
  390. "mappingTypes": [
  391. {
  392. "name": "value to text",
  393. "value": 1
  394. },
  395. {
  396. "name": "range to text",
  397. "value": 2
  398. }
  399. ],
  400. "maxDataPoints": 100,
  401. "nullPointMode": "connected",
  402. "nullText": null,
  403. "postfix": "",
  404. "postfixFontSize": "50%",
  405. "prefix": "",
  406. "prefixFontSize": "50%",
  407. "rangeMaps": [
  408. {
  409. "from": "null",
  410. "text": "N/A",
  411. "to": "null"
  412. }
  413. ],
  414. "sparkline": {
  415. "fillColor": "rgba(31, 118, 189, 0.18)",
  416. "full": true,
  417. "lineColor": "rgb(31, 120, 193)",
  418. "show": false
  419. },
  420. "tableColumn": "",
  421. "targets": [
  422. {
  423. "expr": "",
  424. "format": "time_series",
  425. "intervalFactor": 1,
  426. "refId": "A",
  427. "scenarioId": "csv_metric_values",
  428. "stringInput": "10,20,80"
  429. }
  430. ],
  431. "thresholds": "81,90",
  432. "title": "80 ms green gauge, thresholds 81, 90, no labels",
  433. "type": "singlestat",
  434. "valueFontSize": "80%",
  435. "valueMaps": [
  436. {
  437. "op": "=",
  438. "text": "N/A",
  439. "value": "null"
  440. }
  441. ],
  442. "valueName": "current"
  443. },
  444. {
  445. "cacheTimeout": null,
  446. "colorBackground": false,
  447. "colorPrefix": false,
  448. "colorValue": true,
  449. "colors": [
  450. "#299c46",
  451. "rgba(237, 129, 40, 0.89)",
  452. "#d44a3a"
  453. ],
  454. "datasource": "gdev-testdata",
  455. "decimals": null,
  456. "description": "",
  457. "format": "ms",
  458. "gauge": {
  459. "maxValue": 150,
  460. "minValue": 0,
  461. "show": true,
  462. "thresholdLabels": false,
  463. "thresholdMarkers": false
  464. },
  465. "gridPos": {
  466. "h": 7,
  467. "w": 8,
  468. "x": 16,
  469. "y": 7
  470. },
  471. "id": 7,
  472. "interval": null,
  473. "links": [],
  474. "mappingType": 1,
  475. "mappingTypes": [
  476. {
  477. "name": "value to text",
  478. "value": 1
  479. },
  480. {
  481. "name": "range to text",
  482. "value": 2
  483. }
  484. ],
  485. "maxDataPoints": 100,
  486. "nullPointMode": "connected",
  487. "nullText": null,
  488. "postfix": "",
  489. "postfixFontSize": "50%",
  490. "prefix": "",
  491. "prefixFontSize": "50%",
  492. "rangeMaps": [
  493. {
  494. "from": "null",
  495. "text": "N/A",
  496. "to": "null"
  497. }
  498. ],
  499. "sparkline": {
  500. "fillColor": "rgba(31, 118, 189, 0.18)",
  501. "full": true,
  502. "lineColor": "rgb(31, 120, 193)",
  503. "show": false
  504. },
  505. "tableColumn": "",
  506. "targets": [
  507. {
  508. "expr": "",
  509. "format": "time_series",
  510. "intervalFactor": 1,
  511. "refId": "A",
  512. "scenarioId": "csv_metric_values",
  513. "stringInput": "10,20,80"
  514. }
  515. ],
  516. "thresholds": "81,90",
  517. "title": "80 ms green gauge, thresholds 81, 90, no markers or labels",
  518. "type": "singlestat",
  519. "valueFontSize": "80%",
  520. "valueMaps": [
  521. {
  522. "op": "=",
  523. "text": "N/A",
  524. "value": "null"
  525. }
  526. ],
  527. "valueName": "current"
  528. }
  529. ],
  530. "refresh": false,
  531. "revision": 8,
  532. "schemaVersion": 16,
  533. "style": "dark",
  534. "tags": [
  535. "gdev",
  536. "panel-tests"
  537. ],
  538. "templating": {
  539. "list": []
  540. },
  541. "time": {
  542. "from": "now-1h",
  543. "to": "now"
  544. },
  545. "timepicker": {
  546. "refresh_intervals": [
  547. "5s",
  548. "10s",
  549. "30s",
  550. "1m",
  551. "5m",
  552. "15m",
  553. "30m",
  554. "1h",
  555. "2h",
  556. "1d"
  557. ],
  558. "time_options": [
  559. "5m",
  560. "15m",
  561. "1h",
  562. "6h",
  563. "12h",
  564. "24h",
  565. "2d",
  566. "7d",
  567. "30d"
  568. ]
  569. },
  570. "timezone": "browser",
  571. "title": "Panel Tests - Singlestat",
  572. "uid": "singlestat",
  573. "version": 14
  574. }