singlestat_test.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  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": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  25. "datasource": "gdev-testdata",
  26. "decimals": null,
  27. "description": "",
  28. "format": "ms",
  29. "gauge": {
  30. "maxValue": 100,
  31. "minValue": 0,
  32. "show": false,
  33. "thresholdLabels": false,
  34. "thresholdMarkers": true
  35. },
  36. "gridPos": {
  37. "h": 7,
  38. "w": 8,
  39. "x": 0,
  40. "y": 0
  41. },
  42. "id": 2,
  43. "interval": null,
  44. "links": [],
  45. "mappingType": 1,
  46. "mappingTypes": [
  47. {
  48. "name": "value to text",
  49. "value": 1
  50. },
  51. {
  52. "name": "range to text",
  53. "value": 2
  54. }
  55. ],
  56. "maxDataPoints": 100,
  57. "nullPointMode": "connected",
  58. "nullText": null,
  59. "postfix": "postfix",
  60. "postfixFontSize": "50%",
  61. "prefix": "prefix",
  62. "prefixFontSize": "50%",
  63. "rangeMaps": [
  64. {
  65. "from": "null",
  66. "text": "N/A",
  67. "to": "null"
  68. }
  69. ],
  70. "sparkline": {
  71. "fillColor": "rgba(31, 118, 189, 0.18)",
  72. "full": false,
  73. "lineColor": "rgb(31, 120, 193)",
  74. "show": true
  75. },
  76. "tableColumn": "",
  77. "targets": [
  78. {
  79. "expr": "",
  80. "format": "time_series",
  81. "intervalFactor": 1,
  82. "refId": "A",
  83. "scenarioId": "csv_metric_values",
  84. "stringInput": "1,2,3,4,5"
  85. }
  86. ],
  87. "thresholds": "5,10",
  88. "title": "prefix 3 ms (green) postfixt + sparkline",
  89. "type": "singlestat",
  90. "valueFontSize": "80%",
  91. "valueMaps": [
  92. {
  93. "op": "=",
  94. "text": "N/A",
  95. "value": "null"
  96. }
  97. ],
  98. "valueName": "avg"
  99. },
  100. {
  101. "cacheTimeout": null,
  102. "colorBackground": false,
  103. "colorPrefix": false,
  104. "colorValue": true,
  105. "colors": ["#d44a3a", "rgba(237, 129, 40, 0.89)", "#299c46"],
  106. "datasource": "gdev-testdata",
  107. "decimals": null,
  108. "description": "",
  109. "format": "ms",
  110. "gauge": {
  111. "maxValue": 100,
  112. "minValue": 0,
  113. "show": false,
  114. "thresholdLabels": false,
  115. "thresholdMarkers": true
  116. },
  117. "gridPos": {
  118. "h": 7,
  119. "w": 8,
  120. "x": 8,
  121. "y": 0
  122. },
  123. "id": 3,
  124. "interval": null,
  125. "links": [],
  126. "mappingType": 1,
  127. "mappingTypes": [
  128. {
  129. "name": "value to text",
  130. "value": 1
  131. },
  132. {
  133. "name": "range to text",
  134. "value": 2
  135. }
  136. ],
  137. "maxDataPoints": 100,
  138. "nullPointMode": "connected",
  139. "nullText": null,
  140. "postfix": "",
  141. "postfixFontSize": "50%",
  142. "prefix": "",
  143. "prefixFontSize": "50%",
  144. "rangeMaps": [
  145. {
  146. "from": "null",
  147. "text": "N/A",
  148. "to": "null"
  149. }
  150. ],
  151. "sparkline": {
  152. "fillColor": "rgba(31, 118, 189, 0.18)",
  153. "full": true,
  154. "lineColor": "rgb(31, 120, 193)",
  155. "show": true
  156. },
  157. "tableColumn": "",
  158. "targets": [
  159. {
  160. "expr": "",
  161. "format": "time_series",
  162. "intervalFactor": 1,
  163. "refId": "A",
  164. "scenarioId": "csv_metric_values",
  165. "stringInput": "1,2,3,4,5"
  166. }
  167. ],
  168. "thresholds": "5,10",
  169. "title": "3 ms (red) + full height sparkline",
  170. "type": "singlestat",
  171. "valueFontSize": "200%",
  172. "valueMaps": [
  173. {
  174. "op": "=",
  175. "text": "N/A",
  176. "value": "null"
  177. }
  178. ],
  179. "valueName": "avg"
  180. },
  181. {
  182. "cacheTimeout": null,
  183. "colorBackground": true,
  184. "colorPrefix": false,
  185. "colorValue": false,
  186. "colors": ["#d44a3a", "rgba(237, 129, 40, 0.89)", "#299c46"],
  187. "datasource": "gdev-testdata",
  188. "decimals": null,
  189. "description": "",
  190. "format": "ms",
  191. "gauge": {
  192. "maxValue": 100,
  193. "minValue": 0,
  194. "show": false,
  195. "thresholdLabels": false,
  196. "thresholdMarkers": true
  197. },
  198. "gridPos": {
  199. "h": 7,
  200. "w": 8,
  201. "x": 16,
  202. "y": 0
  203. },
  204. "id": 4,
  205. "interval": null,
  206. "links": [],
  207. "mappingType": 1,
  208. "mappingTypes": [
  209. {
  210. "name": "value to text",
  211. "value": 1
  212. },
  213. {
  214. "name": "range to text",
  215. "value": 2
  216. }
  217. ],
  218. "maxDataPoints": 100,
  219. "nullPointMode": "connected",
  220. "nullText": null,
  221. "postfix": "",
  222. "postfixFontSize": "50%",
  223. "prefix": "",
  224. "prefixFontSize": "50%",
  225. "rangeMaps": [
  226. {
  227. "from": "null",
  228. "text": "N/A",
  229. "to": "null"
  230. }
  231. ],
  232. "sparkline": {
  233. "fillColor": "rgba(31, 118, 189, 0.18)",
  234. "full": true,
  235. "lineColor": "rgb(31, 120, 193)",
  236. "show": false
  237. },
  238. "tableColumn": "",
  239. "targets": [
  240. {
  241. "expr": "",
  242. "format": "time_series",
  243. "intervalFactor": 1,
  244. "refId": "A",
  245. "scenarioId": "csv_metric_values",
  246. "stringInput": "1,2,3,4,5"
  247. }
  248. ],
  249. "thresholds": "5,10",
  250. "title": "3 ms + red background",
  251. "type": "singlestat",
  252. "valueFontSize": "200%",
  253. "valueMaps": [
  254. {
  255. "op": "=",
  256. "text": "N/A",
  257. "value": "null"
  258. }
  259. ],
  260. "valueName": "avg"
  261. },
  262. {
  263. "cacheTimeout": null,
  264. "colorBackground": false,
  265. "colorPrefix": false,
  266. "colorValue": true,
  267. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  268. "datasource": "gdev-testdata",
  269. "decimals": null,
  270. "description": "",
  271. "format": "ms",
  272. "gauge": {
  273. "maxValue": 150,
  274. "minValue": 0,
  275. "show": true,
  276. "thresholdLabels": true,
  277. "thresholdMarkers": true
  278. },
  279. "gridPos": {
  280. "h": 7,
  281. "w": 8,
  282. "x": 0,
  283. "y": 7
  284. },
  285. "id": 5,
  286. "interval": null,
  287. "links": [],
  288. "mappingType": 1,
  289. "mappingTypes": [
  290. {
  291. "name": "value to text",
  292. "value": 1
  293. },
  294. {
  295. "name": "range to text",
  296. "value": 2
  297. }
  298. ],
  299. "maxDataPoints": 100,
  300. "nullPointMode": "connected",
  301. "nullText": null,
  302. "postfix": "",
  303. "postfixFontSize": "50%",
  304. "prefix": "",
  305. "prefixFontSize": "50%",
  306. "rangeMaps": [
  307. {
  308. "from": "null",
  309. "text": "N/A",
  310. "to": "null"
  311. }
  312. ],
  313. "sparkline": {
  314. "fillColor": "rgba(31, 118, 189, 0.18)",
  315. "full": true,
  316. "lineColor": "rgb(31, 120, 193)",
  317. "show": false
  318. },
  319. "tableColumn": "",
  320. "targets": [
  321. {
  322. "expr": "",
  323. "format": "time_series",
  324. "intervalFactor": 1,
  325. "refId": "A",
  326. "scenarioId": "csv_metric_values",
  327. "stringInput": "10,20,80"
  328. }
  329. ],
  330. "thresholds": "81,90",
  331. "title": "80 ms green gauge, thresholds 81, 90",
  332. "type": "singlestat",
  333. "valueFontSize": "80%",
  334. "valueMaps": [
  335. {
  336. "op": "=",
  337. "text": "N/A",
  338. "value": "null"
  339. }
  340. ],
  341. "valueName": "current"
  342. },
  343. {
  344. "cacheTimeout": null,
  345. "colorBackground": false,
  346. "colorPrefix": false,
  347. "colorValue": true,
  348. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  349. "datasource": "gdev-testdata",
  350. "decimals": null,
  351. "description": "",
  352. "format": "ms",
  353. "gauge": {
  354. "maxValue": 150,
  355. "minValue": 0,
  356. "show": true,
  357. "thresholdLabels": false,
  358. "thresholdMarkers": true
  359. },
  360. "gridPos": {
  361. "h": 7,
  362. "w": 8,
  363. "x": 8,
  364. "y": 7
  365. },
  366. "id": 6,
  367. "interval": null,
  368. "links": [],
  369. "mappingType": 1,
  370. "mappingTypes": [
  371. {
  372. "name": "value to text",
  373. "value": 1
  374. },
  375. {
  376. "name": "range to text",
  377. "value": 2
  378. }
  379. ],
  380. "maxDataPoints": 100,
  381. "nullPointMode": "connected",
  382. "nullText": null,
  383. "postfix": "",
  384. "postfixFontSize": "50%",
  385. "prefix": "",
  386. "prefixFontSize": "50%",
  387. "rangeMaps": [
  388. {
  389. "from": "null",
  390. "text": "N/A",
  391. "to": "null"
  392. }
  393. ],
  394. "sparkline": {
  395. "fillColor": "rgba(31, 118, 189, 0.18)",
  396. "full": true,
  397. "lineColor": "rgb(31, 120, 193)",
  398. "show": false
  399. },
  400. "tableColumn": "",
  401. "targets": [
  402. {
  403. "expr": "",
  404. "format": "time_series",
  405. "intervalFactor": 1,
  406. "refId": "A",
  407. "scenarioId": "csv_metric_values",
  408. "stringInput": "10,20,80"
  409. }
  410. ],
  411. "thresholds": "81,90",
  412. "title": "80 ms green gauge, thresholds 81, 90, no labels",
  413. "type": "singlestat",
  414. "valueFontSize": "80%",
  415. "valueMaps": [
  416. {
  417. "op": "=",
  418. "text": "N/A",
  419. "value": "null"
  420. }
  421. ],
  422. "valueName": "current"
  423. },
  424. {
  425. "cacheTimeout": null,
  426. "colorBackground": false,
  427. "colorPrefix": false,
  428. "colorValue": true,
  429. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  430. "datasource": "gdev-testdata",
  431. "decimals": null,
  432. "description": "",
  433. "format": "ms",
  434. "gauge": {
  435. "maxValue": 150,
  436. "minValue": 0,
  437. "show": true,
  438. "thresholdLabels": false,
  439. "thresholdMarkers": false
  440. },
  441. "gridPos": {
  442. "h": 7,
  443. "w": 8,
  444. "x": 16,
  445. "y": 7
  446. },
  447. "id": 7,
  448. "interval": null,
  449. "links": [],
  450. "mappingType": 1,
  451. "mappingTypes": [
  452. {
  453. "name": "value to text",
  454. "value": 1
  455. },
  456. {
  457. "name": "range to text",
  458. "value": 2
  459. }
  460. ],
  461. "maxDataPoints": 100,
  462. "nullPointMode": "connected",
  463. "nullText": null,
  464. "postfix": "",
  465. "postfixFontSize": "50%",
  466. "prefix": "",
  467. "prefixFontSize": "50%",
  468. "rangeMaps": [
  469. {
  470. "from": "null",
  471. "text": "N/A",
  472. "to": "null"
  473. }
  474. ],
  475. "sparkline": {
  476. "fillColor": "rgba(31, 118, 189, 0.18)",
  477. "full": true,
  478. "lineColor": "rgb(31, 120, 193)",
  479. "show": false
  480. },
  481. "tableColumn": "",
  482. "targets": [
  483. {
  484. "expr": "",
  485. "format": "time_series",
  486. "intervalFactor": 1,
  487. "refId": "A",
  488. "scenarioId": "csv_metric_values",
  489. "stringInput": "10,20,80"
  490. }
  491. ],
  492. "thresholds": "81,90",
  493. "title": "80 ms green gauge, thresholds 81, 90, no markers or labels",
  494. "type": "singlestat",
  495. "valueFontSize": "80%",
  496. "valueMaps": [
  497. {
  498. "op": "=",
  499. "text": "N/A",
  500. "value": "null"
  501. }
  502. ],
  503. "valueName": "current"
  504. },
  505. {
  506. "cacheTimeout": null,
  507. "colorBackground": false,
  508. "colorPrefix": false,
  509. "colorValue": false,
  510. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  511. "datasource": "gdev-testdata",
  512. "decimals": null,
  513. "description": "",
  514. "format": "none",
  515. "gauge": {
  516. "maxValue": 150,
  517. "minValue": 0,
  518. "show": false,
  519. "thresholdLabels": false,
  520. "thresholdMarkers": true
  521. },
  522. "gridPos": {
  523. "h": 4,
  524. "w": 8,
  525. "x": 0,
  526. "y": 14
  527. },
  528. "id": 8,
  529. "interval": null,
  530. "links": [],
  531. "mappingType": 1,
  532. "mappingTypes": [
  533. {
  534. "name": "value to text",
  535. "value": 1
  536. },
  537. {
  538. "name": "range to text",
  539. "value": 2
  540. }
  541. ],
  542. "maxDataPoints": 100,
  543. "nullPointMode": "connected",
  544. "nullText": null,
  545. "options": {},
  546. "postfix": "",
  547. "postfixFontSize": "50%",
  548. "prefix": "",
  549. "prefixFontSize": "50%",
  550. "rangeMaps": [
  551. {
  552. "from": "null",
  553. "text": "N/A",
  554. "to": "null"
  555. }
  556. ],
  557. "sparkline": {
  558. "fillColor": "rgba(31, 118, 189, 0.18)",
  559. "full": true,
  560. "lineColor": "rgb(31, 120, 193)",
  561. "show": false
  562. },
  563. "tableColumn": "Info",
  564. "targets": [
  565. {
  566. "alias": "",
  567. "expr": "",
  568. "format": "time_series",
  569. "intervalFactor": 1,
  570. "refId": "A",
  571. "scenarioId": "random_walk_table",
  572. "stringInput": ""
  573. }
  574. ],
  575. "thresholds": "81,90",
  576. "title": "TableData 'Info' string Column",
  577. "type": "singlestat",
  578. "valueFontSize": "80%",
  579. "valueMaps": [],
  580. "valueName": "current"
  581. },
  582. {
  583. "cacheTimeout": null,
  584. "colorBackground": false,
  585. "colorPrefix": false,
  586. "colorValue": false,
  587. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  588. "datasource": "gdev-testdata",
  589. "decimals": 2,
  590. "description": "",
  591. "format": "celsius",
  592. "gauge": {
  593. "maxValue": 150,
  594. "minValue": 0,
  595. "show": false,
  596. "thresholdLabels": false,
  597. "thresholdMarkers": true
  598. },
  599. "gridPos": {
  600. "h": 4,
  601. "w": 8,
  602. "x": 8,
  603. "y": 14
  604. },
  605. "id": 9,
  606. "interval": null,
  607. "links": [],
  608. "mappingType": 1,
  609. "mappingTypes": [
  610. {
  611. "name": "value to text",
  612. "value": 1
  613. },
  614. {
  615. "name": "range to text",
  616. "value": 2
  617. }
  618. ],
  619. "maxDataPoints": 100,
  620. "nullPointMode": "connected",
  621. "nullText": null,
  622. "options": {},
  623. "postfix": "",
  624. "postfixFontSize": "50%",
  625. "prefix": "",
  626. "prefixFontSize": "50%",
  627. "rangeMaps": [
  628. {
  629. "from": "null",
  630. "text": "N/A",
  631. "to": "null"
  632. }
  633. ],
  634. "sparkline": {
  635. "fillColor": "rgba(31, 118, 189, 0.18)",
  636. "full": true,
  637. "lineColor": "rgb(31, 120, 193)",
  638. "show": false
  639. },
  640. "tableColumn": "Min",
  641. "targets": [
  642. {
  643. "alias": "",
  644. "expr": "",
  645. "format": "time_series",
  646. "intervalFactor": 1,
  647. "refId": "A",
  648. "scenarioId": "random_walk_table",
  649. "stringInput": ""
  650. }
  651. ],
  652. "thresholds": "81,90",
  653. "title": "TableData 'Value' as temp Column",
  654. "type": "singlestat",
  655. "valueFontSize": "80%",
  656. "valueMaps": [],
  657. "valueName": "current"
  658. },
  659. {
  660. "cacheTimeout": null,
  661. "colorBackground": false,
  662. "colorPrefix": false,
  663. "colorValue": false,
  664. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  665. "datasource": "gdev-testdata",
  666. "decimals": null,
  667. "description": "",
  668. "format": "dateTimeFromNow",
  669. "gauge": {
  670. "maxValue": 150,
  671. "minValue": 0,
  672. "show": false,
  673. "thresholdLabels": false,
  674. "thresholdMarkers": true
  675. },
  676. "gridPos": {
  677. "h": 4,
  678. "w": 8,
  679. "x": 16,
  680. "y": 14
  681. },
  682. "id": 10,
  683. "interval": null,
  684. "links": [],
  685. "mappingType": 1,
  686. "mappingTypes": [
  687. {
  688. "name": "value to text",
  689. "value": 1
  690. },
  691. {
  692. "name": "range to text",
  693. "value": 2
  694. }
  695. ],
  696. "maxDataPoints": 100,
  697. "nullPointMode": "connected",
  698. "nullText": null,
  699. "options": {},
  700. "postfix": "",
  701. "postfixFontSize": "50%",
  702. "prefix": "",
  703. "prefixFontSize": "50%",
  704. "rangeMaps": [
  705. {
  706. "from": "null",
  707. "text": "N/A",
  708. "to": "null"
  709. }
  710. ],
  711. "sparkline": {
  712. "fillColor": "rgba(31, 118, 189, 0.18)",
  713. "full": true,
  714. "lineColor": "rgb(31, 120, 193)",
  715. "show": false
  716. },
  717. "tableColumn": "time",
  718. "targets": [
  719. {
  720. "alias": "",
  721. "expr": "",
  722. "format": "time_series",
  723. "intervalFactor": 1,
  724. "refId": "A",
  725. "scenarioId": "random_walk",
  726. "stringInput": ""
  727. }
  728. ],
  729. "thresholds": "81,90",
  730. "title": "last_time display (a few seconds ago)",
  731. "type": "singlestat",
  732. "valueFontSize": "80%",
  733. "valueMaps": [],
  734. "valueName": "last_time"
  735. }
  736. ],
  737. "refresh": false,
  738. "revision": 8,
  739. "schemaVersion": 16,
  740. "style": "dark",
  741. "tags": ["gdev", "panel-tests"],
  742. "templating": {
  743. "list": []
  744. },
  745. "time": {
  746. "from": "now-1h",
  747. "to": "now"
  748. },
  749. "timepicker": {
  750. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
  751. "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
  752. },
  753. "timezone": "browser",
  754. "title": "Panel Tests - Singlestat",
  755. "uid": "singlestat",
  756. "version": 14
  757. }