grafana_stats.json 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "grafana",
  15. "id": "grafana",
  16. "name": "Grafana",
  17. "version": "8.1.0-pre"
  18. },
  19. {
  20. "type": "datasource",
  21. "id": "prometheus",
  22. "name": "Prometheus",
  23. "version": "1.0.0"
  24. },
  25. {
  26. "type": "panel",
  27. "id": "stat",
  28. "name": "Stat",
  29. "version": ""
  30. },
  31. {
  32. "type": "panel",
  33. "id": "table-old",
  34. "name": "Table (old)",
  35. "version": ""
  36. },
  37. {
  38. "type": "panel",
  39. "id": "timeseries",
  40. "name": "Time series",
  41. "version": ""
  42. }
  43. ],
  44. "annotations": {
  45. "list": [
  46. {
  47. "builtIn": 1,
  48. "datasource": "-- Grafana --",
  49. "enable": true,
  50. "hide": true,
  51. "iconColor": "rgba(0, 211, 255, 1)",
  52. "name": "Annotations & Alerts",
  53. "type": "dashboard"
  54. }
  55. ]
  56. },
  57. "description": "Metrics about Grafana",
  58. "editable": true,
  59. "gnetId": null,
  60. "graphTooltip": 0,
  61. "id": null,
  62. "links": [
  63. {
  64. "icon": "external link",
  65. "tags": [],
  66. "targetBlank": true,
  67. "title": "Available metrics",
  68. "type": "link",
  69. "url": "/metrics"
  70. },
  71. {
  72. "icon": "external link",
  73. "tags": [],
  74. "targetBlank": true,
  75. "title": "Grafana docs",
  76. "type": "link",
  77. "url": "https://grafana.com/docs/grafana/latest/"
  78. },
  79. {
  80. "icon": "external link",
  81. "tags": [],
  82. "targetBlank": true,
  83. "title": "Prometheus docs",
  84. "type": "link",
  85. "url": "http://prometheus.io/docs/introduction/overview/"
  86. }
  87. ],
  88. "panels": [
  89. {
  90. "cacheTimeout": null,
  91. "datasource": "${DS_PROMETHEUS}",
  92. "fieldConfig": {
  93. "defaults": {
  94. "color": {
  95. "mode": "thresholds"
  96. },
  97. "decimals": 0,
  98. "mappings": [
  99. {
  100. "options": {
  101. "0": {
  102. "text": ":("
  103. }
  104. },
  105. "type": "value"
  106. }
  107. ],
  108. "thresholds": {
  109. "mode": "absolute",
  110. "steps": [
  111. {
  112. "color": "rgba(222, 3, 3, 0.9)",
  113. "value": null
  114. },
  115. {
  116. "color": "rgb(234, 245, 234)",
  117. "value": 1
  118. },
  119. {
  120. "color": "rgb(235, 244, 235)",
  121. "value": 10000
  122. }
  123. ]
  124. },
  125. "unit": "none"
  126. },
  127. "overrides": []
  128. },
  129. "gridPos": {
  130. "h": 5,
  131. "w": 5,
  132. "x": 0,
  133. "y": 0
  134. },
  135. "id": 4,
  136. "interval": null,
  137. "links": [],
  138. "maxDataPoints": 100,
  139. "options": {
  140. "colorMode": "value",
  141. "graphMode": "none",
  142. "justifyMode": "auto",
  143. "orientation": "horizontal",
  144. "reduceOptions": {
  145. "calcs": ["mean"],
  146. "fields": "",
  147. "values": false
  148. },
  149. "text": {},
  150. "textMode": "auto"
  151. },
  152. "pluginVersion": "8.1.0-pre",
  153. "targets": [
  154. {
  155. "expr": "up{job=\"grafana\"}",
  156. "format": "time_series",
  157. "instant": true,
  158. "intervalFactor": 2,
  159. "refId": "A",
  160. "step": 60
  161. }
  162. ],
  163. "title": "Active instances",
  164. "type": "stat"
  165. },
  166. {
  167. "cacheTimeout": null,
  168. "datasource": "${DS_PROMETHEUS}",
  169. "fieldConfig": {
  170. "defaults": {
  171. "color": {
  172. "mode": "thresholds"
  173. },
  174. "mappings": [
  175. {
  176. "options": {
  177. "match": "null",
  178. "result": {
  179. "text": "N/A"
  180. }
  181. },
  182. "type": "special"
  183. }
  184. ],
  185. "thresholds": {
  186. "mode": "absolute",
  187. "steps": [
  188. {
  189. "color": "green",
  190. "value": null
  191. },
  192. {
  193. "color": "red",
  194. "value": 80
  195. }
  196. ]
  197. },
  198. "unit": "none"
  199. },
  200. "overrides": []
  201. },
  202. "gridPos": {
  203. "h": 5,
  204. "w": 5,
  205. "x": 5,
  206. "y": 0
  207. },
  208. "id": 8,
  209. "interval": null,
  210. "links": [],
  211. "maxDataPoints": 100,
  212. "options": {
  213. "colorMode": "none",
  214. "graphMode": "none",
  215. "justifyMode": "auto",
  216. "orientation": "horizontal",
  217. "reduceOptions": {
  218. "calcs": ["mean"],
  219. "fields": "",
  220. "values": false
  221. },
  222. "text": {},
  223. "textMode": "auto"
  224. },
  225. "pluginVersion": "8.1.0-pre",
  226. "targets": [
  227. {
  228. "expr": "grafana_stat_totals_dashboard",
  229. "format": "time_series",
  230. "instant": true,
  231. "intervalFactor": 2,
  232. "refId": "A",
  233. "step": 60
  234. }
  235. ],
  236. "title": "Dashboard count",
  237. "type": "stat"
  238. },
  239. {
  240. "cacheTimeout": null,
  241. "datasource": "${DS_PROMETHEUS}",
  242. "fieldConfig": {
  243. "defaults": {
  244. "color": {
  245. "mode": "thresholds"
  246. },
  247. "mappings": [
  248. {
  249. "options": {
  250. "match": "null",
  251. "result": {
  252. "text": "N/A"
  253. }
  254. },
  255. "type": "special"
  256. }
  257. ],
  258. "thresholds": {
  259. "mode": "absolute",
  260. "steps": [
  261. {
  262. "color": "green",
  263. "value": null
  264. },
  265. {
  266. "color": "red",
  267. "value": 80
  268. }
  269. ]
  270. },
  271. "unit": "none"
  272. },
  273. "overrides": []
  274. },
  275. "gridPos": {
  276. "h": 5,
  277. "w": 5,
  278. "x": 10,
  279. "y": 0
  280. },
  281. "id": 9,
  282. "interval": null,
  283. "links": [],
  284. "maxDataPoints": 100,
  285. "options": {
  286. "colorMode": "none",
  287. "graphMode": "none",
  288. "justifyMode": "auto",
  289. "orientation": "horizontal",
  290. "reduceOptions": {
  291. "calcs": ["mean"],
  292. "fields": "",
  293. "values": false
  294. },
  295. "text": {},
  296. "textMode": "auto"
  297. },
  298. "pluginVersion": "8.1.0-pre",
  299. "targets": [
  300. {
  301. "expr": "grafana_stat_total_users",
  302. "format": "time_series",
  303. "instant": true,
  304. "intervalFactor": 2,
  305. "refId": "A",
  306. "step": 60
  307. }
  308. ],
  309. "title": "User count",
  310. "type": "stat"
  311. },
  312. {
  313. "cacheTimeout": null,
  314. "datasource": "${DS_PROMETHEUS}",
  315. "fieldConfig": {
  316. "defaults": {
  317. "color": {
  318. "mode": "thresholds"
  319. },
  320. "mappings": [
  321. {
  322. "options": {
  323. "match": "null",
  324. "result": {
  325. "text": "N/A"
  326. }
  327. },
  328. "type": "special"
  329. }
  330. ],
  331. "thresholds": {
  332. "mode": "absolute",
  333. "steps": [
  334. {
  335. "color": "green",
  336. "value": null
  337. },
  338. {
  339. "color": "red",
  340. "value": 80
  341. }
  342. ]
  343. },
  344. "unit": "none"
  345. },
  346. "overrides": []
  347. },
  348. "gridPos": {
  349. "h": 5,
  350. "w": 5,
  351. "x": 15,
  352. "y": 0
  353. },
  354. "id": 10,
  355. "interval": null,
  356. "links": [],
  357. "maxDataPoints": 100,
  358. "options": {
  359. "colorMode": "none",
  360. "graphMode": "none",
  361. "justifyMode": "auto",
  362. "orientation": "horizontal",
  363. "reduceOptions": {
  364. "calcs": ["mean"],
  365. "fields": "",
  366. "values": false
  367. },
  368. "text": {},
  369. "textMode": "auto"
  370. },
  371. "pluginVersion": "8.1.0-pre",
  372. "targets": [
  373. {
  374. "expr": "grafana_stat_total_playlists",
  375. "format": "time_series",
  376. "instant": true,
  377. "intervalFactor": 2,
  378. "refId": "A",
  379. "step": 60
  380. }
  381. ],
  382. "title": "Playlist count",
  383. "type": "stat"
  384. },
  385. {
  386. "columns": [],
  387. "datasource": "${DS_PROMETHEUS}",
  388. "fontSize": "100%",
  389. "gridPos": {
  390. "h": 5,
  391. "w": 4,
  392. "x": 20,
  393. "y": 0
  394. },
  395. "id": 17,
  396. "links": [],
  397. "pageSize": null,
  398. "scroll": false,
  399. "showHeader": true,
  400. "sort": {
  401. "col": 0,
  402. "desc": true
  403. },
  404. "styles": [
  405. {
  406. "alias": "Time",
  407. "align": "auto",
  408. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  409. "link": false,
  410. "pattern": "Time",
  411. "type": "hidden"
  412. },
  413. {
  414. "alias": "",
  415. "align": "auto",
  416. "colorMode": null,
  417. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  418. "decimals": 0,
  419. "pattern": "/.*/",
  420. "thresholds": [],
  421. "type": "number",
  422. "unit": "short"
  423. }
  424. ],
  425. "targets": [
  426. {
  427. "expr": "topk(1, grafana_info or grafana_build_info)",
  428. "format": "time_series",
  429. "instant": true,
  430. "intervalFactor": 2,
  431. "legendFormat": "{{version}}",
  432. "refId": "A",
  433. "step": 20
  434. }
  435. ],
  436. "title": "Grafana version",
  437. "transform": "timeseries_to_rows",
  438. "type": "table-old"
  439. },
  440. {
  441. "datasource": "${DS_PROMETHEUS}",
  442. "fieldConfig": {
  443. "defaults": {
  444. "color": {
  445. "mode": "palette-classic"
  446. },
  447. "custom": {
  448. "axisLabel": "",
  449. "axisPlacement": "auto",
  450. "barAlignment": 0,
  451. "drawStyle": "line",
  452. "fillOpacity": 10,
  453. "gradientMode": "none",
  454. "hideFrom": {
  455. "legend": false,
  456. "tooltip": false,
  457. "viz": false
  458. },
  459. "lineInterpolation": "linear",
  460. "lineWidth": 2,
  461. "pointSize": 5,
  462. "scaleDistribution": {
  463. "type": "linear"
  464. },
  465. "showPoints": "never",
  466. "spanNulls": false,
  467. "stacking": {
  468. "group": "A",
  469. "mode": "none"
  470. },
  471. "thresholdsStyle": {
  472. "mode": "off"
  473. }
  474. },
  475. "links": [],
  476. "mappings": [],
  477. "thresholds": {
  478. "mode": "absolute",
  479. "steps": [
  480. {
  481. "color": "green",
  482. "value": null
  483. },
  484. {
  485. "color": "red",
  486. "value": 80
  487. }
  488. ]
  489. },
  490. "unit": "short"
  491. },
  492. "overrides": [
  493. {
  494. "matcher": {
  495. "id": "byName",
  496. "options": "400"
  497. },
  498. "properties": [
  499. {
  500. "id": "color",
  501. "value": {
  502. "fixedColor": "#447EBC",
  503. "mode": "fixed"
  504. }
  505. }
  506. ]
  507. },
  508. {
  509. "matcher": {
  510. "id": "byName",
  511. "options": "500"
  512. },
  513. "properties": [
  514. {
  515. "id": "color",
  516. "value": {
  517. "fixedColor": "#BF1B00",
  518. "mode": "fixed"
  519. }
  520. }
  521. ]
  522. }
  523. ]
  524. },
  525. "gridPos": {
  526. "h": 10,
  527. "w": 10,
  528. "x": 0,
  529. "y": 5
  530. },
  531. "id": 15,
  532. "links": [],
  533. "options": {
  534. "legend": {
  535. "calcs": [],
  536. "displayMode": "list",
  537. "placement": "bottom"
  538. },
  539. "tooltip": {
  540. "mode": "single"
  541. }
  542. },
  543. "pluginVersion": "8.1.0-pre",
  544. "targets": [
  545. {
  546. "expr": "sum by (statuscode) (irate(http_request_total{job='grafana'}[5m]))",
  547. "format": "time_series",
  548. "intervalFactor": 3,
  549. "legendFormat": "{{statuscode}}",
  550. "refId": "B",
  551. "step": 15,
  552. "target": "dev.grafana.cb-office.alerting.active_alerts"
  553. }
  554. ],
  555. "timeFrom": null,
  556. "timeShift": null,
  557. "title": "http status codes",
  558. "type": "timeseries"
  559. },
  560. {
  561. "datasource": "${DS_PROMETHEUS}",
  562. "fieldConfig": {
  563. "defaults": {
  564. "color": {
  565. "mode": "palette-classic"
  566. },
  567. "custom": {
  568. "axisLabel": "",
  569. "axisPlacement": "auto",
  570. "barAlignment": 0,
  571. "drawStyle": "line",
  572. "fillOpacity": 10,
  573. "gradientMode": "none",
  574. "hideFrom": {
  575. "legend": false,
  576. "tooltip": false,
  577. "viz": false
  578. },
  579. "lineInterpolation": "linear",
  580. "lineWidth": 2,
  581. "pointSize": 5,
  582. "scaleDistribution": {
  583. "type": "linear"
  584. },
  585. "showPoints": "never",
  586. "spanNulls": false,
  587. "stacking": {
  588. "group": "A",
  589. "mode": "none"
  590. },
  591. "thresholdsStyle": {
  592. "mode": "off"
  593. }
  594. },
  595. "links": [],
  596. "mappings": [],
  597. "thresholds": {
  598. "mode": "absolute",
  599. "steps": [
  600. {
  601. "color": "green",
  602. "value": null
  603. },
  604. {
  605. "color": "red",
  606. "value": 80
  607. }
  608. ]
  609. },
  610. "unit": "short"
  611. },
  612. "overrides": [
  613. {
  614. "matcher": {
  615. "id": "byName",
  616. "options": "400"
  617. },
  618. "properties": [
  619. {
  620. "id": "color",
  621. "value": {
  622. "fixedColor": "#447EBC",
  623. "mode": "fixed"
  624. }
  625. }
  626. ]
  627. },
  628. {
  629. "matcher": {
  630. "id": "byName",
  631. "options": "500"
  632. },
  633. "properties": [
  634. {
  635. "id": "color",
  636. "value": {
  637. "fixedColor": "#BF1B00",
  638. "mode": "fixed"
  639. }
  640. }
  641. ]
  642. }
  643. ]
  644. },
  645. "gridPos": {
  646. "h": 10,
  647. "w": 10,
  648. "x": 10,
  649. "y": 5
  650. },
  651. "id": 11,
  652. "links": [],
  653. "options": {
  654. "legend": {
  655. "calcs": [],
  656. "displayMode": "list",
  657. "placement": "bottom"
  658. },
  659. "tooltip": {
  660. "mode": "single"
  661. }
  662. },
  663. "pluginVersion": "8.1.0-pre",
  664. "targets": [
  665. {
  666. "expr": "sum(irate(grafana_api_response_status_total[5m]))",
  667. "format": "time_series",
  668. "intervalFactor": 4,
  669. "legendFormat": "api",
  670. "refId": "A",
  671. "step": 20
  672. },
  673. {
  674. "expr": "sum(irate(grafana_proxy_response_status_total[5m]))",
  675. "format": "time_series",
  676. "intervalFactor": 4,
  677. "legendFormat": "proxy",
  678. "refId": "B",
  679. "step": 20
  680. },
  681. {
  682. "expr": "sum(irate(grafana_page_response_status_total[5m]))",
  683. "format": "time_series",
  684. "intervalFactor": 4,
  685. "legendFormat": "web",
  686. "refId": "C",
  687. "step": 20
  688. }
  689. ],
  690. "timeFrom": null,
  691. "timeShift": null,
  692. "title": "Requests by routing group",
  693. "type": "timeseries"
  694. },
  695. {
  696. "columns": [],
  697. "datasource": "${DS_PROMETHEUS}",
  698. "fontSize": "100%",
  699. "gridPos": {
  700. "h": 10,
  701. "w": 4,
  702. "x": 20,
  703. "y": 5
  704. },
  705. "height": "",
  706. "id": 12,
  707. "links": [],
  708. "pageSize": null,
  709. "scroll": true,
  710. "showHeader": true,
  711. "sort": {
  712. "col": 0,
  713. "desc": true
  714. },
  715. "styles": [
  716. {
  717. "alias": "Time",
  718. "align": "auto",
  719. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  720. "link": false,
  721. "pattern": "Time",
  722. "type": "hidden"
  723. },
  724. {
  725. "alias": "",
  726. "align": "auto",
  727. "colorMode": null,
  728. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  729. "decimals": 0,
  730. "pattern": "/.*/",
  731. "thresholds": [],
  732. "type": "number",
  733. "unit": "short"
  734. }
  735. ],
  736. "targets": [
  737. {
  738. "expr": "sort(topk(8, sum by (handler) (http_request_total{job=\"grafana\"})))",
  739. "format": "time_series",
  740. "instant": true,
  741. "intervalFactor": 10,
  742. "legendFormat": "{{handler}}",
  743. "refId": "A",
  744. "step": 100
  745. }
  746. ],
  747. "title": "Most used handlers",
  748. "transform": "timeseries_to_rows",
  749. "type": "table-old"
  750. },
  751. {
  752. "datasource": "${DS_PROMETHEUS}",
  753. "fieldConfig": {
  754. "defaults": {
  755. "color": {
  756. "mode": "palette-classic"
  757. },
  758. "custom": {
  759. "axisLabel": "",
  760. "axisPlacement": "auto",
  761. "barAlignment": 0,
  762. "drawStyle": "line",
  763. "fillOpacity": 10,
  764. "gradientMode": "none",
  765. "hideFrom": {
  766. "legend": false,
  767. "tooltip": false,
  768. "viz": false
  769. },
  770. "lineInterpolation": "linear",
  771. "lineWidth": 2,
  772. "pointSize": 5,
  773. "scaleDistribution": {
  774. "type": "linear"
  775. },
  776. "showPoints": "never",
  777. "spanNulls": true,
  778. "stacking": {
  779. "group": "A",
  780. "mode": "normal"
  781. },
  782. "thresholdsStyle": {
  783. "mode": "off"
  784. }
  785. },
  786. "links": [],
  787. "mappings": [],
  788. "thresholds": {
  789. "mode": "absolute",
  790. "steps": [
  791. {
  792. "color": "green",
  793. "value": null
  794. },
  795. {
  796. "color": "red",
  797. "value": 80
  798. }
  799. ]
  800. },
  801. "unit": "short"
  802. },
  803. "overrides": [
  804. {
  805. "matcher": {
  806. "id": "byName",
  807. "options": "alerting"
  808. },
  809. "properties": [
  810. {
  811. "id": "color",
  812. "value": {
  813. "fixedColor": "#890F02",
  814. "mode": "fixed"
  815. }
  816. }
  817. ]
  818. },
  819. {
  820. "matcher": {
  821. "id": "byName",
  822. "options": "ok"
  823. },
  824. "properties": [
  825. {
  826. "id": "color",
  827. "value": {
  828. "fixedColor": "#7EB26D",
  829. "mode": "fixed"
  830. }
  831. }
  832. ]
  833. }
  834. ]
  835. },
  836. "gridPos": {
  837. "h": 5,
  838. "w": 12,
  839. "x": 0,
  840. "y": 15
  841. },
  842. "id": 6,
  843. "links": [],
  844. "options": {
  845. "legend": {
  846. "calcs": [],
  847. "displayMode": "list",
  848. "placement": "bottom"
  849. },
  850. "tooltip": {
  851. "mode": "single"
  852. }
  853. },
  854. "pluginVersion": "8.1.0-pre",
  855. "targets": [
  856. {
  857. "expr": "increase(grafana_alerting_active_alerts[1m])",
  858. "format": "time_series",
  859. "intervalFactor": 3,
  860. "legendFormat": "{{state}}",
  861. "refId": "A",
  862. "step": 15
  863. }
  864. ],
  865. "timeFrom": null,
  866. "timeShift": null,
  867. "title": "Grafana active alerts",
  868. "type": "timeseries"
  869. },
  870. {
  871. "datasource": "${DS_PROMETHEUS}",
  872. "fieldConfig": {
  873. "defaults": {
  874. "color": {
  875. "mode": "palette-classic"
  876. },
  877. "custom": {
  878. "axisLabel": "",
  879. "axisPlacement": "auto",
  880. "barAlignment": 0,
  881. "drawStyle": "line",
  882. "fillOpacity": 10,
  883. "gradientMode": "none",
  884. "hideFrom": {
  885. "legend": false,
  886. "tooltip": false,
  887. "viz": false
  888. },
  889. "lineInterpolation": "linear",
  890. "lineWidth": 2,
  891. "pointSize": 5,
  892. "scaleDistribution": {
  893. "type": "linear"
  894. },
  895. "showPoints": "never",
  896. "spanNulls": true,
  897. "stacking": {
  898. "group": "A",
  899. "mode": "none"
  900. },
  901. "thresholdsStyle": {
  902. "mode": "off"
  903. }
  904. },
  905. "links": [],
  906. "mappings": [],
  907. "thresholds": {
  908. "mode": "absolute",
  909. "steps": [
  910. {
  911. "color": "green",
  912. "value": null
  913. },
  914. {
  915. "color": "red",
  916. "value": 80
  917. }
  918. ]
  919. },
  920. "unit": "short"
  921. },
  922. "overrides": [
  923. {
  924. "matcher": {
  925. "id": "byName",
  926. "options": "alerting"
  927. },
  928. "properties": [
  929. {
  930. "id": "color",
  931. "value": {
  932. "fixedColor": "#890F02",
  933. "mode": "fixed"
  934. }
  935. }
  936. ]
  937. },
  938. {
  939. "matcher": {
  940. "id": "byName",
  941. "options": "alertname"
  942. },
  943. "properties": [
  944. {
  945. "id": "color",
  946. "value": {
  947. "fixedColor": "#BF1B00",
  948. "mode": "fixed"
  949. }
  950. }
  951. ]
  952. },
  953. {
  954. "matcher": {
  955. "id": "byName",
  956. "options": "firing alerts"
  957. },
  958. "properties": [
  959. {
  960. "id": "color",
  961. "value": {
  962. "fixedColor": "#BF1B00",
  963. "mode": "fixed"
  964. }
  965. }
  966. ]
  967. },
  968. {
  969. "matcher": {
  970. "id": "byName",
  971. "options": "ok"
  972. },
  973. "properties": [
  974. {
  975. "id": "color",
  976. "value": {
  977. "fixedColor": "#7EB26D",
  978. "mode": "fixed"
  979. }
  980. }
  981. ]
  982. }
  983. ]
  984. },
  985. "gridPos": {
  986. "h": 5,
  987. "w": 12,
  988. "x": 12,
  989. "y": 15
  990. },
  991. "id": 18,
  992. "links": [],
  993. "options": {
  994. "legend": {
  995. "calcs": [],
  996. "displayMode": "list",
  997. "placement": "bottom"
  998. },
  999. "tooltip": {
  1000. "mode": "single"
  1001. }
  1002. },
  1003. "pluginVersion": "8.1.0-pre",
  1004. "targets": [
  1005. {
  1006. "expr": " sum (ALERTS)",
  1007. "format": "time_series",
  1008. "intervalFactor": 3,
  1009. "legendFormat": "firing alerts",
  1010. "refId": "A",
  1011. "step": 15
  1012. }
  1013. ],
  1014. "timeFrom": null,
  1015. "timeShift": null,
  1016. "title": "Prometheus alerts",
  1017. "type": "timeseries"
  1018. },
  1019. {
  1020. "datasource": "${DS_PROMETHEUS}",
  1021. "description": "Aggregated over all Grafana nodes.",
  1022. "fieldConfig": {
  1023. "defaults": {
  1024. "color": {
  1025. "mode": "palette-classic"
  1026. },
  1027. "custom": {
  1028. "axisLabel": "",
  1029. "axisPlacement": "auto",
  1030. "barAlignment": 0,
  1031. "drawStyle": "line",
  1032. "fillOpacity": 10,
  1033. "gradientMode": "none",
  1034. "hideFrom": {
  1035. "legend": false,
  1036. "tooltip": false,
  1037. "viz": false
  1038. },
  1039. "lineInterpolation": "linear",
  1040. "lineWidth": 2,
  1041. "pointSize": 5,
  1042. "scaleDistribution": {
  1043. "type": "linear"
  1044. },
  1045. "showPoints": "never",
  1046. "spanNulls": true,
  1047. "stacking": {
  1048. "group": "A",
  1049. "mode": "none"
  1050. },
  1051. "thresholdsStyle": {
  1052. "mode": "off"
  1053. }
  1054. },
  1055. "links": [],
  1056. "mappings": [],
  1057. "thresholds": {
  1058. "mode": "absolute",
  1059. "steps": [
  1060. {
  1061. "color": "green",
  1062. "value": null
  1063. },
  1064. {
  1065. "color": "red",
  1066. "value": 80
  1067. }
  1068. ]
  1069. },
  1070. "unit": "short"
  1071. },
  1072. "overrides": [
  1073. {
  1074. "matcher": {
  1075. "id": "byName",
  1076. "options": "avg gc duration"
  1077. },
  1078. "properties": [
  1079. {
  1080. "id": "unit",
  1081. "value": "decbytes"
  1082. }
  1083. ]
  1084. },
  1085. {
  1086. "matcher": {
  1087. "id": "byName",
  1088. "options": "allocated memory"
  1089. },
  1090. "properties": [
  1091. {
  1092. "id": "unit",
  1093. "value": "decbytes"
  1094. }
  1095. ]
  1096. },
  1097. {
  1098. "matcher": {
  1099. "id": "byName",
  1100. "options": "used memory"
  1101. },
  1102. "properties": [
  1103. {
  1104. "id": "unit",
  1105. "value": "decbytes"
  1106. }
  1107. ]
  1108. },
  1109. {
  1110. "matcher": {
  1111. "id": "byName",
  1112. "options": "memory usage"
  1113. },
  1114. "properties": [
  1115. {
  1116. "id": "unit",
  1117. "value": "decbytes"
  1118. }
  1119. ]
  1120. }
  1121. ]
  1122. },
  1123. "gridPos": {
  1124. "h": 7,
  1125. "w": 24,
  1126. "x": 0,
  1127. "y": 20
  1128. },
  1129. "id": 7,
  1130. "links": [],
  1131. "options": {
  1132. "legend": {
  1133. "calcs": [],
  1134. "displayMode": "list",
  1135. "placement": "bottom"
  1136. },
  1137. "tooltip": {
  1138. "mode": "single"
  1139. }
  1140. },
  1141. "pluginVersion": "8.1.0-pre",
  1142. "targets": [
  1143. {
  1144. "expr": "sum(go_goroutines{job=\"grafana\"})",
  1145. "format": "time_series",
  1146. "hide": false,
  1147. "intervalFactor": 4,
  1148. "legendFormat": "go routines",
  1149. "refId": "A",
  1150. "step": 8,
  1151. "target": "select metric",
  1152. "type": "timeserie"
  1153. },
  1154. {
  1155. "expr": "sum(process_resident_memory_bytes{job=\"grafana\"})",
  1156. "format": "time_series",
  1157. "intervalFactor": 4,
  1158. "legendFormat": "memory usage",
  1159. "refId": "B",
  1160. "step": 8
  1161. }
  1162. ],
  1163. "timeFrom": null,
  1164. "timeShift": null,
  1165. "title": "Grafana performance",
  1166. "type": "timeseries"
  1167. }
  1168. ],
  1169. "revision": "1.0",
  1170. "schemaVersion": 30,
  1171. "style": "dark",
  1172. "tags": ["grafana", "prometheus"],
  1173. "templating": {
  1174. "list": []
  1175. },
  1176. "time": {
  1177. "from": "now-6h",
  1178. "to": "now"
  1179. },
  1180. "timepicker": {
  1181. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
  1182. "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
  1183. },
  1184. "timezone": "",
  1185. "title": "Grafana metrics",
  1186. "uid": "isFoa0z7k",
  1187. "version": 2
  1188. }