dashboard.json 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646
  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. "__elements": {},
  13. "__requires": [
  14. {
  15. "type": "panel",
  16. "id": "bargauge",
  17. "name": "Bar gauge",
  18. "version": ""
  19. },
  20. {
  21. "type": "grafana",
  22. "id": "grafana",
  23. "name": "Grafana",
  24. "version": "10.4.3"
  25. },
  26. {
  27. "type": "datasource",
  28. "id": "prometheus",
  29. "name": "Prometheus",
  30. "version": "1.0.0"
  31. },
  32. {
  33. "type": "panel",
  34. "id": "stat",
  35. "name": "Stat",
  36. "version": ""
  37. },
  38. {
  39. "type": "panel",
  40. "id": "timeseries",
  41. "name": "Time series",
  42. "version": ""
  43. }
  44. ],
  45. "annotations": {
  46. "list": [
  47. {
  48. "builtIn": 1,
  49. "datasource": {
  50. "type": "datasource",
  51. "uid": "grafana"
  52. },
  53. "enable": true,
  54. "hide": true,
  55. "iconColor": "rgba(0, 211, 255, 1)",
  56. "name": "Annotations & Alerts",
  57. "type": "dashboard"
  58. }
  59. ]
  60. },
  61. "editable": true,
  62. "fiscalYearStartMonth": 0,
  63. "graphTooltip": 0,
  64. "id": null,
  65. "links": [],
  66. "panels": [
  67. {
  68. "collapsed": false,
  69. "datasource": {
  70. "uid": "Prometheus"
  71. },
  72. "gridPos": {
  73. "h": 1,
  74. "w": 24,
  75. "x": 0,
  76. "y": 0
  77. },
  78. "id": 24,
  79. "panels": [],
  80. "targets": [
  81. {
  82. "datasource": {
  83. "uid": "Prometheus"
  84. },
  85. "refId": "A"
  86. }
  87. ],
  88. "title": "Application",
  89. "type": "row"
  90. },
  91. {
  92. "datasource": {
  93. "type": "prometheus",
  94. "uid": "${DS_PROMETHEUS}"
  95. },
  96. "fieldConfig": {
  97. "defaults": {
  98. "mappings": [],
  99. "thresholds": {
  100. "mode": "absolute",
  101. "steps": [
  102. {
  103. "color": "green",
  104. "value": null
  105. }
  106. ]
  107. }
  108. },
  109. "overrides": []
  110. },
  111. "gridPos": {
  112. "h": 7,
  113. "w": 8,
  114. "x": 0,
  115. "y": 1
  116. },
  117. "id": 18,
  118. "options": {
  119. "displayMode": "basic",
  120. "maxVizHeight": 300,
  121. "minVizHeight": 16,
  122. "minVizWidth": 8,
  123. "namePlacement": "auto",
  124. "orientation": "horizontal",
  125. "reduceOptions": {
  126. "calcs": [
  127. "last"
  128. ],
  129. "fields": "",
  130. "values": false
  131. },
  132. "showUnfilled": true,
  133. "sizing": "auto",
  134. "valueMode": "color"
  135. },
  136. "pluginVersion": "10.4.3",
  137. "targets": [
  138. {
  139. "datasource": {
  140. "type": "prometheus",
  141. "uid": "${DS_PROMETHEUS}"
  142. },
  143. "expr": "max(miniflux_feeds{status=\"total\"})",
  144. "hide": false,
  145. "interval": "",
  146. "legendFormat": "Total",
  147. "refId": "D"
  148. },
  149. {
  150. "datasource": {
  151. "type": "prometheus",
  152. "uid": "${DS_PROMETHEUS}"
  153. },
  154. "expr": "max(miniflux_feeds{status=\"enabled\"})",
  155. "hide": false,
  156. "interval": "",
  157. "legendFormat": "Enabled",
  158. "refId": "C"
  159. },
  160. {
  161. "datasource": {
  162. "type": "prometheus",
  163. "uid": "${DS_PROMETHEUS}"
  164. },
  165. "expr": "max(miniflux_broken_feeds)",
  166. "interval": "",
  167. "legendFormat": "Broken",
  168. "refId": "A"
  169. },
  170. {
  171. "datasource": {
  172. "type": "prometheus",
  173. "uid": "${DS_PROMETHEUS}"
  174. },
  175. "expr": "max(miniflux_feeds{status=\"disabled\"})",
  176. "interval": "",
  177. "legendFormat": "Disabled",
  178. "refId": "B"
  179. }
  180. ],
  181. "title": "Feeds",
  182. "type": "bargauge"
  183. },
  184. {
  185. "datasource": {
  186. "type": "prometheus",
  187. "uid": "${DS_PROMETHEUS}"
  188. },
  189. "fieldConfig": {
  190. "defaults": {
  191. "mappings": [],
  192. "thresholds": {
  193. "mode": "absolute",
  194. "steps": [
  195. {
  196. "color": "green",
  197. "value": null
  198. },
  199. {
  200. "color": "red",
  201. "value": 80
  202. }
  203. ]
  204. }
  205. },
  206. "overrides": []
  207. },
  208. "gridPos": {
  209. "h": 3,
  210. "w": 4,
  211. "x": 8,
  212. "y": 1
  213. },
  214. "id": 2,
  215. "options": {
  216. "colorMode": "value",
  217. "graphMode": "none",
  218. "justifyMode": "auto",
  219. "orientation": "horizontal",
  220. "reduceOptions": {
  221. "calcs": [
  222. "last"
  223. ],
  224. "fields": "",
  225. "values": false
  226. },
  227. "showPercentChange": false,
  228. "textMode": "auto",
  229. "wideLayout": true
  230. },
  231. "pluginVersion": "10.4.3",
  232. "targets": [
  233. {
  234. "datasource": {
  235. "type": "prometheus",
  236. "uid": "${DS_PROMETHEUS}"
  237. },
  238. "expr": "max(miniflux_users)",
  239. "interval": "",
  240. "legendFormat": "Users",
  241. "refId": "A"
  242. }
  243. ],
  244. "title": "Users",
  245. "type": "stat"
  246. },
  247. {
  248. "datasource": {
  249. "type": "prometheus",
  250. "uid": "${DS_PROMETHEUS}"
  251. },
  252. "fieldConfig": {
  253. "defaults": {
  254. "color": {
  255. "mode": "palette-classic"
  256. },
  257. "custom": {
  258. "axisBorderShow": false,
  259. "axisCenteredZero": false,
  260. "axisColorMode": "text",
  261. "axisLabel": "",
  262. "axisPlacement": "auto",
  263. "barAlignment": 0,
  264. "drawStyle": "line",
  265. "fillOpacity": 50,
  266. "gradientMode": "opacity",
  267. "hideFrom": {
  268. "legend": false,
  269. "tooltip": false,
  270. "viz": false
  271. },
  272. "insertNulls": false,
  273. "lineInterpolation": "linear",
  274. "lineWidth": 1,
  275. "pointSize": 5,
  276. "scaleDistribution": {
  277. "type": "linear"
  278. },
  279. "showPoints": "never",
  280. "spanNulls": false,
  281. "stacking": {
  282. "group": "A",
  283. "mode": "none"
  284. },
  285. "thresholdsStyle": {
  286. "mode": "off"
  287. }
  288. },
  289. "mappings": [],
  290. "thresholds": {
  291. "mode": "absolute",
  292. "steps": [
  293. {
  294. "color": "green",
  295. "value": null
  296. },
  297. {
  298. "color": "red",
  299. "value": 80
  300. }
  301. ]
  302. },
  303. "unit": "short"
  304. },
  305. "overrides": []
  306. },
  307. "gridPos": {
  308. "h": 7,
  309. "w": 12,
  310. "x": 12,
  311. "y": 1
  312. },
  313. "id": 4,
  314. "options": {
  315. "legend": {
  316. "calcs": [
  317. "lastNotNull"
  318. ],
  319. "displayMode": "table",
  320. "placement": "right",
  321. "showLegend": true
  322. },
  323. "tooltip": {
  324. "mode": "multi",
  325. "sort": "none"
  326. }
  327. },
  328. "pluginVersion": "10.4.3",
  329. "targets": [
  330. {
  331. "datasource": {
  332. "type": "prometheus",
  333. "uid": "${DS_PROMETHEUS}"
  334. },
  335. "expr": "max(miniflux_entries{status=\"total\"})",
  336. "hide": false,
  337. "interval": "",
  338. "legendFormat": "Total",
  339. "refId": "A"
  340. },
  341. {
  342. "datasource": {
  343. "type": "prometheus",
  344. "uid": "${DS_PROMETHEUS}"
  345. },
  346. "expr": "max(miniflux_entries{status=\"unread\"})",
  347. "hide": false,
  348. "interval": "",
  349. "legendFormat": "Unread",
  350. "refId": "B"
  351. },
  352. {
  353. "datasource": {
  354. "type": "prometheus",
  355. "uid": "${DS_PROMETHEUS}"
  356. },
  357. "expr": "max(miniflux_entries{status=\"read\"})",
  358. "interval": "",
  359. "legendFormat": "Read",
  360. "refId": "C"
  361. },
  362. {
  363. "datasource": {
  364. "type": "prometheus",
  365. "uid": "${DS_PROMETHEUS}"
  366. },
  367. "expr": "max(miniflux_entries{status=\"removed\"})",
  368. "interval": "",
  369. "legendFormat": "Removed",
  370. "refId": "D"
  371. }
  372. ],
  373. "title": "Entries by Status",
  374. "type": "timeseries"
  375. },
  376. {
  377. "datasource": {
  378. "type": "prometheus",
  379. "uid": "${DS_PROMETHEUS}"
  380. },
  381. "description": "",
  382. "fieldConfig": {
  383. "defaults": {
  384. "mappings": [],
  385. "thresholds": {
  386. "mode": "absolute",
  387. "steps": [
  388. {
  389. "color": "green",
  390. "value": null
  391. }
  392. ]
  393. },
  394. "unit": "decbytes"
  395. },
  396. "overrides": []
  397. },
  398. "gridPos": {
  399. "h": 4,
  400. "w": 4,
  401. "x": 8,
  402. "y": 4
  403. },
  404. "id": 36,
  405. "options": {
  406. "colorMode": "value",
  407. "graphMode": "none",
  408. "justifyMode": "center",
  409. "orientation": "vertical",
  410. "reduceOptions": {
  411. "calcs": [
  412. "last"
  413. ],
  414. "fields": "",
  415. "values": false
  416. },
  417. "showPercentChange": false,
  418. "textMode": "value",
  419. "wideLayout": true
  420. },
  421. "pluginVersion": "10.4.3",
  422. "targets": [
  423. {
  424. "datasource": {
  425. "type": "prometheus",
  426. "uid": "${DS_PROMETHEUS}"
  427. },
  428. "expr": "go_memstats_sys_bytes{job=\"miniflux\"}",
  429. "interval": "",
  430. "legendFormat": "{{ instance }} - Memory Used",
  431. "refId": "A"
  432. }
  433. ],
  434. "type": "stat"
  435. },
  436. {
  437. "datasource": {
  438. "type": "prometheus",
  439. "uid": "${DS_PROMETHEUS}"
  440. },
  441. "fieldConfig": {
  442. "defaults": {
  443. "color": {
  444. "mode": "palette-classic"
  445. },
  446. "custom": {
  447. "axisBorderShow": false,
  448. "axisCenteredZero": false,
  449. "axisColorMode": "text",
  450. "axisLabel": "",
  451. "axisPlacement": "auto",
  452. "barAlignment": 0,
  453. "drawStyle": "line",
  454. "fillOpacity": 10,
  455. "gradientMode": "none",
  456. "hideFrom": {
  457. "legend": false,
  458. "tooltip": false,
  459. "viz": false
  460. },
  461. "insertNulls": false,
  462. "lineInterpolation": "linear",
  463. "lineWidth": 1,
  464. "pointSize": 5,
  465. "scaleDistribution": {
  466. "type": "linear"
  467. },
  468. "showPoints": "never",
  469. "spanNulls": false,
  470. "stacking": {
  471. "group": "A",
  472. "mode": "none"
  473. },
  474. "thresholdsStyle": {
  475. "mode": "off"
  476. }
  477. },
  478. "mappings": [],
  479. "thresholds": {
  480. "mode": "absolute",
  481. "steps": [
  482. {
  483. "color": "green",
  484. "value": null
  485. },
  486. {
  487. "color": "red",
  488. "value": 80
  489. }
  490. ]
  491. },
  492. "unit": "s"
  493. },
  494. "overrides": []
  495. },
  496. "gridPos": {
  497. "h": 8,
  498. "w": 12,
  499. "x": 0,
  500. "y": 8
  501. },
  502. "id": 22,
  503. "options": {
  504. "legend": {
  505. "calcs": [],
  506. "displayMode": "list",
  507. "placement": "bottom",
  508. "showLegend": true
  509. },
  510. "tooltip": {
  511. "mode": "multi",
  512. "sort": "none"
  513. }
  514. },
  515. "pluginVersion": "10.4.3",
  516. "targets": [
  517. {
  518. "datasource": {
  519. "type": "prometheus",
  520. "uid": "${DS_PROMETHEUS}"
  521. },
  522. "expr": "histogram_quantile(0.95, sum(rate(miniflux_scraper_request_duration_bucket[5m])) by (le))",
  523. "interval": "",
  524. "legendFormat": "Request Duration",
  525. "refId": "A"
  526. }
  527. ],
  528. "title": "Scraper Request Duration",
  529. "type": "timeseries"
  530. },
  531. {
  532. "datasource": {
  533. "type": "prometheus",
  534. "uid": "${DS_PROMETHEUS}"
  535. },
  536. "fieldConfig": {
  537. "defaults": {
  538. "color": {
  539. "mode": "palette-classic"
  540. },
  541. "custom": {
  542. "axisBorderShow": false,
  543. "axisCenteredZero": false,
  544. "axisColorMode": "text",
  545. "axisLabel": "",
  546. "axisPlacement": "auto",
  547. "barAlignment": 0,
  548. "drawStyle": "line",
  549. "fillOpacity": 10,
  550. "gradientMode": "none",
  551. "hideFrom": {
  552. "legend": false,
  553. "tooltip": false,
  554. "viz": false
  555. },
  556. "insertNulls": false,
  557. "lineInterpolation": "linear",
  558. "lineWidth": 1,
  559. "pointSize": 5,
  560. "scaleDistribution": {
  561. "type": "linear"
  562. },
  563. "showPoints": "never",
  564. "spanNulls": false,
  565. "stacking": {
  566. "group": "A",
  567. "mode": "none"
  568. },
  569. "thresholdsStyle": {
  570. "mode": "off"
  571. }
  572. },
  573. "mappings": [],
  574. "thresholds": {
  575. "mode": "absolute",
  576. "steps": [
  577. {
  578. "color": "green",
  579. "value": null
  580. },
  581. {
  582. "color": "red",
  583. "value": 80
  584. }
  585. ]
  586. },
  587. "unit": "s"
  588. },
  589. "overrides": []
  590. },
  591. "gridPos": {
  592. "h": 8,
  593. "w": 12,
  594. "x": 12,
  595. "y": 8
  596. },
  597. "id": 20,
  598. "options": {
  599. "legend": {
  600. "calcs": [],
  601. "displayMode": "list",
  602. "placement": "bottom",
  603. "showLegend": true
  604. },
  605. "tooltip": {
  606. "mode": "multi",
  607. "sort": "none"
  608. }
  609. },
  610. "pluginVersion": "10.4.3",
  611. "targets": [
  612. {
  613. "datasource": {
  614. "type": "prometheus",
  615. "uid": "${DS_PROMETHEUS}"
  616. },
  617. "expr": "histogram_quantile(0.95, sum(rate(miniflux_background_feed_refresh_duration_bucket[5m])) by (le))",
  618. "interval": "",
  619. "legendFormat": "Refresh Duration",
  620. "refId": "A"
  621. }
  622. ],
  623. "title": "Background Feed Refresh Duration",
  624. "type": "timeseries"
  625. },
  626. {
  627. "collapsed": false,
  628. "datasource": {
  629. "uid": "Prometheus"
  630. },
  631. "gridPos": {
  632. "h": 1,
  633. "w": 24,
  634. "x": 0,
  635. "y": 16
  636. },
  637. "id": 28,
  638. "panels": [],
  639. "targets": [
  640. {
  641. "datasource": {
  642. "uid": "Prometheus"
  643. },
  644. "refId": "A"
  645. }
  646. ],
  647. "title": "Process",
  648. "type": "row"
  649. },
  650. {
  651. "datasource": {
  652. "type": "prometheus",
  653. "uid": "${DS_PROMETHEUS}"
  654. },
  655. "fieldConfig": {
  656. "defaults": {
  657. "color": {
  658. "mode": "palette-classic"
  659. },
  660. "custom": {
  661. "axisBorderShow": false,
  662. "axisCenteredZero": false,
  663. "axisColorMode": "text",
  664. "axisLabel": "",
  665. "axisPlacement": "auto",
  666. "barAlignment": 0,
  667. "drawStyle": "line",
  668. "fillOpacity": 10,
  669. "gradientMode": "none",
  670. "hideFrom": {
  671. "legend": false,
  672. "tooltip": false,
  673. "viz": false
  674. },
  675. "insertNulls": false,
  676. "lineInterpolation": "linear",
  677. "lineWidth": 1,
  678. "pointSize": 5,
  679. "scaleDistribution": {
  680. "type": "linear"
  681. },
  682. "showPoints": "never",
  683. "spanNulls": false,
  684. "stacking": {
  685. "group": "A",
  686. "mode": "none"
  687. },
  688. "thresholdsStyle": {
  689. "mode": "off"
  690. }
  691. },
  692. "links": [],
  693. "mappings": [],
  694. "thresholds": {
  695. "mode": "absolute",
  696. "steps": [
  697. {
  698. "color": "green",
  699. "value": null
  700. },
  701. {
  702. "color": "red",
  703. "value": 80
  704. }
  705. ]
  706. },
  707. "unit": "decbytes"
  708. },
  709. "overrides": []
  710. },
  711. "gridPos": {
  712. "h": 8,
  713. "w": 12,
  714. "x": 0,
  715. "y": 17
  716. },
  717. "id": 16,
  718. "options": {
  719. "legend": {
  720. "calcs": [
  721. "lastNotNull"
  722. ],
  723. "displayMode": "table",
  724. "placement": "bottom",
  725. "showLegend": true
  726. },
  727. "tooltip": {
  728. "mode": "multi",
  729. "sort": "none"
  730. }
  731. },
  732. "pluginVersion": "10.4.3",
  733. "targets": [
  734. {
  735. "datasource": {
  736. "type": "prometheus",
  737. "uid": "${DS_PROMETHEUS}"
  738. },
  739. "expr": "go_memstats_sys_bytes{job=\"miniflux\"}",
  740. "format": "time_series",
  741. "interval": "",
  742. "intervalFactor": 1,
  743. "legendFormat": "{{ instance }}",
  744. "refId": "A"
  745. }
  746. ],
  747. "title": "Total Used Memory",
  748. "type": "timeseries"
  749. },
  750. {
  751. "datasource": {
  752. "type": "prometheus",
  753. "uid": "${DS_PROMETHEUS}"
  754. },
  755. "fieldConfig": {
  756. "defaults": {
  757. "color": {
  758. "mode": "palette-classic"
  759. },
  760. "custom": {
  761. "axisBorderShow": false,
  762. "axisCenteredZero": false,
  763. "axisColorMode": "text",
  764. "axisLabel": "",
  765. "axisPlacement": "auto",
  766. "barAlignment": 0,
  767. "drawStyle": "line",
  768. "fillOpacity": 10,
  769. "gradientMode": "none",
  770. "hideFrom": {
  771. "legend": false,
  772. "tooltip": false,
  773. "viz": false
  774. },
  775. "insertNulls": false,
  776. "lineInterpolation": "linear",
  777. "lineWidth": 1,
  778. "pointSize": 5,
  779. "scaleDistribution": {
  780. "type": "linear"
  781. },
  782. "showPoints": "never",
  783. "spanNulls": false,
  784. "stacking": {
  785. "group": "A",
  786. "mode": "none"
  787. },
  788. "thresholdsStyle": {
  789. "mode": "off"
  790. }
  791. },
  792. "mappings": [],
  793. "thresholds": {
  794. "mode": "absolute",
  795. "steps": [
  796. {
  797. "color": "green",
  798. "value": null
  799. },
  800. {
  801. "color": "red",
  802. "value": 80
  803. }
  804. ]
  805. },
  806. "unit": "short"
  807. },
  808. "overrides": []
  809. },
  810. "gridPos": {
  811. "h": 8,
  812. "w": 12,
  813. "x": 12,
  814. "y": 17
  815. },
  816. "id": 6,
  817. "options": {
  818. "legend": {
  819. "calcs": [
  820. "mean",
  821. "lastNotNull",
  822. "max",
  823. "min"
  824. ],
  825. "displayMode": "table",
  826. "placement": "bottom",
  827. "showLegend": true
  828. },
  829. "tooltip": {
  830. "mode": "multi",
  831. "sort": "none"
  832. }
  833. },
  834. "pluginVersion": "10.4.3",
  835. "targets": [
  836. {
  837. "datasource": {
  838. "type": "prometheus",
  839. "uid": "${DS_PROMETHEUS}"
  840. },
  841. "expr": "process_open_fds{job=\"miniflux\"}",
  842. "interval": "",
  843. "legendFormat": "{{instance }} - Open File Descriptors",
  844. "refId": "A"
  845. }
  846. ],
  847. "title": "File Descriptors",
  848. "type": "timeseries"
  849. },
  850. {
  851. "collapsed": false,
  852. "datasource": {
  853. "uid": "Prometheus"
  854. },
  855. "gridPos": {
  856. "h": 1,
  857. "w": 24,
  858. "x": 0,
  859. "y": 25
  860. },
  861. "id": 26,
  862. "panels": [],
  863. "targets": [
  864. {
  865. "datasource": {
  866. "uid": "Prometheus"
  867. },
  868. "refId": "A"
  869. }
  870. ],
  871. "title": "Go Metrics",
  872. "type": "row"
  873. },
  874. {
  875. "datasource": {
  876. "type": "prometheus",
  877. "uid": "${DS_PROMETHEUS}"
  878. },
  879. "fieldConfig": {
  880. "defaults": {
  881. "color": {
  882. "mode": "palette-classic"
  883. },
  884. "custom": {
  885. "axisBorderShow": false,
  886. "axisCenteredZero": false,
  887. "axisColorMode": "text",
  888. "axisLabel": "",
  889. "axisPlacement": "auto",
  890. "barAlignment": 0,
  891. "drawStyle": "line",
  892. "fillOpacity": 10,
  893. "gradientMode": "none",
  894. "hideFrom": {
  895. "legend": false,
  896. "tooltip": false,
  897. "viz": false
  898. },
  899. "insertNulls": false,
  900. "lineInterpolation": "linear",
  901. "lineWidth": 2,
  902. "pointSize": 5,
  903. "scaleDistribution": {
  904. "type": "linear"
  905. },
  906. "showPoints": "never",
  907. "spanNulls": true,
  908. "stacking": {
  909. "group": "A",
  910. "mode": "none"
  911. },
  912. "thresholdsStyle": {
  913. "mode": "off"
  914. }
  915. },
  916. "mappings": [],
  917. "thresholds": {
  918. "mode": "absolute",
  919. "steps": [
  920. {
  921. "color": "green"
  922. },
  923. {
  924. "color": "red",
  925. "value": 80
  926. }
  927. ]
  928. },
  929. "unit": "bytes"
  930. },
  931. "overrides": [
  932. {
  933. "matcher": {
  934. "id": "byName",
  935. "options": "alloc rate"
  936. },
  937. "properties": [
  938. {
  939. "id": "unit",
  940. "value": "Bps"
  941. }
  942. ]
  943. }
  944. ]
  945. },
  946. "gridPos": {
  947. "h": 7,
  948. "w": 12,
  949. "x": 0,
  950. "y": 26
  951. },
  952. "id": 12,
  953. "options": {
  954. "legend": {
  955. "calcs": [
  956. "mean",
  957. "lastNotNull",
  958. "max"
  959. ],
  960. "displayMode": "table",
  961. "placement": "bottom",
  962. "showLegend": true
  963. },
  964. "tooltip": {
  965. "mode": "multi",
  966. "sort": "none"
  967. }
  968. },
  969. "pluginVersion": "10.4.3",
  970. "targets": [
  971. {
  972. "datasource": {
  973. "type": "prometheus",
  974. "uid": "${DS_PROMETHEUS}"
  975. },
  976. "expr": "go_memstats_alloc_bytes{job=\"miniflux\"}",
  977. "format": "time_series",
  978. "interval": "",
  979. "intervalFactor": 2,
  980. "legendFormat": "bytes allocated",
  981. "metric": "go_memstats_alloc_bytes",
  982. "refId": "A",
  983. "step": 4
  984. },
  985. {
  986. "datasource": {
  987. "type": "prometheus",
  988. "uid": "${DS_PROMETHEUS}"
  989. },
  990. "expr": "rate(go_memstats_alloc_bytes_total{job=\"miniflux\"}[30s])",
  991. "format": "time_series",
  992. "interval": "",
  993. "intervalFactor": 2,
  994. "legendFormat": "alloc rate",
  995. "metric": "go_memstats_alloc_bytes_total",
  996. "refId": "B",
  997. "step": 4
  998. },
  999. {
  1000. "datasource": {
  1001. "type": "prometheus",
  1002. "uid": "${DS_PROMETHEUS}"
  1003. },
  1004. "expr": "go_memstats_stack_inuse_bytes{job=\"miniflux\"}",
  1005. "format": "time_series",
  1006. "interval": "",
  1007. "intervalFactor": 2,
  1008. "legendFormat": "stack inuse",
  1009. "metric": "go_memstats_stack_inuse_bytes",
  1010. "refId": "C",
  1011. "step": 4
  1012. },
  1013. {
  1014. "datasource": {
  1015. "type": "prometheus",
  1016. "uid": "${DS_PROMETHEUS}"
  1017. },
  1018. "expr": "go_memstats_heap_inuse_bytes{job=\"miniflux\"}",
  1019. "format": "time_series",
  1020. "hide": false,
  1021. "interval": "",
  1022. "intervalFactor": 2,
  1023. "legendFormat": "heap inuse",
  1024. "metric": "go_memstats_heap_inuse_bytes",
  1025. "refId": "D",
  1026. "step": 4
  1027. }
  1028. ],
  1029. "title": "Golang Memory",
  1030. "type": "timeseries"
  1031. },
  1032. {
  1033. "datasource": {
  1034. "type": "prometheus",
  1035. "uid": "${DS_PROMETHEUS}"
  1036. },
  1037. "fieldConfig": {
  1038. "defaults": {
  1039. "color": {
  1040. "mode": "palette-classic"
  1041. },
  1042. "custom": {
  1043. "axisBorderShow": false,
  1044. "axisCenteredZero": false,
  1045. "axisColorMode": "text",
  1046. "axisLabel": "",
  1047. "axisPlacement": "auto",
  1048. "barAlignment": 0,
  1049. "drawStyle": "line",
  1050. "fillOpacity": 10,
  1051. "gradientMode": "none",
  1052. "hideFrom": {
  1053. "legend": false,
  1054. "tooltip": false,
  1055. "viz": false
  1056. },
  1057. "insertNulls": false,
  1058. "lineInterpolation": "linear",
  1059. "lineWidth": 1,
  1060. "pointSize": 5,
  1061. "scaleDistribution": {
  1062. "type": "linear"
  1063. },
  1064. "showPoints": "never",
  1065. "spanNulls": false,
  1066. "stacking": {
  1067. "group": "A",
  1068. "mode": "none"
  1069. },
  1070. "thresholdsStyle": {
  1071. "mode": "off"
  1072. }
  1073. },
  1074. "mappings": [],
  1075. "thresholds": {
  1076. "mode": "absolute",
  1077. "steps": [
  1078. {
  1079. "color": "green"
  1080. },
  1081. {
  1082. "color": "red",
  1083. "value": 80
  1084. }
  1085. ]
  1086. },
  1087. "unit": "short"
  1088. },
  1089. "overrides": []
  1090. },
  1091. "gridPos": {
  1092. "h": 7,
  1093. "w": 12,
  1094. "x": 12,
  1095. "y": 26
  1096. },
  1097. "id": 8,
  1098. "options": {
  1099. "legend": {
  1100. "calcs": [
  1101. "mean",
  1102. "lastNotNull",
  1103. "max",
  1104. "min"
  1105. ],
  1106. "displayMode": "table",
  1107. "placement": "bottom",
  1108. "showLegend": true
  1109. },
  1110. "tooltip": {
  1111. "mode": "multi",
  1112. "sort": "none"
  1113. }
  1114. },
  1115. "pluginVersion": "10.4.3",
  1116. "targets": [
  1117. {
  1118. "datasource": {
  1119. "type": "prometheus",
  1120. "uid": "${DS_PROMETHEUS}"
  1121. },
  1122. "expr": "go_goroutines{job=\"miniflux\"}",
  1123. "interval": "",
  1124. "legendFormat": "{{ instance }} - Goroutines",
  1125. "refId": "A"
  1126. },
  1127. {
  1128. "datasource": {
  1129. "type": "prometheus",
  1130. "uid": "${DS_PROMETHEUS}"
  1131. },
  1132. "expr": "go_threads{job=\"miniflux\"}",
  1133. "interval": "",
  1134. "legendFormat": "{{ instance }} - OS threads",
  1135. "refId": "B"
  1136. }
  1137. ],
  1138. "title": "Concurrency",
  1139. "type": "timeseries"
  1140. },
  1141. {
  1142. "datasource": {
  1143. "type": "prometheus",
  1144. "uid": "${DS_PROMETHEUS}"
  1145. },
  1146. "fieldConfig": {
  1147. "defaults": {
  1148. "color": {
  1149. "mode": "palette-classic"
  1150. },
  1151. "custom": {
  1152. "axisBorderShow": false,
  1153. "axisCenteredZero": false,
  1154. "axisColorMode": "text",
  1155. "axisLabel": "",
  1156. "axisPlacement": "auto",
  1157. "barAlignment": 0,
  1158. "drawStyle": "line",
  1159. "fillOpacity": 10,
  1160. "gradientMode": "none",
  1161. "hideFrom": {
  1162. "legend": false,
  1163. "tooltip": false,
  1164. "viz": false
  1165. },
  1166. "insertNulls": false,
  1167. "lineInterpolation": "linear",
  1168. "lineWidth": 1,
  1169. "pointSize": 5,
  1170. "scaleDistribution": {
  1171. "type": "linear"
  1172. },
  1173. "showPoints": "never",
  1174. "spanNulls": false,
  1175. "stacking": {
  1176. "group": "A",
  1177. "mode": "none"
  1178. },
  1179. "thresholdsStyle": {
  1180. "mode": "off"
  1181. }
  1182. },
  1183. "links": [],
  1184. "mappings": [],
  1185. "thresholds": {
  1186. "mode": "absolute",
  1187. "steps": [
  1188. {
  1189. "color": "green"
  1190. },
  1191. {
  1192. "color": "red",
  1193. "value": 80
  1194. }
  1195. ]
  1196. },
  1197. "unit": "decbytes"
  1198. },
  1199. "overrides": []
  1200. },
  1201. "gridPos": {
  1202. "h": 8,
  1203. "w": 12,
  1204. "x": 0,
  1205. "y": 33
  1206. },
  1207. "id": 34,
  1208. "options": {
  1209. "legend": {
  1210. "calcs": [
  1211. "lastNotNull"
  1212. ],
  1213. "displayMode": "table",
  1214. "placement": "bottom",
  1215. "showLegend": true
  1216. },
  1217. "tooltip": {
  1218. "mode": "multi",
  1219. "sort": "none"
  1220. }
  1221. },
  1222. "pluginVersion": "10.4.3",
  1223. "targets": [
  1224. {
  1225. "datasource": {
  1226. "type": "prometheus",
  1227. "uid": "${DS_PROMETHEUS}"
  1228. },
  1229. "expr": "go_memstats_stack_inuse_bytes{job=\"miniflux\"}",
  1230. "format": "time_series",
  1231. "interval": "",
  1232. "intervalFactor": 1,
  1233. "legendFormat": "{{ instance }} - stack_inuse",
  1234. "refId": "A"
  1235. },
  1236. {
  1237. "datasource": {
  1238. "type": "prometheus",
  1239. "uid": "${DS_PROMETHEUS}"
  1240. },
  1241. "expr": "go_memstats_stack_sys_bytes{job=\"miniflux\"}",
  1242. "format": "time_series",
  1243. "interval": "",
  1244. "intervalFactor": 1,
  1245. "legendFormat": "{{ instance }} - stack_sys",
  1246. "refId": "B"
  1247. }
  1248. ],
  1249. "title": "Memory in Stack",
  1250. "type": "timeseries"
  1251. },
  1252. {
  1253. "datasource": {
  1254. "type": "prometheus",
  1255. "uid": "${DS_PROMETHEUS}"
  1256. },
  1257. "fieldConfig": {
  1258. "defaults": {
  1259. "color": {
  1260. "mode": "palette-classic"
  1261. },
  1262. "custom": {
  1263. "axisBorderShow": false,
  1264. "axisCenteredZero": false,
  1265. "axisColorMode": "text",
  1266. "axisLabel": "",
  1267. "axisPlacement": "auto",
  1268. "barAlignment": 0,
  1269. "drawStyle": "line",
  1270. "fillOpacity": 10,
  1271. "gradientMode": "none",
  1272. "hideFrom": {
  1273. "legend": false,
  1274. "tooltip": false,
  1275. "viz": false
  1276. },
  1277. "insertNulls": false,
  1278. "lineInterpolation": "linear",
  1279. "lineWidth": 1,
  1280. "pointSize": 5,
  1281. "scaleDistribution": {
  1282. "type": "linear"
  1283. },
  1284. "showPoints": "never",
  1285. "spanNulls": false,
  1286. "stacking": {
  1287. "group": "A",
  1288. "mode": "none"
  1289. },
  1290. "thresholdsStyle": {
  1291. "mode": "off"
  1292. }
  1293. },
  1294. "links": [],
  1295. "mappings": [],
  1296. "thresholds": {
  1297. "mode": "absolute",
  1298. "steps": [
  1299. {
  1300. "color": "green"
  1301. },
  1302. {
  1303. "color": "red",
  1304. "value": 80
  1305. }
  1306. ]
  1307. },
  1308. "unit": "decbytes"
  1309. },
  1310. "overrides": []
  1311. },
  1312. "gridPos": {
  1313. "h": 8,
  1314. "w": 12,
  1315. "x": 12,
  1316. "y": 33
  1317. },
  1318. "id": 32,
  1319. "options": {
  1320. "legend": {
  1321. "calcs": [],
  1322. "displayMode": "list",
  1323. "placement": "bottom",
  1324. "showLegend": true
  1325. },
  1326. "tooltip": {
  1327. "mode": "multi",
  1328. "sort": "none"
  1329. }
  1330. },
  1331. "pluginVersion": "10.4.3",
  1332. "targets": [
  1333. {
  1334. "datasource": {
  1335. "type": "prometheus",
  1336. "uid": "${DS_PROMETHEUS}"
  1337. },
  1338. "expr": "go_memstats_heap_alloc_bytes{job=\"miniflux\"}",
  1339. "format": "time_series",
  1340. "interval": "",
  1341. "intervalFactor": 1,
  1342. "legendFormat": "{{ instance }} - heap_alloc",
  1343. "refId": "B"
  1344. },
  1345. {
  1346. "datasource": {
  1347. "type": "prometheus",
  1348. "uid": "${DS_PROMETHEUS}"
  1349. },
  1350. "expr": "go_memstats_heap_sys_bytes{job=\"miniflux\"}",
  1351. "format": "time_series",
  1352. "interval": "",
  1353. "intervalFactor": 1,
  1354. "legendFormat": "{{ instance }} - heap_sys",
  1355. "refId": "A"
  1356. },
  1357. {
  1358. "datasource": {
  1359. "type": "prometheus",
  1360. "uid": "${DS_PROMETHEUS}"
  1361. },
  1362. "expr": "go_memstats_heap_idle_bytes{job=\"miniflux\"}",
  1363. "format": "time_series",
  1364. "interval": "",
  1365. "intervalFactor": 1,
  1366. "legendFormat": "{{ instance }} - heap_idle",
  1367. "refId": "C"
  1368. },
  1369. {
  1370. "datasource": {
  1371. "type": "prometheus",
  1372. "uid": "${DS_PROMETHEUS}"
  1373. },
  1374. "expr": "go_memstats_heap_inuse_bytes{job=\"miniflux\"}",
  1375. "format": "time_series",
  1376. "interval": "",
  1377. "intervalFactor": 1,
  1378. "legendFormat": "{{ instance }} - heap_inuse",
  1379. "refId": "D"
  1380. },
  1381. {
  1382. "datasource": {
  1383. "type": "prometheus",
  1384. "uid": "${DS_PROMETHEUS}"
  1385. },
  1386. "expr": "go_memstats_heap_released_bytes{job=\"miniflux\"}",
  1387. "format": "time_series",
  1388. "interval": "",
  1389. "intervalFactor": 1,
  1390. "legendFormat": "{{ instance }} - heap_released",
  1391. "refId": "E"
  1392. }
  1393. ],
  1394. "title": "Memory in Heap",
  1395. "type": "timeseries"
  1396. },
  1397. {
  1398. "datasource": {
  1399. "type": "prometheus",
  1400. "uid": "${DS_PROMETHEUS}"
  1401. },
  1402. "fieldConfig": {
  1403. "defaults": {
  1404. "color": {
  1405. "mode": "palette-classic"
  1406. },
  1407. "custom": {
  1408. "axisBorderShow": false,
  1409. "axisCenteredZero": false,
  1410. "axisColorMode": "text",
  1411. "axisLabel": "",
  1412. "axisPlacement": "auto",
  1413. "barAlignment": 0,
  1414. "drawStyle": "line",
  1415. "fillOpacity": 10,
  1416. "gradientMode": "none",
  1417. "hideFrom": {
  1418. "legend": false,
  1419. "tooltip": false,
  1420. "viz": false
  1421. },
  1422. "insertNulls": false,
  1423. "lineInterpolation": "linear",
  1424. "lineWidth": 2,
  1425. "pointSize": 5,
  1426. "scaleDistribution": {
  1427. "type": "linear"
  1428. },
  1429. "showPoints": "never",
  1430. "spanNulls": true,
  1431. "stacking": {
  1432. "group": "A",
  1433. "mode": "none"
  1434. },
  1435. "thresholdsStyle": {
  1436. "mode": "off"
  1437. }
  1438. },
  1439. "mappings": [],
  1440. "thresholds": {
  1441. "mode": "absolute",
  1442. "steps": [
  1443. {
  1444. "color": "green"
  1445. },
  1446. {
  1447. "color": "red",
  1448. "value": 80
  1449. }
  1450. ]
  1451. },
  1452. "unit": "s"
  1453. },
  1454. "overrides": []
  1455. },
  1456. "gridPos": {
  1457. "h": 8,
  1458. "w": 12,
  1459. "x": 0,
  1460. "y": 41
  1461. },
  1462. "id": 14,
  1463. "options": {
  1464. "legend": {
  1465. "calcs": [
  1466. "mean",
  1467. "lastNotNull",
  1468. "max"
  1469. ],
  1470. "displayMode": "table",
  1471. "placement": "bottom",
  1472. "showLegend": true
  1473. },
  1474. "tooltip": {
  1475. "mode": "multi",
  1476. "sort": "none"
  1477. }
  1478. },
  1479. "pluginVersion": "10.4.3",
  1480. "targets": [
  1481. {
  1482. "datasource": {
  1483. "type": "prometheus",
  1484. "uid": "${DS_PROMETHEUS}"
  1485. },
  1486. "expr": "go_gc_duration_seconds{job=\"miniflux\"}",
  1487. "format": "time_series",
  1488. "interval": "",
  1489. "intervalFactor": 2,
  1490. "legendFormat": "{{instance}}: {{quantile}}",
  1491. "metric": "go_gc_duration_seconds",
  1492. "refId": "A",
  1493. "step": 4
  1494. }
  1495. ],
  1496. "title": "GC Duration Quantiles",
  1497. "type": "timeseries"
  1498. },
  1499. {
  1500. "datasource": {
  1501. "type": "prometheus",
  1502. "uid": "${DS_PROMETHEUS}"
  1503. },
  1504. "fieldConfig": {
  1505. "defaults": {
  1506. "color": {
  1507. "mode": "palette-classic"
  1508. },
  1509. "custom": {
  1510. "axisBorderShow": false,
  1511. "axisCenteredZero": false,
  1512. "axisColorMode": "text",
  1513. "axisLabel": "",
  1514. "axisPlacement": "auto",
  1515. "barAlignment": 0,
  1516. "drawStyle": "line",
  1517. "fillOpacity": 10,
  1518. "gradientMode": "none",
  1519. "hideFrom": {
  1520. "legend": false,
  1521. "tooltip": false,
  1522. "viz": false
  1523. },
  1524. "insertNulls": false,
  1525. "lineInterpolation": "linear",
  1526. "lineWidth": 1,
  1527. "pointSize": 5,
  1528. "scaleDistribution": {
  1529. "type": "linear"
  1530. },
  1531. "showPoints": "never",
  1532. "spanNulls": false,
  1533. "stacking": {
  1534. "group": "A",
  1535. "mode": "none"
  1536. },
  1537. "thresholdsStyle": {
  1538. "mode": "off"
  1539. }
  1540. },
  1541. "links": [],
  1542. "mappings": [],
  1543. "thresholds": {
  1544. "mode": "absolute",
  1545. "steps": [
  1546. {
  1547. "color": "green"
  1548. },
  1549. {
  1550. "color": "red",
  1551. "value": 80
  1552. }
  1553. ]
  1554. },
  1555. "unit": "short"
  1556. },
  1557. "overrides": []
  1558. },
  1559. "gridPos": {
  1560. "h": 8,
  1561. "w": 12,
  1562. "x": 12,
  1563. "y": 41
  1564. },
  1565. "id": 30,
  1566. "options": {
  1567. "legend": {
  1568. "calcs": [],
  1569. "displayMode": "list",
  1570. "placement": "bottom",
  1571. "showLegend": true
  1572. },
  1573. "tooltip": {
  1574. "mode": "multi",
  1575. "sort": "none"
  1576. }
  1577. },
  1578. "pluginVersion": "10.4.3",
  1579. "targets": [
  1580. {
  1581. "datasource": {
  1582. "type": "prometheus",
  1583. "uid": "${DS_PROMETHEUS}"
  1584. },
  1585. "expr": "go_memstats_mallocs_total{job=\"miniflux\"} - go_memstats_frees_total{job=\"miniflux\"}",
  1586. "format": "time_series",
  1587. "interval": "",
  1588. "intervalFactor": 1,
  1589. "legendFormat": "{{ instance }}",
  1590. "refId": "A"
  1591. }
  1592. ],
  1593. "title": "Number of Live Objects",
  1594. "type": "timeseries"
  1595. }
  1596. ],
  1597. "refresh": "30s",
  1598. "schemaVersion": 39,
  1599. "tags": [],
  1600. "templating": {
  1601. "list": [
  1602. {
  1603. "current": {
  1604. "selected": false,
  1605. "text": "prometheus",
  1606. "value": "354cc25c-f240-4f6f-a2a9-2d68c22df64e"
  1607. },
  1608. "hide": 0,
  1609. "includeAll": false,
  1610. "label": "Datasource",
  1611. "multi": false,
  1612. "name": "DS_PROMETHEUS",
  1613. "options": [],
  1614. "query": "prometheus",
  1615. "queryValue": "",
  1616. "refresh": 1,
  1617. "regex": "",
  1618. "skipUrlSync": false,
  1619. "type": "datasource"
  1620. }
  1621. ]
  1622. },
  1623. "time": {
  1624. "from": "now-24h",
  1625. "to": "now"
  1626. },
  1627. "timepicker": {
  1628. "refresh_intervals": [
  1629. "5s",
  1630. "10s",
  1631. "30s",
  1632. "1m",
  1633. "5m",
  1634. "15m",
  1635. "30m",
  1636. "1h",
  1637. "2h",
  1638. "1d"
  1639. ]
  1640. },
  1641. "timezone": "",
  1642. "title": "Miniflux",
  1643. "uid": "vSaPgcFMk",
  1644. "version": 3,
  1645. "weekStart": ""
  1646. }