dashboard.json 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": {
  7. "type": "grafana",
  8. "uid": "-- Grafana --"
  9. },
  10. "enable": true,
  11. "hide": true,
  12. "iconColor": "rgba(0, 211, 255, 1)",
  13. "name": "Annotations & Alerts",
  14. "type": "dashboard"
  15. }
  16. ]
  17. },
  18. "editable": true,
  19. "fiscalYearStartMonth": 0,
  20. "graphTooltip": 0,
  21. "id": 7,
  22. "links": [],
  23. "panels": [
  24. {
  25. "datasource": {
  26. "type": "prometheus",
  27. "uid": "prometheus"
  28. },
  29. "fieldConfig": {
  30. "defaults": {
  31. "color": {
  32. "mode": "palette-classic"
  33. },
  34. "custom": {
  35. "axisBorderShow": false,
  36. "axisCenteredZero": false,
  37. "axisColorMode": "text",
  38. "axisLabel": "",
  39. "axisPlacement": "auto",
  40. "barAlignment": 0,
  41. "barWidthFactor": 0.6,
  42. "drawStyle": "line",
  43. "fillOpacity": 10,
  44. "gradientMode": "none",
  45. "hideFrom": {
  46. "legend": false,
  47. "tooltip": false,
  48. "vis": false,
  49. "viz": false
  50. },
  51. "insertNulls": false,
  52. "lineInterpolation": "linear",
  53. "lineWidth": 1,
  54. "pointSize": 5,
  55. "scaleDistribution": {
  56. "type": "linear"
  57. },
  58. "showPoints": "never",
  59. "spanNulls": false,
  60. "stacking": {
  61. "group": "A",
  62. "mode": "none"
  63. },
  64. "thresholdsStyle": {
  65. "mode": "off"
  66. }
  67. },
  68. "mappings": [],
  69. "thresholds": {
  70. "mode": "absolute",
  71. "steps": [
  72. {
  73. "color": "green"
  74. },
  75. {
  76. "color": "red",
  77. "value": 80
  78. }
  79. ]
  80. },
  81. "unit": "percent"
  82. },
  83. "overrides": []
  84. },
  85. "gridPos": {
  86. "h": 8,
  87. "w": 12,
  88. "x": 0,
  89. "y": 0
  90. },
  91. "id": 6,
  92. "options": {
  93. "legend": {
  94. "calcs": [],
  95. "displayMode": "list",
  96. "placement": "bottom",
  97. "showLegend": true
  98. },
  99. "tooltip": {
  100. "hideZeros": false,
  101. "mode": "single",
  102. "sort": "none"
  103. }
  104. },
  105. "pluginVersion": "12.0.2",
  106. "targets": [
  107. {
  108. "datasource": {
  109. "type": "prometheus",
  110. "uid": "prometheus"
  111. },
  112. "expr": "process_cpu_usage_percent",
  113. "format": "time_series",
  114. "intervalFactor": 1,
  115. "legendFormat": "CPU Usage",
  116. "refId": "A"
  117. }
  118. ],
  119. "title": "Process CPU Usage",
  120. "type": "timeseries"
  121. },
  122. {
  123. "datasource": {
  124. "type": "prometheus",
  125. "uid": "prometheus"
  126. },
  127. "fieldConfig": {
  128. "defaults": {
  129. "color": {
  130. "mode": "palette-classic"
  131. },
  132. "custom": {
  133. "axisBorderShow": false,
  134. "axisCenteredZero": false,
  135. "axisColorMode": "text",
  136. "axisLabel": "",
  137. "axisPlacement": "auto",
  138. "barAlignment": 0,
  139. "barWidthFactor": 0.6,
  140. "drawStyle": "line",
  141. "fillOpacity": 10,
  142. "gradientMode": "none",
  143. "hideFrom": {
  144. "legend": false,
  145. "tooltip": false,
  146. "vis": false,
  147. "viz": false
  148. },
  149. "insertNulls": false,
  150. "lineInterpolation": "linear",
  151. "lineWidth": 1,
  152. "pointSize": 5,
  153. "scaleDistribution": {
  154. "type": "linear"
  155. },
  156. "showPoints": "never",
  157. "spanNulls": false,
  158. "stacking": {
  159. "group": "A",
  160. "mode": "none"
  161. },
  162. "thresholdsStyle": {
  163. "mode": "off"
  164. }
  165. },
  166. "mappings": [],
  167. "thresholds": {
  168. "mode": "absolute",
  169. "steps": [
  170. {
  171. "color": "green"
  172. },
  173. {
  174. "color": "red",
  175. "value": 80
  176. }
  177. ]
  178. },
  179. "unit": "bytes"
  180. },
  181. "overrides": []
  182. },
  183. "gridPos": {
  184. "h": 8,
  185. "w": 6,
  186. "x": 12,
  187. "y": 0
  188. },
  189. "id": 7,
  190. "options": {
  191. "legend": {
  192. "calcs": [],
  193. "displayMode": "list",
  194. "placement": "bottom",
  195. "showLegend": true
  196. },
  197. "tooltip": {
  198. "hideZeros": false,
  199. "mode": "single",
  200. "sort": "none"
  201. }
  202. },
  203. "pluginVersion": "12.0.2",
  204. "targets": [
  205. {
  206. "datasource": {
  207. "type": "prometheus",
  208. "uid": "prometheus"
  209. },
  210. "expr": "process_memory_bytes",
  211. "format": "time_series",
  212. "intervalFactor": 1,
  213. "legendFormat": "Memory (Bytes)",
  214. "refId": "A"
  215. }
  216. ],
  217. "title": "Process Memory Usage",
  218. "type": "timeseries"
  219. },
  220. {
  221. "datasource": {
  222. "type": "prometheus",
  223. "uid": "prometheus"
  224. },
  225. "fieldConfig": {
  226. "defaults": {
  227. "color": {
  228. "mode": "palette-classic"
  229. },
  230. "custom": {
  231. "axisBorderShow": false,
  232. "axisCenteredZero": false,
  233. "axisColorMode": "text",
  234. "axisLabel": "",
  235. "axisPlacement": "auto",
  236. "barAlignment": 0,
  237. "barWidthFactor": 0.6,
  238. "drawStyle": "line",
  239. "fillOpacity": 10,
  240. "gradientMode": "none",
  241. "hideFrom": {
  242. "legend": false,
  243. "tooltip": false,
  244. "vis": false,
  245. "viz": false
  246. },
  247. "insertNulls": false,
  248. "lineInterpolation": "linear",
  249. "lineWidth": 1,
  250. "pointSize": 5,
  251. "scaleDistribution": {
  252. "type": "linear"
  253. },
  254. "showPoints": "never",
  255. "spanNulls": false,
  256. "stacking": {
  257. "group": "A",
  258. "mode": "none"
  259. },
  260. "thresholdsStyle": {
  261. "mode": "off"
  262. }
  263. },
  264. "mappings": [],
  265. "thresholds": {
  266. "mode": "absolute",
  267. "steps": [
  268. {
  269. "color": "green"
  270. },
  271. {
  272. "color": "red",
  273. "value": 80
  274. }
  275. ]
  276. },
  277. "unit": "percent"
  278. },
  279. "overrides": []
  280. },
  281. "gridPos": {
  282. "h": 8,
  283. "w": 6,
  284. "x": 18,
  285. "y": 0
  286. },
  287. "id": 13,
  288. "options": {
  289. "legend": {
  290. "calcs": [],
  291. "displayMode": "list",
  292. "placement": "bottom",
  293. "showLegend": true
  294. },
  295. "tooltip": {
  296. "hideZeros": false,
  297. "mode": "single",
  298. "sort": "none"
  299. }
  300. },
  301. "pluginVersion": "12.0.2",
  302. "targets": [
  303. {
  304. "datasource": {
  305. "type": "prometheus",
  306. "uid": "prometheus"
  307. },
  308. "expr": "process_memory_percent",
  309. "format": "time_series",
  310. "intervalFactor": 1,
  311. "legendFormat": "Memory (%)",
  312. "refId": "A"
  313. }
  314. ],
  315. "title": "Memory Percentage",
  316. "type": "timeseries"
  317. },
  318. {
  319. "datasource": {
  320. "type": "prometheus",
  321. "uid": "prometheus"
  322. },
  323. "fieldConfig": {
  324. "defaults": {
  325. "color": {
  326. "mode": "palette-classic"
  327. },
  328. "custom": {
  329. "axisBorderShow": false,
  330. "axisCenteredZero": false,
  331. "axisColorMode": "text",
  332. "axisLabel": "",
  333. "axisPlacement": "auto",
  334. "barAlignment": 0,
  335. "barWidthFactor": 0.6,
  336. "drawStyle": "line",
  337. "fillOpacity": 10,
  338. "gradientMode": "none",
  339. "hideFrom": {
  340. "legend": false,
  341. "tooltip": false,
  342. "vis": false,
  343. "viz": false
  344. },
  345. "insertNulls": false,
  346. "lineInterpolation": "linear",
  347. "lineWidth": 1,
  348. "pointSize": 5,
  349. "scaleDistribution": {
  350. "type": "linear"
  351. },
  352. "showPoints": "never",
  353. "spanNulls": false,
  354. "stacking": {
  355. "group": "A",
  356. "mode": "none"
  357. },
  358. "thresholdsStyle": {
  359. "mode": "off"
  360. }
  361. },
  362. "mappings": [],
  363. "thresholds": {
  364. "mode": "absolute",
  365. "steps": [
  366. {
  367. "color": "green"
  368. },
  369. {
  370. "color": "red",
  371. "value": 80
  372. }
  373. ]
  374. },
  375. "unit": "reqps"
  376. },
  377. "overrides": []
  378. },
  379. "gridPos": {
  380. "h": 8,
  381. "w": 12,
  382. "x": 0,
  383. "y": 8
  384. },
  385. "id": 1,
  386. "options": {
  387. "legend": {
  388. "calcs": [],
  389. "displayMode": "list",
  390. "placement": "bottom",
  391. "showLegend": true
  392. },
  393. "tooltip": {
  394. "hideZeros": false,
  395. "mode": "single",
  396. "sort": "none"
  397. }
  398. },
  399. "pluginVersion": "12.0.2",
  400. "targets": [
  401. {
  402. "datasource": {
  403. "type": "prometheus",
  404. "uid": "prometheus"
  405. },
  406. "editorMode": "code",
  407. "expr": "rate(cdk_http_requests_total[1m])",
  408. "format": "time_series",
  409. "intervalFactor": 1,
  410. "legendFormat": "{{endpoint}} - {{status}}",
  411. "range": true,
  412. "refId": "A"
  413. }
  414. ],
  415. "title": "HTTP Request Rate by Endpoint",
  416. "type": "timeseries"
  417. },
  418. {
  419. "datasource": {
  420. "type": "prometheus",
  421. "uid": "prometheus"
  422. },
  423. "fieldConfig": {
  424. "defaults": {
  425. "color": {
  426. "mode": "thresholds"
  427. },
  428. "mappings": [],
  429. "thresholds": {
  430. "mode": "absolute",
  431. "steps": [
  432. {
  433. "color": "green"
  434. },
  435. {
  436. "color": "red",
  437. "value": 50
  438. }
  439. ]
  440. },
  441. "unit": "percent"
  442. },
  443. "overrides": []
  444. },
  445. "gridPos": {
  446. "h": 8,
  447. "w": 6,
  448. "x": 12,
  449. "y": 8
  450. },
  451. "id": 2,
  452. "options": {
  453. "minVizHeight": 75,
  454. "minVizWidth": 75,
  455. "orientation": "auto",
  456. "reduceOptions": {
  457. "calcs": [
  458. "lastNotNull"
  459. ],
  460. "fields": "",
  461. "values": false
  462. },
  463. "showThresholdLabels": false,
  464. "showThresholdMarkers": true,
  465. "sizing": "auto"
  466. },
  467. "pluginVersion": "12.0.2",
  468. "targets": [
  469. {
  470. "datasource": {
  471. "type": "prometheus",
  472. "uid": "prometheus"
  473. },
  474. "editorMode": "code",
  475. "exemplar": false,
  476. "expr": "sum(rate(cdk_http_requests_total{status!=\"200\"}[$__range])) / sum(rate(cdk_http_requests_total[$__range])) * 100",
  477. "format": "time_series",
  478. "instant": false,
  479. "intervalFactor": 1,
  480. "legendFormat": "Error Rate",
  481. "range": true,
  482. "refId": "A"
  483. }
  484. ],
  485. "title": "HTTP Error Rate",
  486. "type": "gauge"
  487. },
  488. {
  489. "datasource": {
  490. "type": "prometheus",
  491. "uid": "prometheus"
  492. },
  493. "fieldConfig": {
  494. "defaults": {
  495. "color": {
  496. "mode": "palette-classic"
  497. },
  498. "custom": {
  499. "hideFrom": {
  500. "legend": false,
  501. "tooltip": false,
  502. "vis": false,
  503. "viz": false
  504. }
  505. },
  506. "mappings": []
  507. },
  508. "overrides": [
  509. {
  510. "__systemRef": "hideSeriesFrom",
  511. "matcher": {
  512. "id": "byNames",
  513. "options": {
  514. "mode": "exclude",
  515. "names": [
  516. "/v1/keys/{keyset_id} (200)",
  517. "/v1/mint/quote/bolt11 (200)",
  518. "/v1/swap (400)",
  519. "/v1/mint/bolt11 (200)"
  520. ],
  521. "prefix": "All except:",
  522. "readOnly": true
  523. }
  524. },
  525. "properties": [
  526. {
  527. "id": "custom.hideFrom",
  528. "value": {
  529. "legend": false,
  530. "tooltip": false,
  531. "viz": true
  532. }
  533. }
  534. ]
  535. }
  536. ]
  537. },
  538. "gridPos": {
  539. "h": 8,
  540. "w": 6,
  541. "x": 18,
  542. "y": 8
  543. },
  544. "id": 9,
  545. "options": {
  546. "legend": {
  547. "displayMode": "list",
  548. "placement": "bottom",
  549. "showLegend": true,
  550. "values": [
  551. "value"
  552. ]
  553. },
  554. "pieType": "pie",
  555. "reduceOptions": {
  556. "calcs": [
  557. "lastNotNull"
  558. ],
  559. "fields": "",
  560. "values": false
  561. },
  562. "tooltip": {
  563. "hideZeros": false,
  564. "mode": "single",
  565. "sort": "none"
  566. }
  567. },
  568. "pluginVersion": "12.0.2",
  569. "targets": [
  570. {
  571. "datasource": {
  572. "type": "prometheus",
  573. "uid": "prometheus"
  574. },
  575. "expr": "cdk_http_requests_total",
  576. "format": "time_series",
  577. "intervalFactor": 1,
  578. "legendFormat": "{{endpoint}} ({{status}})",
  579. "refId": "A"
  580. }
  581. ],
  582. "title": "HTTP Requests Distribution",
  583. "type": "piechart"
  584. },
  585. {
  586. "datasource": {
  587. "type": "prometheus",
  588. "uid": "prometheus"
  589. },
  590. "fieldConfig": {
  591. "defaults": {
  592. "color": {
  593. "mode": "palette-classic"
  594. },
  595. "custom": {
  596. "axisBorderShow": false,
  597. "axisCenteredZero": false,
  598. "axisColorMode": "text",
  599. "axisLabel": "",
  600. "axisPlacement": "auto",
  601. "barAlignment": 0,
  602. "barWidthFactor": 0.6,
  603. "drawStyle": "line",
  604. "fillOpacity": 10,
  605. "gradientMode": "none",
  606. "hideFrom": {
  607. "legend": false,
  608. "tooltip": false,
  609. "vis": false,
  610. "viz": false
  611. },
  612. "insertNulls": false,
  613. "lineInterpolation": "linear",
  614. "lineWidth": 1,
  615. "pointSize": 5,
  616. "scaleDistribution": {
  617. "type": "linear"
  618. },
  619. "showPoints": "never",
  620. "spanNulls": false,
  621. "stacking": {
  622. "group": "A",
  623. "mode": "none"
  624. },
  625. "thresholdsStyle": {
  626. "mode": "off"
  627. }
  628. },
  629. "mappings": [],
  630. "thresholds": {
  631. "mode": "absolute",
  632. "steps": [
  633. {
  634. "color": "green"
  635. },
  636. {
  637. "color": "red",
  638. "value": 80
  639. }
  640. ]
  641. },
  642. "unit": "s"
  643. },
  644. "overrides": [
  645. {
  646. "__systemRef": "hideSeriesFrom",
  647. "matcher": {
  648. "id": "byNames",
  649. "options": {
  650. "mode": "exclude",
  651. "names": [
  652. "p50 - /v1/mint/bolt11"
  653. ],
  654. "prefix": "All except:",
  655. "readOnly": true
  656. }
  657. },
  658. "properties": [
  659. {
  660. "id": "custom.hideFrom",
  661. "value": {
  662. "legend": false,
  663. "tooltip": false,
  664. "viz": true
  665. }
  666. }
  667. ]
  668. }
  669. ]
  670. },
  671. "gridPos": {
  672. "h": 8,
  673. "w": 24,
  674. "x": 0,
  675. "y": 16
  676. },
  677. "id": 3,
  678. "options": {
  679. "legend": {
  680. "calcs": [],
  681. "displayMode": "list",
  682. "placement": "bottom",
  683. "showLegend": true
  684. },
  685. "tooltip": {
  686. "hideZeros": false,
  687. "mode": "single",
  688. "sort": "none"
  689. }
  690. },
  691. "pluginVersion": "12.0.2",
  692. "targets": [
  693. {
  694. "datasource": {
  695. "type": "prometheus",
  696. "uid": "prometheus"
  697. },
  698. "editorMode": "code",
  699. "expr": "histogram_quantile(0.50, rate(cdk_http_request_duration_seconds_bucket[1m]))",
  700. "format": "time_series",
  701. "intervalFactor": 1,
  702. "legendFormat": "p50 - {{endpoint}}",
  703. "range": true,
  704. "refId": "A"
  705. },
  706. {
  707. "datasource": {
  708. "type": "prometheus",
  709. "uid": "prometheus"
  710. },
  711. "editorMode": "code",
  712. "expr": "histogram_quantile(0.95, rate(cdk_http_request_duration_seconds_bucket[1m]))",
  713. "format": "time_series",
  714. "intervalFactor": 1,
  715. "legendFormat": "p95 - {{endpoint}}",
  716. "range": true,
  717. "refId": "B"
  718. },
  719. {
  720. "datasource": {
  721. "type": "prometheus",
  722. "uid": "prometheus"
  723. },
  724. "editorMode": "code",
  725. "expr": "histogram_quantile(0.99, rate(cdk_http_request_duration_seconds_bucket[1m]))",
  726. "format": "time_series",
  727. "intervalFactor": 1,
  728. "legendFormat": "p99 - {{endpoint}}",
  729. "range": true,
  730. "refId": "C"
  731. }
  732. ],
  733. "title": "HTTP Request Duration Percentiles",
  734. "type": "timeseries"
  735. },
  736. {
  737. "datasource": {
  738. "type": "prometheus",
  739. "uid": "prometheus"
  740. },
  741. "fieldConfig": {
  742. "defaults": {
  743. "color": {
  744. "mode": "palette-classic"
  745. },
  746. "custom": {
  747. "axisBorderShow": false,
  748. "axisCenteredZero": false,
  749. "axisColorMode": "text",
  750. "axisLabel": "",
  751. "axisPlacement": "auto",
  752. "barAlignment": 0,
  753. "barWidthFactor": 0.6,
  754. "drawStyle": "line",
  755. "fillOpacity": 10,
  756. "gradientMode": "none",
  757. "hideFrom": {
  758. "legend": false,
  759. "tooltip": false,
  760. "vis": false,
  761. "viz": false
  762. },
  763. "insertNulls": false,
  764. "lineInterpolation": "linear",
  765. "lineWidth": 1,
  766. "pointSize": 5,
  767. "scaleDistribution": {
  768. "type": "linear"
  769. },
  770. "showPoints": "never",
  771. "spanNulls": false,
  772. "stacking": {
  773. "group": "A",
  774. "mode": "none"
  775. },
  776. "thresholdsStyle": {
  777. "mode": "off"
  778. }
  779. },
  780. "mappings": [],
  781. "thresholds": {
  782. "mode": "absolute",
  783. "steps": [
  784. {
  785. "color": "green"
  786. },
  787. {
  788. "color": "red",
  789. "value": 80
  790. }
  791. ]
  792. },
  793. "unit": "ops"
  794. },
  795. "overrides": []
  796. },
  797. "gridPos": {
  798. "h": 8,
  799. "w": 12,
  800. "x": 0,
  801. "y": 24
  802. },
  803. "id": 4,
  804. "options": {
  805. "legend": {
  806. "calcs": [],
  807. "displayMode": "list",
  808. "placement": "bottom",
  809. "showLegend": true
  810. },
  811. "tooltip": {
  812. "hideZeros": false,
  813. "mode": "single",
  814. "sort": "none"
  815. }
  816. },
  817. "pluginVersion": "12.0.2",
  818. "targets": [
  819. {
  820. "datasource": {
  821. "type": "prometheus",
  822. "uid": "prometheus"
  823. },
  824. "editorMode": "code",
  825. "expr": "rate(cdk_mint_operations_total[1m])",
  826. "format": "time_series",
  827. "intervalFactor": 1,
  828. "legendFormat": "{{operation}} - {{status}}",
  829. "range": true,
  830. "refId": "A"
  831. }
  832. ],
  833. "title": "Mint Operations Rate",
  834. "type": "timeseries"
  835. },
  836. {
  837. "datasource": {
  838. "type": "prometheus",
  839. "uid": "prometheus"
  840. },
  841. "fieldConfig": {
  842. "defaults": {
  843. "color": {
  844. "mode": "palette-classic"
  845. },
  846. "custom": {
  847. "axisBorderShow": false,
  848. "axisCenteredZero": false,
  849. "axisColorMode": "text",
  850. "axisLabel": "",
  851. "axisPlacement": "auto",
  852. "barAlignment": 0,
  853. "barWidthFactor": 0.6,
  854. "drawStyle": "line",
  855. "fillOpacity": 10,
  856. "gradientMode": "none",
  857. "hideFrom": {
  858. "legend": false,
  859. "tooltip": false,
  860. "vis": false,
  861. "viz": false
  862. },
  863. "insertNulls": false,
  864. "lineInterpolation": "linear",
  865. "lineWidth": 1,
  866. "pointSize": 5,
  867. "scaleDistribution": {
  868. "type": "linear"
  869. },
  870. "showPoints": "never",
  871. "spanNulls": false,
  872. "stacking": {
  873. "group": "A",
  874. "mode": "none"
  875. },
  876. "thresholdsStyle": {
  877. "mode": "off"
  878. }
  879. },
  880. "mappings": [],
  881. "thresholds": {
  882. "mode": "absolute",
  883. "steps": [
  884. {
  885. "color": "green"
  886. },
  887. {
  888. "color": "red",
  889. "value": 80
  890. }
  891. ]
  892. },
  893. "unit": "short"
  894. },
  895. "overrides": []
  896. },
  897. "gridPos": {
  898. "h": 8,
  899. "w": 12,
  900. "x": 12,
  901. "y": 24
  902. },
  903. "id": 5,
  904. "options": {
  905. "legend": {
  906. "calcs": [],
  907. "displayMode": "list",
  908. "placement": "bottom",
  909. "showLegend": true
  910. },
  911. "tooltip": {
  912. "hideZeros": false,
  913. "mode": "single",
  914. "sort": "none"
  915. }
  916. },
  917. "pluginVersion": "12.0.2",
  918. "targets": [
  919. {
  920. "datasource": {
  921. "type": "prometheus",
  922. "uid": "prometheus"
  923. },
  924. "expr": "cdk_mint_in_flight_requests",
  925. "format": "time_series",
  926. "intervalFactor": 1,
  927. "legendFormat": "{{operation}}",
  928. "refId": "A"
  929. }
  930. ],
  931. "title": "In-Flight Mint Requests",
  932. "type": "timeseries"
  933. },
  934. {
  935. "datasource": {
  936. "type": "prometheus",
  937. "uid": "prometheus"
  938. },
  939. "fieldConfig": {
  940. "defaults": {
  941. "color": {
  942. "mode": "palette-classic"
  943. },
  944. "custom": {
  945. "axisBorderShow": false,
  946. "axisCenteredZero": false,
  947. "axisColorMode": "text",
  948. "axisLabel": "",
  949. "axisPlacement": "auto",
  950. "barAlignment": 0,
  951. "barWidthFactor": 0.6,
  952. "drawStyle": "line",
  953. "fillOpacity": 10,
  954. "gradientMode": "none",
  955. "hideFrom": {
  956. "legend": false,
  957. "tooltip": false,
  958. "vis": false,
  959. "viz": false
  960. },
  961. "insertNulls": false,
  962. "lineInterpolation": "linear",
  963. "lineWidth": 1,
  964. "pointSize": 5,
  965. "scaleDistribution": {
  966. "type": "linear"
  967. },
  968. "showPoints": "never",
  969. "spanNulls": false,
  970. "stacking": {
  971. "group": "A",
  972. "mode": "none"
  973. },
  974. "thresholdsStyle": {
  975. "mode": "off"
  976. }
  977. },
  978. "mappings": [],
  979. "thresholds": {
  980. "mode": "absolute",
  981. "steps": [
  982. {
  983. "color": "green"
  984. },
  985. {
  986. "color": "red",
  987. "value": 80
  988. }
  989. ]
  990. },
  991. "unit": "sats"
  992. },
  993. "overrides": []
  994. },
  995. "gridPos": {
  996. "h": 8,
  997. "w": 12,
  998. "x": 0,
  999. "y": 32
  1000. },
  1001. "id": 11,
  1002. "options": {
  1003. "legend": {
  1004. "calcs": [],
  1005. "displayMode": "list",
  1006. "placement": "bottom",
  1007. "showLegend": true
  1008. },
  1009. "tooltip": {
  1010. "hideZeros": false,
  1011. "mode": "single",
  1012. "sort": "none"
  1013. }
  1014. },
  1015. "pluginVersion": "12.0.2",
  1016. "targets": [
  1017. {
  1018. "datasource": {
  1019. "type": "prometheus",
  1020. "uid": "prometheus"
  1021. },
  1022. "expr": "histogram_quantile(0.50, rate(cdk_lightning_payment_amount_sats_bucket[5m]))",
  1023. "format": "time_series",
  1024. "intervalFactor": 1,
  1025. "legendFormat": "p50 Payment Amount",
  1026. "refId": "A"
  1027. },
  1028. {
  1029. "datasource": {
  1030. "type": "prometheus",
  1031. "uid": "prometheus"
  1032. },
  1033. "expr": "histogram_quantile(0.95, rate(cdk_lightning_payment_amount_sats_bucket[5m]))",
  1034. "format": "time_series",
  1035. "intervalFactor": 1,
  1036. "legendFormat": "p95 Payment Amount",
  1037. "refId": "B"
  1038. }
  1039. ],
  1040. "title": "Lightning Payment Amounts",
  1041. "type": "timeseries"
  1042. },
  1043. {
  1044. "datasource": {
  1045. "type": "prometheus",
  1046. "uid": "prometheus"
  1047. },
  1048. "fieldConfig": {
  1049. "defaults": {
  1050. "color": {
  1051. "mode": "palette-classic"
  1052. },
  1053. "custom": {
  1054. "axisBorderShow": false,
  1055. "axisCenteredZero": false,
  1056. "axisColorMode": "text",
  1057. "axisLabel": "",
  1058. "axisPlacement": "auto",
  1059. "barAlignment": 0,
  1060. "barWidthFactor": 0.6,
  1061. "drawStyle": "line",
  1062. "fillOpacity": 10,
  1063. "gradientMode": "none",
  1064. "hideFrom": {
  1065. "legend": false,
  1066. "tooltip": false,
  1067. "vis": false,
  1068. "viz": false
  1069. },
  1070. "insertNulls": false,
  1071. "lineInterpolation": "linear",
  1072. "lineWidth": 1,
  1073. "pointSize": 5,
  1074. "scaleDistribution": {
  1075. "type": "linear"
  1076. },
  1077. "showPoints": "never",
  1078. "spanNulls": false,
  1079. "stacking": {
  1080. "group": "A",
  1081. "mode": "none"
  1082. },
  1083. "thresholdsStyle": {
  1084. "mode": "off"
  1085. }
  1086. },
  1087. "mappings": [],
  1088. "thresholds": {
  1089. "mode": "absolute",
  1090. "steps": [
  1091. {
  1092. "color": "green"
  1093. },
  1094. {
  1095. "color": "red",
  1096. "value": 80
  1097. }
  1098. ]
  1099. },
  1100. "unit": "short"
  1101. },
  1102. "overrides": []
  1103. },
  1104. "gridPos": {
  1105. "h": 8,
  1106. "w": 12,
  1107. "x": 12,
  1108. "y": 32
  1109. },
  1110. "id": 8,
  1111. "options": {
  1112. "legend": {
  1113. "calcs": [],
  1114. "displayMode": "list",
  1115. "placement": "bottom",
  1116. "showLegend": true
  1117. },
  1118. "tooltip": {
  1119. "hideZeros": false,
  1120. "mode": "single",
  1121. "sort": "none"
  1122. }
  1123. },
  1124. "pluginVersion": "12.0.2",
  1125. "targets": [
  1126. {
  1127. "datasource": {
  1128. "type": "prometheus",
  1129. "uid": "prometheus"
  1130. },
  1131. "expr": "cdk_db_connections_active",
  1132. "format": "time_series",
  1133. "intervalFactor": 1,
  1134. "legendFormat": "Active Connections",
  1135. "refId": "A"
  1136. }
  1137. ],
  1138. "title": "Database Connections",
  1139. "type": "timeseries"
  1140. },
  1141. {
  1142. "datasource": {
  1143. "type": "prometheus",
  1144. "uid": "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. "barWidthFactor": 0.6,
  1159. "drawStyle": "line",
  1160. "fillOpacity": 10,
  1161. "gradientMode": "none",
  1162. "hideFrom": {
  1163. "legend": false,
  1164. "tooltip": false,
  1165. "vis": false,
  1166. "viz": false
  1167. },
  1168. "insertNulls": false,
  1169. "lineInterpolation": "linear",
  1170. "lineWidth": 1,
  1171. "pointSize": 5,
  1172. "scaleDistribution": {
  1173. "type": "linear"
  1174. },
  1175. "showPoints": "never",
  1176. "spanNulls": false,
  1177. "stacking": {
  1178. "group": "A",
  1179. "mode": "none"
  1180. },
  1181. "thresholdsStyle": {
  1182. "mode": "off"
  1183. }
  1184. },
  1185. "mappings": [],
  1186. "thresholds": {
  1187. "mode": "absolute",
  1188. "steps": [
  1189. {
  1190. "color": "green"
  1191. },
  1192. {
  1193. "color": "red",
  1194. "value": 80
  1195. }
  1196. ]
  1197. },
  1198. "unit": "sats"
  1199. },
  1200. "overrides": []
  1201. },
  1202. "gridPos": {
  1203. "h": 8,
  1204. "w": 12,
  1205. "x": 0,
  1206. "y": 40
  1207. },
  1208. "id": 12,
  1209. "options": {
  1210. "legend": {
  1211. "calcs": [],
  1212. "displayMode": "list",
  1213. "placement": "bottom",
  1214. "showLegend": true
  1215. },
  1216. "tooltip": {
  1217. "hideZeros": false,
  1218. "mode": "single",
  1219. "sort": "none"
  1220. }
  1221. },
  1222. "pluginVersion": "12.0.2",
  1223. "targets": [
  1224. {
  1225. "datasource": {
  1226. "type": "prometheus",
  1227. "uid": "prometheus"
  1228. },
  1229. "expr": "histogram_quantile(0.50, rate(cdk_lightning_payment_fees_sats_bucket[5m]))",
  1230. "format": "time_series",
  1231. "intervalFactor": 1,
  1232. "legendFormat": "p50 Payment Fees",
  1233. "refId": "A"
  1234. },
  1235. {
  1236. "datasource": {
  1237. "type": "prometheus",
  1238. "uid": "prometheus"
  1239. },
  1240. "expr": "histogram_quantile(0.95, rate(cdk_lightning_payment_fees_sats_bucket[5m]))",
  1241. "format": "time_series",
  1242. "intervalFactor": 1,
  1243. "legendFormat": "p95 Payment Fees",
  1244. "refId": "B"
  1245. }
  1246. ],
  1247. "title": "Lightning Payment Fees",
  1248. "type": "timeseries"
  1249. },
  1250. {
  1251. "datasource": {
  1252. "type": "prometheus",
  1253. "uid": "prometheus"
  1254. },
  1255. "fieldConfig": {
  1256. "defaults": {
  1257. "color": {
  1258. "mode": "thresholds"
  1259. },
  1260. "mappings": [],
  1261. "thresholds": {
  1262. "mode": "absolute",
  1263. "steps": [
  1264. {
  1265. "color": "green"
  1266. },
  1267. {
  1268. "color": "yellow",
  1269. "value": 1000
  1270. },
  1271. {
  1272. "color": "red",
  1273. "value": 5000
  1274. }
  1275. ]
  1276. }
  1277. },
  1278. "overrides": []
  1279. },
  1280. "gridPos": {
  1281. "h": 8,
  1282. "w": 12,
  1283. "x": 12,
  1284. "y": 40
  1285. },
  1286. "id": 10,
  1287. "options": {
  1288. "colorMode": "value",
  1289. "graphMode": "area",
  1290. "justifyMode": "auto",
  1291. "orientation": "auto",
  1292. "percentChangeColorMode": "standard",
  1293. "reduceOptions": {
  1294. "calcs": [
  1295. "lastNotNull"
  1296. ],
  1297. "fields": "",
  1298. "values": false
  1299. },
  1300. "showPercentChange": false,
  1301. "textMode": "auto",
  1302. "wideLayout": true
  1303. },
  1304. "pluginVersion": "12.0.2",
  1305. "targets": [
  1306. {
  1307. "datasource": {
  1308. "type": "prometheus",
  1309. "uid": "prometheus"
  1310. },
  1311. "expr": "cdk_http_requests_total{status=\"500\"}",
  1312. "format": "time_series",
  1313. "intervalFactor": 1,
  1314. "legendFormat": "{{endpoint}}",
  1315. "refId": "A"
  1316. }
  1317. ],
  1318. "title": "Failed Requests (500 Status)",
  1319. "type": "stat"
  1320. },
  1321. {
  1322. "datasource": {
  1323. "type": "prometheus",
  1324. "uid": "prometheus"
  1325. },
  1326. "fieldConfig": {
  1327. "defaults": {
  1328. "color": {
  1329. "mode": "palette-classic"
  1330. },
  1331. "custom": {
  1332. "axisBorderShow": false,
  1333. "axisCenteredZero": false,
  1334. "axisColorMode": "text",
  1335. "axisLabel": "",
  1336. "axisPlacement": "auto",
  1337. "barAlignment": 0,
  1338. "barWidthFactor": 0.6,
  1339. "drawStyle": "line",
  1340. "fillOpacity": 10,
  1341. "gradientMode": "none",
  1342. "hideFrom": {
  1343. "legend": false,
  1344. "tooltip": false,
  1345. "vis": false,
  1346. "viz": false
  1347. },
  1348. "insertNulls": false,
  1349. "lineInterpolation": "linear",
  1350. "lineWidth": 1,
  1351. "pointSize": 5,
  1352. "scaleDistribution": {
  1353. "type": "linear"
  1354. },
  1355. "showPoints": "never",
  1356. "spanNulls": false,
  1357. "stacking": {
  1358. "group": "A",
  1359. "mode": "none"
  1360. },
  1361. "thresholdsStyle": {
  1362. "mode": "off"
  1363. }
  1364. },
  1365. "mappings": [],
  1366. "thresholds": {
  1367. "mode": "absolute",
  1368. "steps": [
  1369. {
  1370. "color": "green"
  1371. },
  1372. {
  1373. "color": "red",
  1374. "value": 80
  1375. }
  1376. ]
  1377. },
  1378. "unit": "ops"
  1379. },
  1380. "overrides": []
  1381. },
  1382. "gridPos": {
  1383. "h": 8,
  1384. "w": 12,
  1385. "x": 0,
  1386. "y": 48
  1387. },
  1388. "id": 14,
  1389. "options": {
  1390. "legend": {
  1391. "calcs": [],
  1392. "displayMode": "list",
  1393. "placement": "bottom",
  1394. "showLegend": true
  1395. },
  1396. "tooltip": {
  1397. "hideZeros": false,
  1398. "mode": "single",
  1399. "sort": "none"
  1400. }
  1401. },
  1402. "pluginVersion": "12.0.2",
  1403. "targets": [
  1404. {
  1405. "datasource": {
  1406. "type": "prometheus",
  1407. "uid": "prometheus"
  1408. },
  1409. "expr": "rate(cdk_auth_attempts_total[1m])",
  1410. "format": "time_series",
  1411. "intervalFactor": 1,
  1412. "legendFormat": "Auth Attempts",
  1413. "refId": "A"
  1414. },
  1415. {
  1416. "datasource": {
  1417. "type": "prometheus",
  1418. "uid": "prometheus"
  1419. },
  1420. "expr": "rate(cdk_auth_successes_total[1m])",
  1421. "format": "time_series",
  1422. "intervalFactor": 1,
  1423. "legendFormat": "Auth Successes",
  1424. "refId": "B"
  1425. }
  1426. ],
  1427. "title": "Authentication Rate",
  1428. "type": "timeseries"
  1429. },
  1430. {
  1431. "datasource": {
  1432. "type": "prometheus",
  1433. "uid": "prometheus"
  1434. },
  1435. "fieldConfig": {
  1436. "defaults": {
  1437. "color": {
  1438. "mode": "thresholds"
  1439. },
  1440. "mappings": [],
  1441. "thresholds": {
  1442. "mode": "absolute",
  1443. "steps": [
  1444. {
  1445. "color": "green"
  1446. },
  1447. {
  1448. "color": "yellow",
  1449. "value": 1
  1450. },
  1451. {
  1452. "color": "red",
  1453. "value": 10
  1454. }
  1455. ]
  1456. }
  1457. },
  1458. "overrides": []
  1459. },
  1460. "gridPos": {
  1461. "h": 8,
  1462. "w": 12,
  1463. "x": 12,
  1464. "y": 48
  1465. },
  1466. "id": 15,
  1467. "options": {
  1468. "colorMode": "value",
  1469. "graphMode": "area",
  1470. "justifyMode": "auto",
  1471. "orientation": "auto",
  1472. "percentChangeColorMode": "standard",
  1473. "reduceOptions": {
  1474. "calcs": [
  1475. "lastNotNull"
  1476. ],
  1477. "fields": "",
  1478. "values": false
  1479. },
  1480. "showPercentChange": false,
  1481. "textMode": "auto",
  1482. "wideLayout": true
  1483. },
  1484. "pluginVersion": "12.0.2",
  1485. "targets": [
  1486. {
  1487. "datasource": {
  1488. "type": "prometheus",
  1489. "uid": "prometheus"
  1490. },
  1491. "expr": "cdk_errors_total",
  1492. "format": "time_series",
  1493. "intervalFactor": 1,
  1494. "legendFormat": "Total Errors",
  1495. "refId": "A"
  1496. }
  1497. ],
  1498. "title": "Total Errors",
  1499. "type": "stat"
  1500. },
  1501. {
  1502. "datasource": {
  1503. "type": "prometheus",
  1504. "uid": "prometheus"
  1505. },
  1506. "fieldConfig": {
  1507. "defaults": {
  1508. "color": {
  1509. "mode": "palette-classic"
  1510. },
  1511. "custom": {
  1512. "axisBorderShow": false,
  1513. "axisCenteredZero": false,
  1514. "axisColorMode": "text",
  1515. "axisLabel": "",
  1516. "axisPlacement": "auto",
  1517. "barAlignment": 0,
  1518. "barWidthFactor": 0.6,
  1519. "drawStyle": "line",
  1520. "fillOpacity": 10,
  1521. "gradientMode": "none",
  1522. "hideFrom": {
  1523. "legend": false,
  1524. "tooltip": false,
  1525. "vis": false,
  1526. "viz": false
  1527. },
  1528. "insertNulls": false,
  1529. "lineInterpolation": "linear",
  1530. "lineWidth": 1,
  1531. "pointSize": 5,
  1532. "scaleDistribution": {
  1533. "type": "linear"
  1534. },
  1535. "showPoints": "never",
  1536. "spanNulls": false,
  1537. "stacking": {
  1538. "group": "A",
  1539. "mode": "none"
  1540. },
  1541. "thresholdsStyle": {
  1542. "mode": "off"
  1543. }
  1544. },
  1545. "mappings": [],
  1546. "thresholds": {
  1547. "mode": "absolute",
  1548. "steps": [
  1549. {
  1550. "color": "green"
  1551. },
  1552. {
  1553. "color": "red",
  1554. "value": 80
  1555. }
  1556. ]
  1557. },
  1558. "unit": "s"
  1559. },
  1560. "overrides": []
  1561. },
  1562. "gridPos": {
  1563. "h": 8,
  1564. "w": 24,
  1565. "x": 0,
  1566. "y": 56
  1567. },
  1568. "id": 16,
  1569. "options": {
  1570. "legend": {
  1571. "calcs": [],
  1572. "displayMode": "list",
  1573. "placement": "bottom",
  1574. "showLegend": true
  1575. },
  1576. "tooltip": {
  1577. "hideZeros": false,
  1578. "mode": "single",
  1579. "sort": "none"
  1580. }
  1581. },
  1582. "pluginVersion": "12.0.2",
  1583. "targets": [
  1584. {
  1585. "datasource": {
  1586. "type": "prometheus",
  1587. "uid": "prometheus"
  1588. },
  1589. "editorMode": "code",
  1590. "expr": "histogram_quantile(0.50, rate(cdk_db_operation_duration_seconds_bucket[1m]))",
  1591. "format": "time_series",
  1592. "intervalFactor": 1,
  1593. "legendFormat": "p50 - {{operation}}",
  1594. "range": true,
  1595. "refId": "A"
  1596. },
  1597. {
  1598. "datasource": {
  1599. "type": "prometheus",
  1600. "uid": "prometheus"
  1601. },
  1602. "editorMode": "code",
  1603. "expr": "histogram_quantile(0.95, rate(cdk_db_operation_duration_seconds_bucket[1m]))",
  1604. "format": "time_series",
  1605. "intervalFactor": 1,
  1606. "legendFormat": "p95 - {{operation}}",
  1607. "range": true,
  1608. "refId": "B"
  1609. },
  1610. {
  1611. "datasource": {
  1612. "type": "prometheus",
  1613. "uid": "prometheus"
  1614. },
  1615. "editorMode": "code",
  1616. "expr": "histogram_quantile(0.99, rate(cdk_db_operation_duration_seconds_bucket[1m]))",
  1617. "format": "time_series",
  1618. "intervalFactor": 1,
  1619. "legendFormat": "p99 - {{operation}}",
  1620. "range": true,
  1621. "refId": "C"
  1622. }
  1623. ],
  1624. "title": "Database Operation Duration Percentiles",
  1625. "type": "timeseries"
  1626. },
  1627. {
  1628. "datasource": {
  1629. "type": "prometheus",
  1630. "uid": "prometheus"
  1631. },
  1632. "fieldConfig": {
  1633. "defaults": {
  1634. "color": {
  1635. "mode": "palette-classic"
  1636. },
  1637. "custom": {
  1638. "axisBorderShow": false,
  1639. "axisCenteredZero": false,
  1640. "axisColorMode": "text",
  1641. "axisLabel": "",
  1642. "axisPlacement": "auto",
  1643. "barAlignment": 0,
  1644. "barWidthFactor": 0.6,
  1645. "drawStyle": "line",
  1646. "fillOpacity": 10,
  1647. "gradientMode": "none",
  1648. "hideFrom": {
  1649. "legend": false,
  1650. "tooltip": false,
  1651. "vis": false,
  1652. "viz": false
  1653. },
  1654. "insertNulls": false,
  1655. "lineInterpolation": "linear",
  1656. "lineWidth": 1,
  1657. "pointSize": 5,
  1658. "scaleDistribution": {
  1659. "type": "linear"
  1660. },
  1661. "showPoints": "never",
  1662. "spanNulls": false,
  1663. "stacking": {
  1664. "group": "A",
  1665. "mode": "none"
  1666. },
  1667. "thresholdsStyle": {
  1668. "mode": "off"
  1669. }
  1670. },
  1671. "mappings": [],
  1672. "thresholds": {
  1673. "mode": "absolute",
  1674. "steps": [
  1675. {
  1676. "color": "green"
  1677. },
  1678. {
  1679. "color": "red",
  1680. "value": 80
  1681. }
  1682. ]
  1683. },
  1684. "unit": "s"
  1685. },
  1686. "overrides": []
  1687. },
  1688. "gridPos": {
  1689. "h": 8,
  1690. "w": 24,
  1691. "x": 0,
  1692. "y": 64
  1693. },
  1694. "id": 17,
  1695. "options": {
  1696. "legend": {
  1697. "calcs": [],
  1698. "displayMode": "list",
  1699. "placement": "bottom",
  1700. "showLegend": true
  1701. },
  1702. "tooltip": {
  1703. "hideZeros": false,
  1704. "mode": "single",
  1705. "sort": "none"
  1706. }
  1707. },
  1708. "pluginVersion": "12.0.2",
  1709. "targets": [
  1710. {
  1711. "datasource": {
  1712. "type": "prometheus",
  1713. "uid": "prometheus"
  1714. },
  1715. "editorMode": "code",
  1716. "expr": "histogram_quantile(0.50, rate(cdk_mint_operation_duration_seconds_bucket[1m]))",
  1717. "format": "time_series",
  1718. "intervalFactor": 1,
  1719. "legendFormat": "p50 - {{operation}} ({{status}})",
  1720. "range": true,
  1721. "refId": "A"
  1722. },
  1723. {
  1724. "datasource": {
  1725. "type": "prometheus",
  1726. "uid": "prometheus"
  1727. },
  1728. "editorMode": "code",
  1729. "expr": "histogram_quantile(0.95, rate(cdk_mint_operation_duration_seconds_bucket[1m]))",
  1730. "format": "time_series",
  1731. "intervalFactor": 1,
  1732. "legendFormat": "p95 - {{operation}} ({{status}})",
  1733. "range": true,
  1734. "refId": "B"
  1735. },
  1736. {
  1737. "datasource": {
  1738. "type": "prometheus",
  1739. "uid": "prometheus"
  1740. },
  1741. "editorMode": "code",
  1742. "expr": "histogram_quantile(0.99, rate(cdk_mint_operation_duration_seconds_bucket[1m]))",
  1743. "format": "time_series",
  1744. "intervalFactor": 1,
  1745. "legendFormat": "p99 - {{operation}} ({{status}})",
  1746. "range": true,
  1747. "refId": "C"
  1748. }
  1749. ],
  1750. "title": "Mint Operation Duration Percentiles",
  1751. "type": "timeseries"
  1752. },
  1753. {
  1754. "datasource": {
  1755. "type": "prometheus",
  1756. "uid": "prometheus"
  1757. },
  1758. "fieldConfig": {
  1759. "defaults": {
  1760. "color": {
  1761. "mode": "palette-classic"
  1762. },
  1763. "custom": {
  1764. "axisBorderShow": false,
  1765. "axisCenteredZero": false,
  1766. "axisColorMode": "text",
  1767. "axisLabel": "",
  1768. "axisPlacement": "auto",
  1769. "barAlignment": 0,
  1770. "barWidthFactor": 0.6,
  1771. "drawStyle": "line",
  1772. "fillOpacity": 10,
  1773. "gradientMode": "none",
  1774. "hideFrom": {
  1775. "legend": false,
  1776. "tooltip": false,
  1777. "vis": false,
  1778. "viz": false
  1779. },
  1780. "insertNulls": false,
  1781. "lineInterpolation": "linear",
  1782. "lineWidth": 1,
  1783. "pointSize": 5,
  1784. "scaleDistribution": {
  1785. "type": "linear"
  1786. },
  1787. "showPoints": "never",
  1788. "spanNulls": false,
  1789. "stacking": {
  1790. "group": "A",
  1791. "mode": "none"
  1792. },
  1793. "thresholdsStyle": {
  1794. "mode": "off"
  1795. }
  1796. },
  1797. "mappings": [],
  1798. "thresholds": {
  1799. "mode": "absolute",
  1800. "steps": [
  1801. {
  1802. "color": "green"
  1803. },
  1804. {
  1805. "color": "red",
  1806. "value": 80
  1807. }
  1808. ]
  1809. },
  1810. "unit": "ops"
  1811. },
  1812. "overrides": []
  1813. },
  1814. "gridPos": {
  1815. "h": 8,
  1816. "w": 12,
  1817. "x": 0,
  1818. "y": 72
  1819. },
  1820. "id": 18,
  1821. "options": {
  1822. "legend": {
  1823. "calcs": [],
  1824. "displayMode": "list",
  1825. "placement": "bottom",
  1826. "showLegend": true
  1827. },
  1828. "tooltip": {
  1829. "hideZeros": false,
  1830. "mode": "single",
  1831. "sort": "none"
  1832. }
  1833. },
  1834. "pluginVersion": "12.0.2",
  1835. "targets": [
  1836. {
  1837. "datasource": {
  1838. "type": "prometheus",
  1839. "uid": "prometheus"
  1840. },
  1841. "editorMode": "code",
  1842. "expr": "rate(cdk_db_operations_total[1m])",
  1843. "format": "time_series",
  1844. "intervalFactor": 1,
  1845. "legendFormat": "DB Operations Rate",
  1846. "range": true,
  1847. "refId": "A"
  1848. }
  1849. ],
  1850. "title": "Database Operations Rate",
  1851. "type": "timeseries"
  1852. },
  1853. {
  1854. "datasource": {
  1855. "type": "prometheus",
  1856. "uid": "prometheus"
  1857. },
  1858. "fieldConfig": {
  1859. "defaults": {
  1860. "color": {
  1861. "mode": "palette-classic"
  1862. },
  1863. "custom": {
  1864. "axisBorderShow": false,
  1865. "axisCenteredZero": false,
  1866. "axisColorMode": "text",
  1867. "axisLabel": "",
  1868. "axisPlacement": "auto",
  1869. "barAlignment": 0,
  1870. "barWidthFactor": 0.6,
  1871. "drawStyle": "line",
  1872. "fillOpacity": 10,
  1873. "gradientMode": "none",
  1874. "hideFrom": {
  1875. "legend": false,
  1876. "tooltip": false,
  1877. "vis": false,
  1878. "viz": false
  1879. },
  1880. "insertNulls": false,
  1881. "lineInterpolation": "linear",
  1882. "lineWidth": 1,
  1883. "pointSize": 5,
  1884. "scaleDistribution": {
  1885. "type": "linear"
  1886. },
  1887. "showPoints": "never",
  1888. "spanNulls": false,
  1889. "stacking": {
  1890. "group": "A",
  1891. "mode": "none"
  1892. },
  1893. "thresholdsStyle": {
  1894. "mode": "off"
  1895. }
  1896. },
  1897. "mappings": [],
  1898. "thresholds": {
  1899. "mode": "absolute",
  1900. "steps": [
  1901. {
  1902. "color": "green"
  1903. },
  1904. {
  1905. "color": "red",
  1906. "value": 80
  1907. }
  1908. ]
  1909. },
  1910. "unit": "ops"
  1911. },
  1912. "overrides": []
  1913. },
  1914. "gridPos": {
  1915. "h": 8,
  1916. "w": 12,
  1917. "x": 12,
  1918. "y": 72
  1919. },
  1920. "id": 19,
  1921. "options": {
  1922. "legend": {
  1923. "calcs": [],
  1924. "displayMode": "list",
  1925. "placement": "bottom",
  1926. "showLegend": true
  1927. },
  1928. "tooltip": {
  1929. "hideZeros": false,
  1930. "mode": "single",
  1931. "sort": "none"
  1932. }
  1933. },
  1934. "pluginVersion": "12.0.2",
  1935. "targets": [
  1936. {
  1937. "datasource": {
  1938. "type": "prometheus",
  1939. "uid": "prometheus"
  1940. },
  1941. "expr": "rate(cdk_wallet_operations_total[1m])",
  1942. "format": "time_series",
  1943. "intervalFactor": 1,
  1944. "legendFormat": "Wallet Operations Rate",
  1945. "refId": "A"
  1946. },
  1947. {
  1948. "datasource": {
  1949. "type": "prometheus",
  1950. "uid": "prometheus"
  1951. },
  1952. "expr": "rate(cdk_lightning_payments_total[1m])",
  1953. "format": "time_series",
  1954. "intervalFactor": 1,
  1955. "legendFormat": "Lightning Payments Rate",
  1956. "refId": "B"
  1957. }
  1958. ],
  1959. "title": "Wallet & Lightning Operations Rate",
  1960. "type": "timeseries"
  1961. }
  1962. ],
  1963. "preload": false,
  1964. "refresh": "30s",
  1965. "schemaVersion": 41,
  1966. "tags": [
  1967. "cashu",
  1968. "cdk",
  1969. "mint"
  1970. ],
  1971. "templating": {
  1972. "list": []
  1973. },
  1974. "time": {
  1975. "from": "now-1h",
  1976. "to": "now"
  1977. },
  1978. "timepicker": {},
  1979. "timezone": "",
  1980. "title": "CDK Mint Dashboard",
  1981. "uid": "cdk-mint-dashboard",
  1982. "version": 8
  1983. }