graph-styles.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. {
  2. "title": "Graph styles",
  3. "services": {
  4. "filter": {
  5. "list": [],
  6. "time": {
  7. "from": "now-15m",
  8. "to": "now"
  9. }
  10. }
  11. },
  12. "rows": [
  13. {
  14. "title": "Simple graph",
  15. "height": "250px",
  16. "editable": true,
  17. "collapse": false,
  18. "collapsable": true,
  19. "panels": [
  20. {
  21. "span": 6,
  22. "editable": true,
  23. "type": "graphite",
  24. "x-axis": true,
  25. "y-axis": true,
  26. "scale": 1,
  27. "y_formats": [
  28. "short",
  29. "short"
  30. ],
  31. "grid": {
  32. "max": null,
  33. "min": 0,
  34. "threshold1": null,
  35. "threshold2": null,
  36. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  37. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  38. },
  39. "resolution": 100,
  40. "lines": true,
  41. "fill": 0,
  42. "linewidth": 1,
  43. "points": false,
  44. "pointradius": 5,
  45. "bars": false,
  46. "stack": false,
  47. "spyable": true,
  48. "options": false,
  49. "legend": {
  50. "show": true,
  51. "values": true,
  52. "min": false,
  53. "max": false,
  54. "current": false,
  55. "total": false,
  56. "avg": false
  57. },
  58. "interactive": true,
  59. "legend_counts": true,
  60. "timezone": "browser",
  61. "percentage": false,
  62. "zerofill": true,
  63. "nullPointMode": "connected",
  64. "steppedLine": false,
  65. "tooltip": {
  66. "value_type": "cumulative",
  67. "query_as_alias": true
  68. },
  69. "targets": [
  70. {
  71. "target": "aliasByNode(scaleToSeconds(apps.backend.*.counters.requests.count,1),2)"
  72. }
  73. ],
  74. "aliasColors": {
  75. "web_server_04": "#E24D42",
  76. "web_server_03": "#508642",
  77. "web_server_02": "#EAB839",
  78. "web_server_01": "#EF843C"
  79. },
  80. "aliasYAxis": {},
  81. "title": "Simple graph",
  82. "datasource": null,
  83. "renderer": "flot",
  84. "annotate": {
  85. "enable": false
  86. }
  87. },
  88. {
  89. "error": false,
  90. "span": 6,
  91. "editable": true,
  92. "type": "text",
  93. "loadingEditor": false,
  94. "mode": "markdown",
  95. "content": "#### Simple graph\n- Click on the title and select edit to open edit mode\n- The display styles tab allows you change line width, fill, stacking, and more\n- You can change a series color by clicking the colored line in the legend ",
  96. "style": {},
  97. "title": "Description"
  98. }
  99. ],
  100. "notice": false
  101. },
  102. {
  103. "title": "Stacked Graph",
  104. "height": "250px",
  105. "editable": true,
  106. "collapse": false,
  107. "collapsable": true,
  108. "panels": [
  109. {
  110. "span": 6,
  111. "editable": true,
  112. "type": "graphite",
  113. "x-axis": true,
  114. "y-axis": true,
  115. "scale": 1,
  116. "y_formats": [
  117. "short",
  118. "short"
  119. ],
  120. "grid": {
  121. "max": null,
  122. "min": 0,
  123. "threshold1": null,
  124. "threshold2": null,
  125. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  126. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  127. },
  128. "resolution": 100,
  129. "lines": true,
  130. "fill": 2,
  131. "linewidth": 2,
  132. "points": false,
  133. "pointradius": 5,
  134. "bars": false,
  135. "stack": true,
  136. "spyable": true,
  137. "options": false,
  138. "legend": {
  139. "show": true,
  140. "values": true,
  141. "min": false,
  142. "max": false,
  143. "current": false,
  144. "total": false,
  145. "avg": true
  146. },
  147. "interactive": true,
  148. "legend_counts": true,
  149. "timezone": "browser",
  150. "percentage": false,
  151. "zerofill": true,
  152. "nullPointMode": "connected",
  153. "steppedLine": false,
  154. "tooltip": {
  155. "value_type": "cumulative",
  156. "query_as_alias": true
  157. },
  158. "targets": [
  159. {
  160. "target": "aliasByNode(scaleToSeconds(apps.fakesite.*.counters.requests.count,1),2)"
  161. }
  162. ],
  163. "aliasColors": {
  164. "web_server_04": "#E24D42",
  165. "web_server_03": "#EF843C",
  166. "web_server_02": "#EAB839",
  167. "web_server_01": "#F2C96D"
  168. },
  169. "aliasYAxis": {},
  170. "title": "Stacked lines",
  171. "datasource": null,
  172. "renderer": "flot",
  173. "annotate": {
  174. "enable": false
  175. }
  176. },
  177. {
  178. "error": false,
  179. "span": 6,
  180. "editable": true,
  181. "type": "text",
  182. "loadingEditor": false,
  183. "mode": "markdown",
  184. "content": "#### Stacked graph\n- This graph shows stacked series, with area fill and 2px line width\n- We have also added legend values. These can be enabled in the Grid & Axes tab in edit mode. \n- Legend values can be Min, Max, Total, Current and Average",
  185. "style": {},
  186. "title": "Description"
  187. }
  188. ],
  189. "notice": false
  190. },
  191. {
  192. "title": "Staircase line",
  193. "height": "250px",
  194. "editable": true,
  195. "collapse": false,
  196. "collapsable": true,
  197. "panels": [
  198. {
  199. "span": 6,
  200. "editable": true,
  201. "type": "graphite",
  202. "x-axis": true,
  203. "y-axis": true,
  204. "scale": 1,
  205. "y_formats": [
  206. "ms",
  207. "short"
  208. ],
  209. "grid": {
  210. "max": null,
  211. "min": 0,
  212. "threshold1": null,
  213. "threshold2": null,
  214. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  215. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  216. },
  217. "resolution": 100,
  218. "lines": true,
  219. "fill": 1,
  220. "linewidth": 2,
  221. "points": false,
  222. "pointradius": 5,
  223. "bars": false,
  224. "stack": true,
  225. "spyable": true,
  226. "options": false,
  227. "legend": {
  228. "show": true,
  229. "values": true,
  230. "min": false,
  231. "max": false,
  232. "current": false,
  233. "total": false,
  234. "avg": true
  235. },
  236. "interactive": true,
  237. "legend_counts": true,
  238. "timezone": "browser",
  239. "percentage": false,
  240. "zerofill": true,
  241. "nullPointMode": "connected",
  242. "steppedLine": true,
  243. "tooltip": {
  244. "value_type": "cumulative",
  245. "query_as_alias": true
  246. },
  247. "targets": [
  248. {
  249. "target": "aliasByNode(statsd.fakesite.timers.ads_timer.upper_90,4)"
  250. },
  251. {
  252. "target": "aliasByNode(statsd.fakesite.timers.ads_timer.upper_90,4)"
  253. }
  254. ],
  255. "aliasColors": {
  256. "upper_75": "#EAB839",
  257. "upper_50": "#7EB26D",
  258. "upper_25": "#BA43A9"
  259. },
  260. "aliasYAxis": {},
  261. "title": "Staircase line",
  262. "datasource": null,
  263. "renderer": "flot",
  264. "annotate": {
  265. "enable": false
  266. }
  267. },
  268. {
  269. "error": false,
  270. "span": 6,
  271. "editable": true,
  272. "type": "text",
  273. "loadingEditor": false,
  274. "mode": "markdown",
  275. "content": "#### Staircase & Y-Axis format\n- In display styles tab you can switch to staircase line \n- In Axes & Grid tab you can change to different Y units & formats.\n",
  276. "style": {},
  277. "title": "Description"
  278. }
  279. ],
  280. "notice": false
  281. },
  282. {
  283. "title": "Right Y-Axis",
  284. "height": "300px",
  285. "editable": true,
  286. "collapse": false,
  287. "collapsable": true,
  288. "panels": [
  289. {
  290. "span": 6,
  291. "editable": true,
  292. "type": "graphite",
  293. "x-axis": true,
  294. "y-axis": true,
  295. "scale": 1,
  296. "y_formats": [
  297. "bytes",
  298. "none"
  299. ],
  300. "grid": {
  301. "max": null,
  302. "min": 0,
  303. "threshold1": null,
  304. "threshold2": null,
  305. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  306. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  307. },
  308. "resolution": 100,
  309. "lines": true,
  310. "fill": 0,
  311. "linewidth": 2,
  312. "points": false,
  313. "pointradius": 5,
  314. "bars": false,
  315. "stack": false,
  316. "spyable": true,
  317. "options": false,
  318. "legend": {
  319. "show": true,
  320. "values": true,
  321. "min": true,
  322. "max": false,
  323. "current": true,
  324. "total": false,
  325. "avg": false
  326. },
  327. "interactive": true,
  328. "legend_counts": true,
  329. "timezone": "browser",
  330. "percentage": false,
  331. "zerofill": true,
  332. "nullPointMode": "connected",
  333. "steppedLine": false,
  334. "tooltip": {
  335. "value_type": "cumulative",
  336. "query_as_alias": true
  337. },
  338. "targets": [
  339. {
  340. "target": "alias(scale(scaleToSeconds(apps.fakesite.web_server_01.counters.requests.count,1),1000000),'memory')"
  341. },
  342. {
  343. "target": "alias(scaleToSeconds(apps.fakesite.web_server_02.counters.requests.count,1),'cpu')"
  344. }
  345. ],
  346. "aliasColors": {
  347. "cpu": "#E24D42"
  348. },
  349. "aliasYAxis": {
  350. "cpu": 2
  351. },
  352. "title": "Memory / CPU",
  353. "datasource": null,
  354. "renderer": "flot",
  355. "annotate": {
  356. "enable": false
  357. }
  358. },
  359. {
  360. "error": false,
  361. "span": 6,
  362. "editable": true,
  363. "type": "text",
  364. "loadingEditor": false,
  365. "mode": "markdown",
  366. "content": "#### Second Y-Axis\n- Click on the series legend color line to open the color selector\n- In the series color selector popup you can also move the series to the Right-Y axis\n- Multiple Y-Axis are great for showing to related series that have different magnitudes ",
  367. "style": {},
  368. "title": "Description"
  369. }
  370. ],
  371. "notice": false
  372. },
  373. {
  374. "title": "test",
  375. "height": "250px",
  376. "editable": true,
  377. "collapse": false,
  378. "collapsable": true,
  379. "panels": [
  380. {
  381. "span": 6,
  382. "editable": true,
  383. "type": "graphite",
  384. "x-axis": true,
  385. "y-axis": true,
  386. "scale": 1,
  387. "y_formats": [
  388. "none",
  389. "short"
  390. ],
  391. "grid": {
  392. "max": null,
  393. "min": 0,
  394. "threshold1": null,
  395. "threshold2": null,
  396. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  397. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  398. },
  399. "resolution": 100,
  400. "lines": true,
  401. "fill": 1,
  402. "linewidth": 2,
  403. "points": false,
  404. "pointradius": 5,
  405. "bars": false,
  406. "stack": false,
  407. "spyable": true,
  408. "options": false,
  409. "legend": {
  410. "show": true,
  411. "values": true,
  412. "min": false,
  413. "max": false,
  414. "current": false,
  415. "total": false,
  416. "avg": true
  417. },
  418. "interactive": true,
  419. "legend_counts": true,
  420. "timezone": "browser",
  421. "percentage": false,
  422. "zerofill": true,
  423. "nullPointMode": "null",
  424. "steppedLine": false,
  425. "tooltip": {
  426. "value_type": "cumulative",
  427. "query_as_alias": true
  428. },
  429. "targets": [
  430. {
  431. "target": "aliasByNode(apps.fakesite.web_server_01.counters.request_status.code_404.count,4)"
  432. }
  433. ],
  434. "aliasColors": {
  435. "upper_75": "#EAB839",
  436. "upper_50": "#7EB26D",
  437. "upper_25": "#BA43A9"
  438. },
  439. "aliasYAxis": {},
  440. "title": "Null point mode",
  441. "datasource": null,
  442. "renderer": "flot",
  443. "annotate": {
  444. "enable": false
  445. }
  446. },
  447. {
  448. "error": false,
  449. "span": 6,
  450. "editable": true,
  451. "type": "text",
  452. "loadingEditor": false,
  453. "mode": "markdown",
  454. "content": "#### Null point mode\n- This option under Display styles tab controls how null values are handled\n- The graph to left shows how the default \"null\" looks. \n- __null__ null values are left null and this leaves empty spaces in the graph\n- __null as zero__ null values are drawn as zero values\n- __connected__ null values are ignored and the line jumps directly to the next value.",
  455. "style": {},
  456. "title": "Description"
  457. }
  458. ],
  459. "notice": false
  460. },
  461. {
  462. "title": "Thresholds",
  463. "height": "250px",
  464. "editable": true,
  465. "collapse": false,
  466. "collapsable": true,
  467. "panels": [
  468. {
  469. "span": 6,
  470. "editable": true,
  471. "type": "graphite",
  472. "x-axis": true,
  473. "y-axis": true,
  474. "scale": 1,
  475. "y_formats": [
  476. "none",
  477. "short"
  478. ],
  479. "grid": {
  480. "max": 700,
  481. "min": 0,
  482. "threshold1": 400,
  483. "threshold2": 600,
  484. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  485. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  486. },
  487. "resolution": 100,
  488. "lines": true,
  489. "fill": 0,
  490. "linewidth": 2,
  491. "points": false,
  492. "pointradius": 5,
  493. "bars": false,
  494. "stack": false,
  495. "spyable": true,
  496. "options": false,
  497. "legend": {
  498. "show": true,
  499. "values": true,
  500. "min": false,
  501. "max": false,
  502. "current": false,
  503. "total": true,
  504. "avg": false
  505. },
  506. "interactive": true,
  507. "legend_counts": true,
  508. "timezone": "browser",
  509. "percentage": false,
  510. "zerofill": true,
  511. "nullPointMode": "connected",
  512. "steppedLine": false,
  513. "tooltip": {
  514. "value_type": "cumulative",
  515. "query_as_alias": true
  516. },
  517. "targets": [
  518. {
  519. "target": "aliasByNode(apps.fakesite.web_server_01.counters.requests.count,4)"
  520. }
  521. ],
  522. "aliasColors": {
  523. "upper_75": "#EAB839",
  524. "upper_50": "#7EB26D",
  525. "upper_25": "#BA43A9",
  526. "requests": "#6ED0E0"
  527. },
  528. "aliasYAxis": {},
  529. "title": "Thresholds",
  530. "datasource": null,
  531. "renderer": "flot",
  532. "annotate": {
  533. "enable": false
  534. }
  535. },
  536. {
  537. "error": false,
  538. "span": 6,
  539. "editable": true,
  540. "type": "text",
  541. "loadingEditor": false,
  542. "mode": "markdown",
  543. "content": "#### Thresholds\n- You can define thresholds in the Grid & Axes tab in edit mode \n- You can define one or two thresholds, color is also changeable. \n- You can have lower bound thresholds as well. ",
  544. "style": {},
  545. "title": "Description"
  546. }
  547. ],
  548. "notice": false
  549. },
  550. {
  551. "title": "Bars",
  552. "height": "250px",
  553. "editable": true,
  554. "collapse": false,
  555. "collapsable": true,
  556. "panels": [
  557. {
  558. "span": 6,
  559. "editable": true,
  560. "type": "graphite",
  561. "x-axis": true,
  562. "y-axis": true,
  563. "scale": 1,
  564. "y_formats": [
  565. "ms",
  566. "short"
  567. ],
  568. "grid": {
  569. "max": null,
  570. "min": 0,
  571. "threshold1": null,
  572. "threshold2": null,
  573. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  574. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  575. },
  576. "resolution": 100,
  577. "lines": false,
  578. "fill": 1,
  579. "linewidth": 2,
  580. "points": false,
  581. "pointradius": 5,
  582. "bars": true,
  583. "stack": true,
  584. "spyable": true,
  585. "options": false,
  586. "legend": {
  587. "show": true,
  588. "values": true,
  589. "min": false,
  590. "max": false,
  591. "current": false,
  592. "total": false,
  593. "avg": true
  594. },
  595. "interactive": true,
  596. "legend_counts": true,
  597. "timezone": "browser",
  598. "percentage": false,
  599. "zerofill": true,
  600. "nullPointMode": "connected",
  601. "steppedLine": true,
  602. "tooltip": {
  603. "value_type": "cumulative",
  604. "query_as_alias": true
  605. },
  606. "targets": [
  607. {
  608. "target": "aliasByNode(statsd.fakesite.timers.ads_timer.*,4)"
  609. }
  610. ],
  611. "aliasColors": {
  612. "upper_75": "#EAB839",
  613. "upper_50": "#7EB26D",
  614. "upper_25": "#BA43A9"
  615. },
  616. "aliasYAxis": {},
  617. "title": "Bars",
  618. "datasource": null,
  619. "renderer": "flot",
  620. "annotate": {
  621. "enable": false
  622. }
  623. },
  624. {
  625. "error": false,
  626. "span": 6,
  627. "editable": true,
  628. "type": "text",
  629. "loadingEditor": false,
  630. "mode": "markdown",
  631. "content": "#### Bars\n- In display styles tab you can switch from line to bars\n- The width of the bar is relative to the pixel width between two values\n",
  632. "style": {},
  633. "title": "Description"
  634. }
  635. ],
  636. "notice": false
  637. },
  638. {
  639. "title": "Graphite PNG",
  640. "height": "250px",
  641. "editable": true,
  642. "collapse": false,
  643. "collapsable": true,
  644. "panels": [
  645. {
  646. "span": 6,
  647. "editable": true,
  648. "type": "graphite",
  649. "x-axis": true,
  650. "y-axis": true,
  651. "scale": 1,
  652. "y_formats": [
  653. "ms",
  654. "short"
  655. ],
  656. "grid": {
  657. "max": null,
  658. "min": 0,
  659. "threshold1": null,
  660. "threshold2": null,
  661. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  662. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  663. },
  664. "resolution": 100,
  665. "lines": false,
  666. "fill": 1,
  667. "linewidth": 2,
  668. "points": false,
  669. "pointradius": 2,
  670. "bars": false,
  671. "stack": true,
  672. "spyable": true,
  673. "options": false,
  674. "legend": {
  675. "show": true,
  676. "values": true,
  677. "min": false,
  678. "max": false,
  679. "current": false,
  680. "total": false,
  681. "avg": true
  682. },
  683. "interactive": true,
  684. "legend_counts": true,
  685. "timezone": "browser",
  686. "percentage": false,
  687. "zerofill": true,
  688. "nullPointMode": "connected",
  689. "steppedLine": false,
  690. "tooltip": {
  691. "value_type": "cumulative",
  692. "query_as_alias": true
  693. },
  694. "targets": [
  695. {
  696. "target": "aliasByNode(apps.backend.*.counters.requests.count,2)"
  697. }
  698. ],
  699. "aliasColors": {
  700. "upper_75": "#EAB839",
  701. "upper_50": "#7EB26D",
  702. "upper_25": "#BA43A9"
  703. },
  704. "aliasYAxis": {},
  705. "title": "Graphite PNG",
  706. "datasource": null,
  707. "renderer": "png",
  708. "annotate": {
  709. "enable": false
  710. }
  711. },
  712. {
  713. "error": false,
  714. "span": 6,
  715. "editable": true,
  716. "type": "text",
  717. "loadingEditor": false,
  718. "mode": "markdown",
  719. "content": "#### Graphite PNG support\n- You can switch from client side rendering to graphite's server side PNG rendering\n- You cannot click and drag to zoom in in this render mode.\n",
  720. "style": {},
  721. "title": "Description"
  722. }
  723. ],
  724. "notice": false
  725. }
  726. ],
  727. "editable": true,
  728. "failover": false,
  729. "panel_hints": true,
  730. "style": "dark",
  731. "pulldowns": [
  732. {
  733. "type": "filtering",
  734. "collapse": false,
  735. "notice": false,
  736. "enable": false
  737. },
  738. {
  739. "type": "annotations",
  740. "enable": false
  741. }
  742. ],
  743. "nav": [
  744. {
  745. "type": "timepicker",
  746. "collapse": false,
  747. "notice": false,
  748. "enable": true,
  749. "status": "Stable",
  750. "time_options": [
  751. "5m",
  752. "15m",
  753. "1h",
  754. "6h",
  755. "12h",
  756. "24h",
  757. "2d",
  758. "7d",
  759. "30d"
  760. ],
  761. "refresh_intervals": [
  762. "5s",
  763. "10s",
  764. "30s",
  765. "1m",
  766. "5m",
  767. "15m",
  768. "30m",
  769. "1h",
  770. "2h",
  771. "1d"
  772. ],
  773. "now": true
  774. }
  775. ],
  776. "loader": {
  777. "save_gist": false,
  778. "save_elasticsearch": true,
  779. "save_local": true,
  780. "save_default": true,
  781. "save_temp": true,
  782. "save_temp_ttl_enable": true,
  783. "save_temp_ttl": "30d",
  784. "load_gist": false,
  785. "load_elasticsearch": true,
  786. "load_elasticsearch_size": 20,
  787. "load_local": false,
  788. "hide": false
  789. },
  790. "refresh": false,
  791. "tags": [
  792. "showcase",
  793. "annotations"
  794. ],
  795. "timezone": "browser"
  796. }