linstor_drbd.json 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297
  1. {
  2. "__inputs": [
  3. {
  4. "name": "ds_prometheus",
  5. "label": "main",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "panel",
  15. "id": "gauge",
  16. "name": "Gauge",
  17. "version": ""
  18. },
  19. {
  20. "type": "grafana",
  21. "id": "grafana",
  22. "name": "Grafana",
  23. "version": "8.2.6"
  24. },
  25. {
  26. "type": "panel",
  27. "id": "graph",
  28. "name": "Graph (old)",
  29. "version": ""
  30. },
  31. {
  32. "type": "datasource",
  33. "id": "prometheus",
  34. "name": "Prometheus",
  35. "version": "1.0.0"
  36. },
  37. {
  38. "type": "panel",
  39. "id": "stat",
  40. "name": "Stat",
  41. "version": ""
  42. },
  43. {
  44. "type": "panel",
  45. "id": "table",
  46. "name": "Table",
  47. "version": ""
  48. },
  49. {
  50. "type": "panel",
  51. "id": "timeseries",
  52. "name": "Time series",
  53. "version": ""
  54. }
  55. ],
  56. "annotations": {
  57. "list": [
  58. {
  59. "builtIn": 1,
  60. "datasource": "-- Grafana --",
  61. "enable": true,
  62. "hide": true,
  63. "iconColor": "rgba(0, 211, 255, 1)",
  64. "name": "Annotations & Alerts",
  65. "target": {
  66. "limit": 100,
  67. "matchAny": false,
  68. "tags": [],
  69. "type": "dashboard"
  70. },
  71. "type": "dashboard"
  72. }
  73. ]
  74. },
  75. "editable": false,
  76. "fiscalYearStartMonth": 0,
  77. "gnetId": null,
  78. "graphTooltip": 2,
  79. "id": null,
  80. "iteration": 1659360879340,
  81. "links": [],
  82. "liveNow": false,
  83. "panels": [
  84. {
  85. "collapsed": false,
  86. "datasource": null,
  87. "gridPos": {
  88. "h": 1,
  89. "w": 24,
  90. "x": 0,
  91. "y": 0
  92. },
  93. "id": 33,
  94. "panels": [],
  95. "title": "LINSTOR",
  96. "type": "row"
  97. },
  98. {
  99. "datasource": "${ds_prometheus}",
  100. "fieldConfig": {
  101. "defaults": {
  102. "color": {
  103. "mode": "thresholds"
  104. },
  105. "mappings": [],
  106. "max": 100,
  107. "thresholds": {
  108. "mode": "absolute",
  109. "steps": [
  110. {
  111. "color": "green",
  112. "value": null
  113. },
  114. {
  115. "color": "red",
  116. "value": 80
  117. }
  118. ]
  119. },
  120. "unit": "percent"
  121. },
  122. "overrides": []
  123. },
  124. "gridPos": {
  125. "h": 10,
  126. "w": 18,
  127. "x": 0,
  128. "y": 1
  129. },
  130. "id": 41,
  131. "options": {
  132. "orientation": "auto",
  133. "reduceOptions": {
  134. "calcs": [
  135. "lastNotNull"
  136. ],
  137. "fields": "",
  138. "values": false
  139. },
  140. "showThresholdLabels": false,
  141. "showThresholdMarkers": true,
  142. "text": {}
  143. },
  144. "pluginVersion": "8.2.6",
  145. "targets": [
  146. {
  147. "exemplar": true,
  148. "expr": "((sum by (storage_pool)(linstor_storage_pool_capacity_total_bytes{exported_node=~\"$node\"} != 0)-sum by (storage_pool)(linstor_storage_pool_capacity_free_bytes{exported_node=~\"$node\"}))*100/sum by (storage_pool)(linstor_storage_pool_capacity_total_bytes{exported_node=~\"$node\"}))",
  149. "hide": false,
  150. "legendFormat": "{{ storage_pool }}",
  151. "refId": "A"
  152. }
  153. ],
  154. "title": "Space Usage",
  155. "type": "gauge"
  156. },
  157. {
  158. "datasource": "${ds_prometheus}",
  159. "fieldConfig": {
  160. "defaults": {
  161. "color": {
  162. "mode": "thresholds"
  163. },
  164. "mappings": [],
  165. "thresholds": {
  166. "mode": "absolute",
  167. "steps": [
  168. {
  169. "color": "text",
  170. "value": null
  171. }
  172. ]
  173. },
  174. "unit": "bytes"
  175. },
  176. "overrides": []
  177. },
  178. "gridPos": {
  179. "h": 4,
  180. "w": 6,
  181. "x": 18,
  182. "y": 1
  183. },
  184. "id": 43,
  185. "options": {
  186. "colorMode": "value",
  187. "graphMode": "none",
  188. "justifyMode": "auto",
  189. "orientation": "auto",
  190. "reduceOptions": {
  191. "calcs": [
  192. "lastNotNull"
  193. ],
  194. "fields": "",
  195. "values": false
  196. },
  197. "text": {},
  198. "textMode": "auto"
  199. },
  200. "pluginVersion": "8.2.6",
  201. "targets": [
  202. {
  203. "exemplar": true,
  204. "expr": "sum by (storage_pool) (linstor_storage_pool_capacity_total_bytes{exported_node=~\"$node\"} != 0)",
  205. "hide": false,
  206. "legendFormat": "{{ storage_pool }}",
  207. "refId": "A"
  208. }
  209. ],
  210. "title": "Total",
  211. "type": "stat"
  212. },
  213. {
  214. "datasource": "${ds_prometheus}",
  215. "description": "",
  216. "fieldConfig": {
  217. "defaults": {
  218. "color": {
  219. "mode": "thresholds"
  220. },
  221. "mappings": [],
  222. "thresholds": {
  223. "mode": "absolute",
  224. "steps": [
  225. {
  226. "color": "dark-green",
  227. "value": null
  228. }
  229. ]
  230. },
  231. "unit": "bytes"
  232. },
  233. "overrides": []
  234. },
  235. "gridPos": {
  236. "h": 4,
  237. "w": 6,
  238. "x": 18,
  239. "y": 5
  240. },
  241. "id": 44,
  242. "options": {
  243. "colorMode": "value",
  244. "graphMode": "none",
  245. "justifyMode": "auto",
  246. "orientation": "auto",
  247. "reduceOptions": {
  248. "calcs": [
  249. "lastNotNull"
  250. ],
  251. "fields": "",
  252. "values": false
  253. },
  254. "text": {},
  255. "textMode": "auto"
  256. },
  257. "pluginVersion": "8.2.6",
  258. "targets": [
  259. {
  260. "exemplar": true,
  261. "expr": "sum by (storage_pool) (linstor_storage_pool_capacity_free_bytes{exported_node=~\"$node\"} != 0)",
  262. "hide": false,
  263. "legendFormat": "{{ storage_pool }}",
  264. "refId": "A"
  265. }
  266. ],
  267. "title": "Free",
  268. "type": "stat"
  269. },
  270. {
  271. "datasource": "${ds_prometheus}",
  272. "fieldConfig": {
  273. "defaults": {
  274. "color": {
  275. "mode": "thresholds"
  276. },
  277. "mappings": [],
  278. "thresholds": {
  279. "mode": "absolute",
  280. "steps": [
  281. {
  282. "color": "dark-red",
  283. "value": null
  284. }
  285. ]
  286. },
  287. "unit": "bytes"
  288. },
  289. "overrides": []
  290. },
  291. "gridPos": {
  292. "h": 4,
  293. "w": 6,
  294. "x": 18,
  295. "y": 9
  296. },
  297. "id": 42,
  298. "options": {
  299. "colorMode": "value",
  300. "graphMode": "none",
  301. "justifyMode": "auto",
  302. "orientation": "auto",
  303. "reduceOptions": {
  304. "calcs": [
  305. "lastNotNull"
  306. ],
  307. "fields": "",
  308. "values": false
  309. },
  310. "text": {},
  311. "textMode": "auto"
  312. },
  313. "pluginVersion": "8.2.6",
  314. "targets": [
  315. {
  316. "exemplar": true,
  317. "expr": "sum by (storage_pool) ((linstor_storage_pool_capacity_total_bytes{exported_node=~\"$node\"} != 0) - (linstor_storage_pool_capacity_free_bytes{exported_node=~\"$node\"} != 0))",
  318. "hide": false,
  319. "legendFormat": "{{ storage_pool }}",
  320. "refId": "A"
  321. }
  322. ],
  323. "title": "Used",
  324. "type": "stat"
  325. },
  326. {
  327. "datasource": "${ds_prometheus}",
  328. "description": "",
  329. "fieldConfig": {
  330. "defaults": {
  331. "color": {
  332. "mode": "thresholds"
  333. },
  334. "mappings": [],
  335. "thresholds": {
  336. "mode": "absolute",
  337. "steps": [
  338. {
  339. "color": "green",
  340. "value": null
  341. }
  342. ]
  343. }
  344. },
  345. "overrides": []
  346. },
  347. "gridPos": {
  348. "h": 3,
  349. "w": 3,
  350. "x": 0,
  351. "y": 11
  352. },
  353. "id": 36,
  354. "options": {
  355. "colorMode": "value",
  356. "graphMode": "none",
  357. "justifyMode": "auto",
  358. "orientation": "auto",
  359. "reduceOptions": {
  360. "calcs": [
  361. "lastNotNull"
  362. ],
  363. "fields": "",
  364. "values": false
  365. },
  366. "text": {},
  367. "textMode": "auto"
  368. },
  369. "pluginVersion": "8.2.6",
  370. "targets": [
  371. {
  372. "exemplar": true,
  373. "expr": "count(linstor_node_state{nodetype=\"SATELLITE\",exported_node=~\"$node\"} == 2) OR on() vector(0)",
  374. "legendFormat": "",
  375. "refId": "A"
  376. }
  377. ],
  378. "title": "Nodes",
  379. "type": "stat"
  380. },
  381. {
  382. "datasource": "${ds_prometheus}",
  383. "description": "",
  384. "fieldConfig": {
  385. "defaults": {
  386. "color": {
  387. "mode": "thresholds"
  388. },
  389. "mappings": [],
  390. "thresholds": {
  391. "mode": "absolute",
  392. "steps": [
  393. {
  394. "color": "green",
  395. "value": null
  396. }
  397. ]
  398. }
  399. },
  400. "overrides": []
  401. },
  402. "gridPos": {
  403. "h": 3,
  404. "w": 3,
  405. "x": 3,
  406. "y": 11
  407. },
  408. "id": 38,
  409. "options": {
  410. "colorMode": "value",
  411. "graphMode": "none",
  412. "justifyMode": "auto",
  413. "orientation": "auto",
  414. "reduceOptions": {
  415. "calcs": [
  416. "lastNotNull"
  417. ],
  418. "fields": "",
  419. "values": false
  420. },
  421. "text": {},
  422. "textMode": "auto"
  423. },
  424. "pluginVersion": "8.2.6",
  425. "targets": [
  426. {
  427. "exemplar": true,
  428. "expr": "count(linstor_storage_pool_capacity_total_bytes{driver!=\"DISKLESS\",exported_node=~\"$node\"}) OR on() vector(0)",
  429. "legendFormat": "",
  430. "refId": "A"
  431. }
  432. ],
  433. "title": "Storage Pools",
  434. "type": "stat"
  435. },
  436. {
  437. "datasource": "${ds_prometheus}",
  438. "description": "",
  439. "fieldConfig": {
  440. "defaults": {
  441. "color": {
  442. "mode": "thresholds"
  443. },
  444. "mappings": [],
  445. "thresholds": {
  446. "mode": "absolute",
  447. "steps": [
  448. {
  449. "color": "green",
  450. "value": null
  451. }
  452. ]
  453. }
  454. },
  455. "overrides": []
  456. },
  457. "gridPos": {
  458. "h": 3,
  459. "w": 3,
  460. "x": 6,
  461. "y": 11
  462. },
  463. "id": 35,
  464. "options": {
  465. "colorMode": "value",
  466. "graphMode": "none",
  467. "justifyMode": "auto",
  468. "orientation": "auto",
  469. "reduceOptions": {
  470. "calcs": [
  471. "lastNotNull"
  472. ],
  473. "fields": "",
  474. "values": false
  475. },
  476. "text": {},
  477. "textMode": "auto"
  478. },
  479. "pluginVersion": "8.2.6",
  480. "targets": [
  481. {
  482. "exemplar": true,
  483. "expr": "sum(linstor_resource_definition_count{}) OR on() vector(0)",
  484. "legendFormat": "",
  485. "refId": "A"
  486. }
  487. ],
  488. "title": "Resource Definitions",
  489. "type": "stat"
  490. },
  491. {
  492. "datasource": "${ds_prometheus}",
  493. "description": "",
  494. "fieldConfig": {
  495. "defaults": {
  496. "color": {
  497. "mode": "thresholds"
  498. },
  499. "mappings": [],
  500. "thresholds": {
  501. "mode": "absolute",
  502. "steps": [
  503. {
  504. "color": "green",
  505. "value": null
  506. }
  507. ]
  508. }
  509. },
  510. "overrides": []
  511. },
  512. "gridPos": {
  513. "h": 3,
  514. "w": 3,
  515. "x": 9,
  516. "y": 11
  517. },
  518. "id": 37,
  519. "options": {
  520. "colorMode": "value",
  521. "graphMode": "none",
  522. "justifyMode": "auto",
  523. "orientation": "auto",
  524. "reduceOptions": {
  525. "calcs": [
  526. "lastNotNull"
  527. ],
  528. "fields": "",
  529. "values": false
  530. },
  531. "text": {},
  532. "textMode": "auto"
  533. },
  534. "pluginVersion": "8.2.6",
  535. "targets": [
  536. {
  537. "exemplar": true,
  538. "expr": "count(linstor_resource_state{exported_node=~\"$node\"}) OR on() vector(0)",
  539. "legendFormat": "",
  540. "refId": "A"
  541. }
  542. ],
  543. "title": "Resources",
  544. "type": "stat"
  545. },
  546. {
  547. "datasource": "${ds_prometheus}",
  548. "fieldConfig": {
  549. "defaults": {
  550. "color": {
  551. "mode": "palette-classic"
  552. },
  553. "custom": {
  554. "axisLabel": "",
  555. "axisPlacement": "auto",
  556. "barAlignment": 0,
  557. "drawStyle": "line",
  558. "fillOpacity": 57,
  559. "gradientMode": "none",
  560. "hideFrom": {
  561. "legend": false,
  562. "tooltip": false,
  563. "viz": false
  564. },
  565. "lineInterpolation": "linear",
  566. "lineWidth": 1,
  567. "pointSize": 5,
  568. "scaleDistribution": {
  569. "type": "linear"
  570. },
  571. "showPoints": "auto",
  572. "spanNulls": false,
  573. "stacking": {
  574. "group": "A",
  575. "mode": "none"
  576. },
  577. "thresholdsStyle": {
  578. "mode": "off"
  579. }
  580. },
  581. "mappings": [],
  582. "thresholds": {
  583. "mode": "absolute",
  584. "steps": [
  585. {
  586. "color": "text",
  587. "value": null
  588. }
  589. ]
  590. },
  591. "unit": "pps"
  592. },
  593. "overrides": []
  594. },
  595. "gridPos": {
  596. "h": 6,
  597. "w": 6,
  598. "x": 12,
  599. "y": 11
  600. },
  601. "id": 40,
  602. "options": {
  603. "legend": {
  604. "calcs": [],
  605. "displayMode": "list",
  606. "placement": "bottom"
  607. },
  608. "tooltip": {
  609. "mode": "single"
  610. }
  611. },
  612. "pluginVersion": "8.2.6",
  613. "targets": [
  614. {
  615. "exemplar": true,
  616. "expr": "avg_over_time(scrape_duration_seconds{job=\"piraeus-op-cs\"}[$__interval])",
  617. "legendFormat": "allocated",
  618. "refId": "A"
  619. }
  620. ],
  621. "title": "Scrape Duration",
  622. "type": "timeseries"
  623. },
  624. {
  625. "datasource": "${ds_prometheus}",
  626. "description": "",
  627. "fieldConfig": {
  628. "defaults": {
  629. "color": {
  630. "mode": "thresholds"
  631. },
  632. "mappings": [],
  633. "thresholds": {
  634. "mode": "absolute",
  635. "steps": [
  636. {
  637. "color": "green",
  638. "value": null
  639. },
  640. {
  641. "color": "dark-yellow",
  642. "value": 6
  643. },
  644. {
  645. "color": "orange",
  646. "value": 10
  647. },
  648. {
  649. "color": "red",
  650. "value": 20
  651. }
  652. ]
  653. }
  654. },
  655. "overrides": []
  656. },
  657. "gridPos": {
  658. "h": 4,
  659. "w": 6,
  660. "x": 18,
  661. "y": 13
  662. },
  663. "id": 52,
  664. "options": {
  665. "colorMode": "background",
  666. "graphMode": "none",
  667. "justifyMode": "auto",
  668. "orientation": "horizontal",
  669. "reduceOptions": {
  670. "calcs": [
  671. "lastNotNull"
  672. ],
  673. "fields": "",
  674. "values": false
  675. },
  676. "text": {},
  677. "textMode": "auto"
  678. },
  679. "pluginVersion": "8.2.6",
  680. "targets": [
  681. {
  682. "exemplar": true,
  683. "expr": "sum by (module) (round(increase(linstor_error_reports_count{module!=\"\"}[$__range])))",
  684. "instant": false,
  685. "legendFormat": "{{ module }}",
  686. "refId": "A"
  687. }
  688. ],
  689. "title": "New Error Reports",
  690. "transformations": [],
  691. "type": "stat"
  692. },
  693. {
  694. "datasource": "${ds_prometheus}",
  695. "description": "",
  696. "fieldConfig": {
  697. "defaults": {
  698. "color": {
  699. "mode": "thresholds"
  700. },
  701. "mappings": [],
  702. "thresholds": {
  703. "mode": "absolute",
  704. "steps": [
  705. {
  706. "color": "green",
  707. "value": null
  708. },
  709. {
  710. "color": "red",
  711. "value": 1
  712. }
  713. ]
  714. }
  715. },
  716. "overrides": []
  717. },
  718. "gridPos": {
  719. "h": 3,
  720. "w": 4,
  721. "x": 0,
  722. "y": 14
  723. },
  724. "id": 51,
  725. "options": {
  726. "colorMode": "background",
  727. "graphMode": "none",
  728. "justifyMode": "auto",
  729. "orientation": "auto",
  730. "reduceOptions": {
  731. "calcs": [
  732. "lastNotNull"
  733. ],
  734. "fields": "",
  735. "values": false
  736. },
  737. "text": {},
  738. "textMode": "auto"
  739. },
  740. "pluginVersion": "8.2.6",
  741. "targets": [
  742. {
  743. "exemplar": true,
  744. "expr": "count(linstor_node_state{nodetype=\"SATELLITE\", exported_node=~\"$node\"} != 2) OR on() vector(0)",
  745. "legendFormat": "",
  746. "refId": "A"
  747. }
  748. ],
  749. "title": "Offline Nodes",
  750. "type": "stat"
  751. },
  752. {
  753. "datasource": "${ds_prometheus}",
  754. "description": "",
  755. "fieldConfig": {
  756. "defaults": {
  757. "color": {
  758. "mode": "thresholds"
  759. },
  760. "mappings": [],
  761. "thresholds": {
  762. "mode": "absolute",
  763. "steps": [
  764. {
  765. "color": "green",
  766. "value": null
  767. },
  768. {
  769. "color": "red",
  770. "value": 1
  771. }
  772. ]
  773. }
  774. },
  775. "overrides": []
  776. },
  777. "gridPos": {
  778. "h": 3,
  779. "w": 4,
  780. "x": 4,
  781. "y": 14
  782. },
  783. "id": 50,
  784. "options": {
  785. "colorMode": "background",
  786. "graphMode": "none",
  787. "justifyMode": "auto",
  788. "orientation": "auto",
  789. "reduceOptions": {
  790. "calcs": [
  791. "lastNotNull"
  792. ],
  793. "fields": "",
  794. "values": false
  795. },
  796. "text": {},
  797. "textMode": "auto"
  798. },
  799. "pluginVersion": "8.2.6",
  800. "targets": [
  801. {
  802. "exemplar": true,
  803. "expr": "count(linstor_storage_pool_error_count{driver!=\"DISKLESS\", exported_node=~\"$node\"} != 0) OR on() vector(0)",
  804. "legendFormat": "",
  805. "refId": "A"
  806. }
  807. ],
  808. "title": "Failed Storage Pools",
  809. "type": "stat"
  810. },
  811. {
  812. "datasource": "${ds_prometheus}",
  813. "description": "",
  814. "fieldConfig": {
  815. "defaults": {
  816. "color": {
  817. "mode": "thresholds"
  818. },
  819. "mappings": [],
  820. "thresholds": {
  821. "mode": "absolute",
  822. "steps": [
  823. {
  824. "color": "green",
  825. "value": null
  826. },
  827. {
  828. "color": "red",
  829. "value": 1
  830. }
  831. ]
  832. }
  833. },
  834. "overrides": []
  835. },
  836. "gridPos": {
  837. "h": 3,
  838. "w": 4,
  839. "x": 8,
  840. "y": 14
  841. },
  842. "id": 49,
  843. "options": {
  844. "colorMode": "background",
  845. "graphMode": "none",
  846. "justifyMode": "auto",
  847. "orientation": "auto",
  848. "reduceOptions": {
  849. "calcs": [
  850. "lastNotNull"
  851. ],
  852. "fields": "",
  853. "values": false
  854. },
  855. "text": {},
  856. "textMode": "auto"
  857. },
  858. "pluginVersion": "8.2.6",
  859. "targets": [
  860. {
  861. "exemplar": true,
  862. "expr": "count((linstor_volume_state{exported_node=~\"$node\"} != 1) != 4) OR on() vector(0)",
  863. "legendFormat": "",
  864. "refId": "A"
  865. }
  866. ],
  867. "title": "Failed Resources",
  868. "type": "stat"
  869. },
  870. {
  871. "collapsed": false,
  872. "datasource": null,
  873. "gridPos": {
  874. "h": 1,
  875. "w": 24,
  876. "x": 0,
  877. "y": 17
  878. },
  879. "id": 46,
  880. "panels": [],
  881. "title": "Statistics",
  882. "type": "row"
  883. },
  884. {
  885. "aliasColors": {},
  886. "bars": false,
  887. "dashLength": 10,
  888. "dashes": false,
  889. "datasource": "${ds_prometheus}",
  890. "fieldConfig": {
  891. "defaults": {
  892. "unit": "binBps"
  893. },
  894. "overrides": []
  895. },
  896. "fill": 1,
  897. "fillGradient": 0,
  898. "gridPos": {
  899. "h": 8,
  900. "w": 12,
  901. "x": 0,
  902. "y": 18
  903. },
  904. "hiddenSeries": false,
  905. "id": 24,
  906. "legend": {
  907. "avg": false,
  908. "current": false,
  909. "max": false,
  910. "min": false,
  911. "show": true,
  912. "total": false,
  913. "values": false
  914. },
  915. "lines": true,
  916. "linewidth": 1,
  917. "nullPointMode": "null",
  918. "options": {
  919. "alertThreshold": false
  920. },
  921. "percentage": false,
  922. "pluginVersion": "8.2.6",
  923. "pointradius": 2,
  924. "points": false,
  925. "renderer": "flot",
  926. "seriesOverrides": [],
  927. "spaceLength": 10,
  928. "stack": false,
  929. "steppedLine": true,
  930. "targets": [
  931. {
  932. "exemplar": true,
  933. "expr": "rate(drbd_device_written_bytes_total{}[5m]) and topk(5, avg_over_time(drbd_device_written_bytes_total{}[6h]) > 0)",
  934. "instant": false,
  935. "legendFormat": "{{name}} on {{instance}}",
  936. "refId": "A"
  937. }
  938. ],
  939. "thresholds": [],
  940. "timeFrom": null,
  941. "timeRegions": [],
  942. "timeShift": null,
  943. "title": "Write Rate (5 Most Active Volumes)",
  944. "tooltip": {
  945. "shared": true,
  946. "sort": 0,
  947. "value_type": "individual"
  948. },
  949. "type": "graph",
  950. "xaxis": {
  951. "buckets": null,
  952. "mode": "time",
  953. "name": null,
  954. "show": true,
  955. "values": []
  956. },
  957. "yaxes": [
  958. {
  959. "$$hashKey": "object:104",
  960. "format": "binBps",
  961. "label": null,
  962. "logBase": 1,
  963. "max": null,
  964. "min": null,
  965. "show": true
  966. },
  967. {
  968. "$$hashKey": "object:105",
  969. "format": "short",
  970. "label": null,
  971. "logBase": 1,
  972. "max": null,
  973. "min": null,
  974. "show": true
  975. }
  976. ],
  977. "yaxis": {
  978. "align": false,
  979. "alignLevel": null
  980. }
  981. },
  982. {
  983. "aliasColors": {},
  984. "bars": false,
  985. "dashLength": 10,
  986. "dashes": false,
  987. "datasource": "${ds_prometheus}",
  988. "fieldConfig": {
  989. "defaults": {
  990. "unit": "binBps"
  991. },
  992. "overrides": []
  993. },
  994. "fill": 1,
  995. "fillGradient": 0,
  996. "gridPos": {
  997. "h": 8,
  998. "w": 12,
  999. "x": 12,
  1000. "y": 18
  1001. },
  1002. "hiddenSeries": false,
  1003. "id": 25,
  1004. "legend": {
  1005. "avg": false,
  1006. "current": false,
  1007. "max": false,
  1008. "min": false,
  1009. "show": true,
  1010. "total": false,
  1011. "values": false
  1012. },
  1013. "lines": true,
  1014. "linewidth": 1,
  1015. "nullPointMode": "null",
  1016. "options": {
  1017. "alertThreshold": false
  1018. },
  1019. "percentage": false,
  1020. "pluginVersion": "8.2.6",
  1021. "pointradius": 2,
  1022. "points": false,
  1023. "renderer": "flot",
  1024. "seriesOverrides": [],
  1025. "spaceLength": 10,
  1026. "stack": false,
  1027. "steppedLine": true,
  1028. "targets": [
  1029. {
  1030. "exemplar": true,
  1031. "expr": "rate(drbd_device_read_bytes_total[5m]) and topk(5, avg_over_time(drbd_device_read_bytes_total[6h]) > 0)",
  1032. "instant": false,
  1033. "legendFormat": "{{name}} on {{instance}}",
  1034. "refId": "A"
  1035. }
  1036. ],
  1037. "thresholds": [],
  1038. "timeFrom": null,
  1039. "timeRegions": [],
  1040. "timeShift": null,
  1041. "title": "Read Rate (5 Most Active Volumes)",
  1042. "tooltip": {
  1043. "shared": true,
  1044. "sort": 0,
  1045. "value_type": "individual"
  1046. },
  1047. "type": "graph",
  1048. "xaxis": {
  1049. "buckets": null,
  1050. "mode": "time",
  1051. "name": null,
  1052. "show": true,
  1053. "values": []
  1054. },
  1055. "yaxes": [
  1056. {
  1057. "$$hashKey": "object:254",
  1058. "format": "binBps",
  1059. "label": null,
  1060. "logBase": 1,
  1061. "max": null,
  1062. "min": null,
  1063. "show": true
  1064. },
  1065. {
  1066. "$$hashKey": "object:255",
  1067. "format": "short",
  1068. "label": null,
  1069. "logBase": 1,
  1070. "max": null,
  1071. "min": null,
  1072. "show": true
  1073. }
  1074. ],
  1075. "yaxis": {
  1076. "align": false,
  1077. "alignLevel": null
  1078. }
  1079. },
  1080. {
  1081. "aliasColors": {},
  1082. "bars": false,
  1083. "dashLength": 10,
  1084. "dashes": false,
  1085. "datasource": "${ds_prometheus}",
  1086. "fieldConfig": {
  1087. "defaults": {
  1088. "unit": "binBps"
  1089. },
  1090. "overrides": []
  1091. },
  1092. "fill": 5,
  1093. "fillGradient": 0,
  1094. "gridPos": {
  1095. "h": 8,
  1096. "w": 12,
  1097. "x": 0,
  1098. "y": 26
  1099. },
  1100. "hiddenSeries": false,
  1101. "id": 47,
  1102. "legend": {
  1103. "avg": false,
  1104. "current": false,
  1105. "max": false,
  1106. "min": false,
  1107. "show": true,
  1108. "total": false,
  1109. "values": false
  1110. },
  1111. "lines": true,
  1112. "linewidth": 1,
  1113. "nullPointMode": "null",
  1114. "options": {
  1115. "alertThreshold": false
  1116. },
  1117. "percentage": false,
  1118. "pluginVersion": "8.2.6",
  1119. "pointradius": 2,
  1120. "points": false,
  1121. "renderer": "flot",
  1122. "seriesOverrides": [],
  1123. "spaceLength": 10,
  1124. "stack": true,
  1125. "steppedLine": true,
  1126. "targets": [
  1127. {
  1128. "exemplar": true,
  1129. "expr": "rate(drbd_device_written_bytes_total{instance=~\"$instance\"}[5m]) and topk(5, avg_over_time(drbd_device_written_bytes_total{instance=~\"$instance\"}[6h]) > 0)",
  1130. "instant": false,
  1131. "legendFormat": "{{ instance }}",
  1132. "refId": "A"
  1133. }
  1134. ],
  1135. "thresholds": [],
  1136. "timeFrom": null,
  1137. "timeRegions": [],
  1138. "timeShift": null,
  1139. "title": "Write Rate by Node",
  1140. "tooltip": {
  1141. "shared": true,
  1142. "sort": 0,
  1143. "value_type": "individual"
  1144. },
  1145. "type": "graph",
  1146. "xaxis": {
  1147. "buckets": null,
  1148. "mode": "time",
  1149. "name": null,
  1150. "show": true,
  1151. "values": []
  1152. },
  1153. "yaxes": [
  1154. {
  1155. "$$hashKey": "object:410",
  1156. "format": "binBps",
  1157. "label": null,
  1158. "logBase": 1,
  1159. "max": null,
  1160. "min": null,
  1161. "show": true
  1162. },
  1163. {
  1164. "$$hashKey": "object:411",
  1165. "format": "short",
  1166. "label": null,
  1167. "logBase": 1,
  1168. "max": null,
  1169. "min": null,
  1170. "show": true
  1171. }
  1172. ],
  1173. "yaxis": {
  1174. "align": false,
  1175. "alignLevel": null
  1176. }
  1177. },
  1178. {
  1179. "aliasColors": {},
  1180. "bars": false,
  1181. "dashLength": 10,
  1182. "dashes": false,
  1183. "datasource": "${ds_prometheus}",
  1184. "fieldConfig": {
  1185. "defaults": {
  1186. "unit": "binBps"
  1187. },
  1188. "overrides": []
  1189. },
  1190. "fill": 5,
  1191. "fillGradient": 0,
  1192. "gridPos": {
  1193. "h": 8,
  1194. "w": 12,
  1195. "x": 12,
  1196. "y": 26
  1197. },
  1198. "hiddenSeries": false,
  1199. "id": 48,
  1200. "legend": {
  1201. "avg": false,
  1202. "current": false,
  1203. "max": false,
  1204. "min": false,
  1205. "show": true,
  1206. "total": false,
  1207. "values": false
  1208. },
  1209. "lines": true,
  1210. "linewidth": 1,
  1211. "nullPointMode": "null",
  1212. "options": {
  1213. "alertThreshold": false
  1214. },
  1215. "percentage": false,
  1216. "pluginVersion": "8.2.6",
  1217. "pointradius": 2,
  1218. "points": false,
  1219. "renderer": "flot",
  1220. "seriesOverrides": [],
  1221. "spaceLength": 10,
  1222. "stack": true,
  1223. "steppedLine": true,
  1224. "targets": [
  1225. {
  1226. "exemplar": true,
  1227. "expr": "rate(drbd_device_read_bytes_total{instance=~\"$instance\"}[5m]) and topk(5, avg_over_time(drbd_device_read_bytes_total{instance=~\"$instance\"}[6h]) > 0)",
  1228. "instant": false,
  1229. "legendFormat": "{{ instance }}",
  1230. "refId": "A"
  1231. }
  1232. ],
  1233. "thresholds": [],
  1234. "timeFrom": null,
  1235. "timeRegions": [],
  1236. "timeShift": null,
  1237. "title": "Read Rate by Node",
  1238. "tooltip": {
  1239. "shared": true,
  1240. "sort": 0,
  1241. "value_type": "individual"
  1242. },
  1243. "type": "graph",
  1244. "xaxis": {
  1245. "buckets": null,
  1246. "mode": "time",
  1247. "name": null,
  1248. "show": true,
  1249. "values": []
  1250. },
  1251. "yaxes": [
  1252. {
  1253. "$$hashKey": "object:332",
  1254. "format": "binBps",
  1255. "label": null,
  1256. "logBase": 1,
  1257. "max": null,
  1258. "min": null,
  1259. "show": true
  1260. },
  1261. {
  1262. "$$hashKey": "object:333",
  1263. "format": "short",
  1264. "label": null,
  1265. "logBase": 1,
  1266. "max": null,
  1267. "min": null,
  1268. "show": true
  1269. }
  1270. ],
  1271. "yaxis": {
  1272. "align": false,
  1273. "alignLevel": null
  1274. }
  1275. },
  1276. {
  1277. "collapsed": false,
  1278. "datasource": "${ds_prometheus}",
  1279. "gridPos": {
  1280. "h": 1,
  1281. "w": 24,
  1282. "x": 0,
  1283. "y": 34
  1284. },
  1285. "id": 8,
  1286. "panels": [],
  1287. "title": "DRBD",
  1288. "type": "row"
  1289. },
  1290. {
  1291. "cacheTimeout": null,
  1292. "datasource": "${ds_prometheus}",
  1293. "fieldConfig": {
  1294. "defaults": {
  1295. "color": {
  1296. "mode": "thresholds"
  1297. },
  1298. "mappings": [],
  1299. "thresholds": {
  1300. "mode": "absolute",
  1301. "steps": [
  1302. {
  1303. "color": "green",
  1304. "value": null
  1305. }
  1306. ]
  1307. }
  1308. },
  1309. "overrides": []
  1310. },
  1311. "gridPos": {
  1312. "h": 11,
  1313. "w": 16,
  1314. "x": 0,
  1315. "y": 35
  1316. },
  1317. "id": 6,
  1318. "links": [],
  1319. "maxDataPoints": 100,
  1320. "options": {
  1321. "orientation": "auto",
  1322. "reduceOptions": {
  1323. "calcs": [
  1324. "lastNotNull"
  1325. ],
  1326. "fields": "",
  1327. "values": false
  1328. },
  1329. "showThresholdLabels": false,
  1330. "showThresholdMarkers": true,
  1331. "text": {}
  1332. },
  1333. "pluginVersion": "8.2.6",
  1334. "targets": [
  1335. {
  1336. "$$hashKey": "object:470",
  1337. "aggregation": "Last",
  1338. "decimals": 2,
  1339. "displayAliasType": "Warning / Critical",
  1340. "displayType": "Regular",
  1341. "displayValueWithAlias": "Never",
  1342. "exemplar": true,
  1343. "expr": "drbd_resource_resources",
  1344. "legendFormat": "{{instance}}",
  1345. "refId": "A",
  1346. "units": "none",
  1347. "valueHandler": "Number Threshold"
  1348. }
  1349. ],
  1350. "title": "Number of DRBD Resources",
  1351. "type": "gauge"
  1352. },
  1353. {
  1354. "aliasColors": {},
  1355. "bars": false,
  1356. "dashLength": 10,
  1357. "dashes": false,
  1358. "datasource": "${ds_prometheus}",
  1359. "fieldConfig": {
  1360. "defaults": {
  1361. "unit": "s"
  1362. },
  1363. "overrides": []
  1364. },
  1365. "fill": 1,
  1366. "fillGradient": 0,
  1367. "gridPos": {
  1368. "h": 8,
  1369. "w": 8,
  1370. "x": 16,
  1371. "y": 35
  1372. },
  1373. "hiddenSeries": false,
  1374. "id": 27,
  1375. "legend": {
  1376. "avg": false,
  1377. "current": false,
  1378. "max": false,
  1379. "min": false,
  1380. "show": true,
  1381. "total": false,
  1382. "values": false
  1383. },
  1384. "lines": true,
  1385. "linewidth": 1,
  1386. "nullPointMode": "null",
  1387. "options": {
  1388. "alertThreshold": false
  1389. },
  1390. "percentage": false,
  1391. "pluginVersion": "8.2.6",
  1392. "pointradius": 2,
  1393. "points": false,
  1394. "renderer": "flot",
  1395. "seriesOverrides": [],
  1396. "spaceLength": 10,
  1397. "stack": false,
  1398. "steppedLine": true,
  1399. "targets": [
  1400. {
  1401. "exemplar": true,
  1402. "expr": "avg_over_time(scrape_duration_seconds{job=\"piraeus-op-cs\"}[$__interval])",
  1403. "legendFormat": "{{node}}",
  1404. "refId": "A"
  1405. }
  1406. ],
  1407. "thresholds": [],
  1408. "timeFrom": null,
  1409. "timeRegions": [],
  1410. "timeShift": null,
  1411. "title": "Scrape Duration",
  1412. "tooltip": {
  1413. "shared": true,
  1414. "sort": 0,
  1415. "value_type": "individual"
  1416. },
  1417. "type": "graph",
  1418. "xaxis": {
  1419. "buckets": null,
  1420. "mode": "time",
  1421. "name": null,
  1422. "show": true,
  1423. "values": []
  1424. },
  1425. "yaxes": [
  1426. {
  1427. "$$hashKey": "object:158",
  1428. "format": "s",
  1429. "label": null,
  1430. "logBase": 1,
  1431. "max": null,
  1432. "min": null,
  1433. "show": true
  1434. },
  1435. {
  1436. "$$hashKey": "object:159",
  1437. "format": "short",
  1438. "label": null,
  1439. "logBase": 1,
  1440. "max": null,
  1441. "min": null,
  1442. "show": true
  1443. }
  1444. ],
  1445. "yaxis": {
  1446. "align": false,
  1447. "alignLevel": null
  1448. }
  1449. },
  1450. {
  1451. "datasource": "${ds_prometheus}",
  1452. "description": "DRBD data out of sync with a peer",
  1453. "fieldConfig": {
  1454. "defaults": {
  1455. "color": {
  1456. "mode": "thresholds"
  1457. },
  1458. "mappings": [],
  1459. "thresholds": {
  1460. "mode": "absolute",
  1461. "steps": [
  1462. {
  1463. "color": "green",
  1464. "value": null
  1465. },
  1466. {
  1467. "color": "red",
  1468. "value": 1
  1469. }
  1470. ]
  1471. },
  1472. "unit": "bytes"
  1473. },
  1474. "overrides": []
  1475. },
  1476. "gridPos": {
  1477. "h": 6,
  1478. "w": 8,
  1479. "x": 16,
  1480. "y": 43
  1481. },
  1482. "id": 12,
  1483. "options": {
  1484. "colorMode": "value",
  1485. "graphMode": "area",
  1486. "justifyMode": "auto",
  1487. "orientation": "auto",
  1488. "reduceOptions": {
  1489. "calcs": [
  1490. "lastNotNull"
  1491. ],
  1492. "fields": "",
  1493. "values": false
  1494. },
  1495. "text": {},
  1496. "textMode": "auto"
  1497. },
  1498. "pluginVersion": "8.2.6",
  1499. "targets": [
  1500. {
  1501. "exemplar": true,
  1502. "expr": "sum(max by(name, volume) (drbd_peerdevice_outofsync_bytes{node=~\"$node\"} > 0)) OR on() vector(0)",
  1503. "legendFormat": "",
  1504. "refId": "A"
  1505. }
  1506. ],
  1507. "timeFrom": null,
  1508. "timeShift": null,
  1509. "title": "out-of-sync data",
  1510. "type": "stat"
  1511. },
  1512. {
  1513. "datasource": "${ds_prometheus}",
  1514. "fieldConfig": {
  1515. "defaults": {
  1516. "color": {
  1517. "mode": "thresholds"
  1518. },
  1519. "mappings": [],
  1520. "thresholds": {
  1521. "mode": "absolute",
  1522. "steps": [
  1523. {
  1524. "color": "green",
  1525. "value": null
  1526. },
  1527. {
  1528. "color": "red",
  1529. "value": 1
  1530. }
  1531. ]
  1532. }
  1533. },
  1534. "overrides": []
  1535. },
  1536. "gridPos": {
  1537. "h": 3,
  1538. "w": 4,
  1539. "x": 0,
  1540. "y": 46
  1541. },
  1542. "id": 14,
  1543. "options": {
  1544. "colorMode": "background",
  1545. "graphMode": "none",
  1546. "justifyMode": "auto",
  1547. "orientation": "auto",
  1548. "reduceOptions": {
  1549. "calcs": [
  1550. "lastNotNull"
  1551. ],
  1552. "fields": "",
  1553. "values": false
  1554. },
  1555. "text": {},
  1556. "textMode": "auto"
  1557. },
  1558. "pluginVersion": "8.2.6",
  1559. "targets": [
  1560. {
  1561. "exemplar": false,
  1562. "expr": "count(count by (name) (drbd_connection_state{drbd_connection_state!=\"UpToDate\", drbd_connection_state!=\"Connected\", node=~\"$node\"} == 1)) OR on() vector(0)",
  1563. "legendFormat": "",
  1564. "refId": "A"
  1565. }
  1566. ],
  1567. "timeFrom": null,
  1568. "timeShift": null,
  1569. "title": "disconnected",
  1570. "type": "stat"
  1571. },
  1572. {
  1573. "datasource": "${ds_prometheus}",
  1574. "fieldConfig": {
  1575. "defaults": {
  1576. "color": {
  1577. "mode": "thresholds"
  1578. },
  1579. "mappings": [
  1580. {
  1581. "options": {
  1582. "match": "null",
  1583. "result": {
  1584. "index": 0,
  1585. "text": "0"
  1586. }
  1587. },
  1588. "type": "special"
  1589. }
  1590. ],
  1591. "thresholds": {
  1592. "mode": "absolute",
  1593. "steps": [
  1594. {
  1595. "color": "green",
  1596. "value": null
  1597. },
  1598. {
  1599. "color": "orange",
  1600. "value": 1
  1601. }
  1602. ]
  1603. }
  1604. },
  1605. "overrides": []
  1606. },
  1607. "gridPos": {
  1608. "h": 3,
  1609. "w": 4,
  1610. "x": 4,
  1611. "y": 46
  1612. },
  1613. "id": 20,
  1614. "options": {
  1615. "colorMode": "background",
  1616. "graphMode": "none",
  1617. "justifyMode": "auto",
  1618. "orientation": "auto",
  1619. "reduceOptions": {
  1620. "calcs": [
  1621. "lastNotNull"
  1622. ],
  1623. "fields": "",
  1624. "values": false
  1625. },
  1626. "text": {},
  1627. "textMode": "auto"
  1628. },
  1629. "pluginVersion": "8.2.6",
  1630. "targets": [
  1631. {
  1632. "exemplar": true,
  1633. "expr": "count(count by (name) (drbd_device_quorum{node=~\"$node\"} == 0)) OR on() vector(0)",
  1634. "format": "time_series",
  1635. "instant": false,
  1636. "intervalFactor": 1,
  1637. "legendFormat": "",
  1638. "refId": "A"
  1639. },
  1640. {
  1641. "exemplar": true,
  1642. "expr": "count(drbd_device_quorum == 0)",
  1643. "hide": true,
  1644. "legendFormat": "",
  1645. "refId": "B"
  1646. }
  1647. ],
  1648. "timeFrom": null,
  1649. "timeShift": null,
  1650. "title": "without quorum",
  1651. "type": "stat"
  1652. },
  1653. {
  1654. "datasource": "${ds_prometheus}",
  1655. "description": "",
  1656. "fieldConfig": {
  1657. "defaults": {
  1658. "color": {
  1659. "mode": "thresholds"
  1660. },
  1661. "mappings": [],
  1662. "thresholds": {
  1663. "mode": "absolute",
  1664. "steps": [
  1665. {
  1666. "color": "green",
  1667. "value": null
  1668. },
  1669. {
  1670. "color": "red",
  1671. "value": 1
  1672. }
  1673. ]
  1674. }
  1675. },
  1676. "overrides": []
  1677. },
  1678. "gridPos": {
  1679. "h": 3,
  1680. "w": 4,
  1681. "x": 8,
  1682. "y": 46
  1683. },
  1684. "id": 4,
  1685. "options": {
  1686. "colorMode": "background",
  1687. "graphMode": "none",
  1688. "justifyMode": "auto",
  1689. "orientation": "auto",
  1690. "reduceOptions": {
  1691. "calcs": [
  1692. "lastNotNull"
  1693. ],
  1694. "fields": "",
  1695. "values": false
  1696. },
  1697. "text": {},
  1698. "textMode": "auto"
  1699. },
  1700. "pluginVersion": "8.2.6",
  1701. "targets": [
  1702. {
  1703. "exemplar": true,
  1704. "expr": "count(drbd_device_unintentionaldiskless{node=~\"$node\"} == 1) OR on() vector(0)",
  1705. "legendFormat": "",
  1706. "refId": "A"
  1707. }
  1708. ],
  1709. "timeFrom": null,
  1710. "timeShift": null,
  1711. "title": "storage failure",
  1712. "type": "stat"
  1713. },
  1714. {
  1715. "datasource": "${ds_prometheus}",
  1716. "description": "DRBD data out of sync with a peer",
  1717. "fieldConfig": {
  1718. "defaults": {
  1719. "color": {
  1720. "mode": "thresholds"
  1721. },
  1722. "mappings": [],
  1723. "thresholds": {
  1724. "mode": "absolute",
  1725. "steps": [
  1726. {
  1727. "color": "green",
  1728. "value": null
  1729. },
  1730. {
  1731. "color": "red",
  1732. "value": 1
  1733. }
  1734. ]
  1735. },
  1736. "unit": "none"
  1737. },
  1738. "overrides": []
  1739. },
  1740. "gridPos": {
  1741. "h": 3,
  1742. "w": 4,
  1743. "x": 12,
  1744. "y": 46
  1745. },
  1746. "id": 29,
  1747. "options": {
  1748. "colorMode": "background",
  1749. "graphMode": "none",
  1750. "justifyMode": "auto",
  1751. "orientation": "auto",
  1752. "reduceOptions": {
  1753. "calcs": [
  1754. "lastNotNull"
  1755. ],
  1756. "fields": "",
  1757. "values": false
  1758. },
  1759. "text": {},
  1760. "textMode": "auto"
  1761. },
  1762. "pluginVersion": "8.2.6",
  1763. "targets": [
  1764. {
  1765. "exemplar": true,
  1766. "expr": "count(count by (name) (drbd_peerdevice_outofsync_bytes{node=~\"$node\"} > 0)) OR on() vector(0)",
  1767. "legendFormat": "",
  1768. "refId": "A"
  1769. }
  1770. ],
  1771. "timeFrom": null,
  1772. "timeShift": null,
  1773. "title": "out-of-sync",
  1774. "type": "stat"
  1775. },
  1776. {
  1777. "datasource": "${ds_prometheus}",
  1778. "fieldConfig": {
  1779. "defaults": {
  1780. "color": {
  1781. "mode": "thresholds"
  1782. },
  1783. "custom": {
  1784. "align": null,
  1785. "displayMode": "auto",
  1786. "filterable": false
  1787. },
  1788. "mappings": [
  1789. {
  1790. "options": {
  1791. "1": {
  1792. "text": "No"
  1793. }
  1794. },
  1795. "type": "value"
  1796. }
  1797. ],
  1798. "thresholds": {
  1799. "mode": "absolute",
  1800. "steps": [
  1801. {
  1802. "color": "green",
  1803. "value": null
  1804. },
  1805. {
  1806. "color": "red",
  1807. "value": 1
  1808. }
  1809. ]
  1810. }
  1811. },
  1812. "overrides": []
  1813. },
  1814. "gridPos": {
  1815. "h": 8,
  1816. "w": 12,
  1817. "x": 0,
  1818. "y": 49
  1819. },
  1820. "id": 22,
  1821. "maxDataPoints": null,
  1822. "options": {
  1823. "frameIndex": 0,
  1824. "showHeader": true,
  1825. "sortBy": [
  1826. {
  1827. "desc": false,
  1828. "displayName": "drbd_connection_state"
  1829. }
  1830. ]
  1831. },
  1832. "pluginVersion": "8.2.6",
  1833. "targets": [
  1834. {
  1835. "exemplar": true,
  1836. "expr": "drbd_connection_state{drbd_connection_state!=\"UpToDate\", drbd_connection_state!=\"Connected\", node=~\"$node\"} == 1",
  1837. "format": "table",
  1838. "instant": true,
  1839. "intervalFactor": 1,
  1840. "legendFormat": "",
  1841. "refId": "A"
  1842. }
  1843. ],
  1844. "timeFrom": null,
  1845. "timeShift": null,
  1846. "title": "Disconnected DRBD Resources",
  1847. "transformations": [
  1848. {
  1849. "id": "merge",
  1850. "options": {}
  1851. },
  1852. {
  1853. "id": "organize",
  1854. "options": {
  1855. "excludeByName": {
  1856. "Time": true,
  1857. "Value": true,
  1858. "__name__": true,
  1859. "instance": true,
  1860. "job": true,
  1861. "name": false,
  1862. "peer_node_id": true,
  1863. "tier": true
  1864. },
  1865. "indexByName": {
  1866. "Time": 1,
  1867. "Value": 10,
  1868. "__name__": 2,
  1869. "conn_name": 5,
  1870. "drbd_connection_state": 4,
  1871. "instance": 6,
  1872. "job": 7,
  1873. "name": 0,
  1874. "node": 3,
  1875. "peer_node_id": 8,
  1876. "tier": 9
  1877. },
  1878. "renameByName": {
  1879. "Value #A": "Quorum?",
  1880. "conn_name": "Remote Node",
  1881. "drbd_connection_state": "State",
  1882. "instance": "Instance",
  1883. "job": "",
  1884. "name": "DRBD Resource",
  1885. "node": "Node",
  1886. "peer_node_id": ""
  1887. }
  1888. }
  1889. }
  1890. ],
  1891. "type": "table"
  1892. },
  1893. {
  1894. "datasource": "${ds_prometheus}",
  1895. "fieldConfig": {
  1896. "defaults": {
  1897. "color": {
  1898. "mode": "thresholds"
  1899. },
  1900. "custom": {
  1901. "align": null,
  1902. "displayMode": "auto",
  1903. "filterable": false
  1904. },
  1905. "mappings": [],
  1906. "thresholds": {
  1907. "mode": "absolute",
  1908. "steps": [
  1909. {
  1910. "color": "green",
  1911. "value": null
  1912. }
  1913. ]
  1914. },
  1915. "unit": "bytes"
  1916. },
  1917. "overrides": [
  1918. {
  1919. "matcher": {
  1920. "id": "byName",
  1921. "options": "DRBD Resource"
  1922. },
  1923. "properties": [
  1924. {
  1925. "id": "custom.width",
  1926. "value": 279
  1927. }
  1928. ]
  1929. },
  1930. {
  1931. "matcher": {
  1932. "id": "byName",
  1933. "options": "Host"
  1934. },
  1935. "properties": [
  1936. {
  1937. "id": "custom.width",
  1938. "value": 238
  1939. }
  1940. ]
  1941. },
  1942. {
  1943. "matcher": {
  1944. "id": "byName",
  1945. "options": "Out of Sync"
  1946. },
  1947. "properties": [
  1948. {
  1949. "id": "custom.width",
  1950. "value": 93
  1951. }
  1952. ]
  1953. }
  1954. ]
  1955. },
  1956. "gridPos": {
  1957. "h": 8,
  1958. "w": 12,
  1959. "x": 12,
  1960. "y": 49
  1961. },
  1962. "id": 16,
  1963. "options": {
  1964. "frameIndex": 0,
  1965. "showHeader": true,
  1966. "sortBy": []
  1967. },
  1968. "pluginVersion": "8.2.6",
  1969. "targets": [
  1970. {
  1971. "exemplar": false,
  1972. "expr": "sum(drbd_peerdevice_outofsync_bytes{instance=~\"$instance\"}) by(name, instance) > 0",
  1973. "format": "table",
  1974. "hide": false,
  1975. "instant": true,
  1976. "legendFormat": "",
  1977. "refId": "A"
  1978. }
  1979. ],
  1980. "title": "DRBD Resources Out of Sync",
  1981. "transformations": [
  1982. {
  1983. "id": "organize",
  1984. "options": {
  1985. "excludeByName": {
  1986. "Time": true
  1987. },
  1988. "indexByName": {
  1989. "Time": 0,
  1990. "Value": 3,
  1991. "name": 1,
  1992. "node": 2
  1993. },
  1994. "renameByName": {
  1995. "Time": "",
  1996. "Value": "Out of Sync",
  1997. "instance": "Host",
  1998. "name": "DRBD Resource",
  1999. "node": "Node"
  2000. }
  2001. }
  2002. },
  2003. {
  2004. "id": "sortBy",
  2005. "options": {
  2006. "fields": {},
  2007. "sort": [
  2008. {
  2009. "desc": true,
  2010. "field": "Out of Sync"
  2011. }
  2012. ]
  2013. }
  2014. }
  2015. ],
  2016. "type": "table"
  2017. },
  2018. {
  2019. "datasource": "${ds_prometheus}",
  2020. "fieldConfig": {
  2021. "defaults": {
  2022. "color": {
  2023. "mode": "thresholds"
  2024. },
  2025. "custom": {
  2026. "align": null,
  2027. "displayMode": "auto",
  2028. "filterable": false
  2029. },
  2030. "mappings": [
  2031. {
  2032. "options": {
  2033. "1": {
  2034. "text": "No"
  2035. }
  2036. },
  2037. "type": "value"
  2038. }
  2039. ],
  2040. "thresholds": {
  2041. "mode": "absolute",
  2042. "steps": [
  2043. {
  2044. "color": "green",
  2045. "value": null
  2046. },
  2047. {
  2048. "color": "red",
  2049. "value": 1
  2050. }
  2051. ]
  2052. }
  2053. },
  2054. "overrides": []
  2055. },
  2056. "gridPos": {
  2057. "h": 8,
  2058. "w": 12,
  2059. "x": 0,
  2060. "y": 57
  2061. },
  2062. "id": 31,
  2063. "maxDataPoints": null,
  2064. "options": {
  2065. "frameIndex": 0,
  2066. "showHeader": true
  2067. },
  2068. "pluginVersion": "8.2.6",
  2069. "targets": [
  2070. {
  2071. "exemplar": true,
  2072. "expr": "count(drbd_device_quorum{node=~\"$node\"} == 0) by(node, name)",
  2073. "format": "table",
  2074. "instant": true,
  2075. "intervalFactor": 1,
  2076. "legendFormat": "",
  2077. "refId": "A"
  2078. }
  2079. ],
  2080. "timeFrom": null,
  2081. "timeShift": null,
  2082. "title": "DRBD Resources Without Quorum",
  2083. "transformations": [
  2084. {
  2085. "id": "merge",
  2086. "options": {}
  2087. },
  2088. {
  2089. "id": "organize",
  2090. "options": {
  2091. "excludeByName": {
  2092. "Time": true,
  2093. "Value": true
  2094. },
  2095. "indexByName": {},
  2096. "renameByName": {
  2097. "Value #A": "Quorum?",
  2098. "instance": "Instance",
  2099. "name": "DRBD Resource",
  2100. "node": "Node"
  2101. }
  2102. }
  2103. }
  2104. ],
  2105. "type": "table"
  2106. },
  2107. {
  2108. "datasource": "${ds_prometheus}",
  2109. "fieldConfig": {
  2110. "defaults": {
  2111. "color": {
  2112. "mode": "thresholds"
  2113. },
  2114. "custom": {
  2115. "align": null,
  2116. "displayMode": "auto",
  2117. "filterable": false
  2118. },
  2119. "mappings": [
  2120. {
  2121. "options": {
  2122. "1": {
  2123. "text": "No"
  2124. }
  2125. },
  2126. "type": "value"
  2127. }
  2128. ],
  2129. "thresholds": {
  2130. "mode": "absolute",
  2131. "steps": [
  2132. {
  2133. "color": "green",
  2134. "value": null
  2135. },
  2136. {
  2137. "color": "red",
  2138. "value": 1
  2139. }
  2140. ]
  2141. }
  2142. },
  2143. "overrides": []
  2144. },
  2145. "gridPos": {
  2146. "h": 8,
  2147. "w": 12,
  2148. "x": 12,
  2149. "y": 57
  2150. },
  2151. "id": 30,
  2152. "maxDataPoints": null,
  2153. "options": {
  2154. "frameIndex": 0,
  2155. "showHeader": true
  2156. },
  2157. "pluginVersion": "8.2.6",
  2158. "targets": [
  2159. {
  2160. "exemplar": true,
  2161. "expr": "count(drbd_device_unintentionaldiskless{node=~\"$node\"} == 1) by(node, name, minor)",
  2162. "format": "table",
  2163. "instant": true,
  2164. "intervalFactor": 1,
  2165. "legendFormat": "",
  2166. "refId": "A"
  2167. }
  2168. ],
  2169. "timeFrom": null,
  2170. "timeShift": null,
  2171. "title": "DRBD Resources with Storage Failure",
  2172. "transformations": [
  2173. {
  2174. "id": "merge",
  2175. "options": {}
  2176. },
  2177. {
  2178. "id": "organize",
  2179. "options": {
  2180. "excludeByName": {
  2181. "Time": true,
  2182. "Value": true
  2183. },
  2184. "indexByName": {
  2185. "Time": 0,
  2186. "Value": 4,
  2187. "minor": 3,
  2188. "name": 1,
  2189. "node": 2
  2190. },
  2191. "renameByName": {
  2192. "Value": "",
  2193. "Value #A": "Quorum?",
  2194. "instance": "Instance",
  2195. "minor": "Minor",
  2196. "name": "DRBD Resource",
  2197. "node": "Node"
  2198. }
  2199. }
  2200. }
  2201. ],
  2202. "type": "table"
  2203. }
  2204. ],
  2205. "refresh": "30s",
  2206. "schemaVersion": 32,
  2207. "style": "dark",
  2208. "tags": [],
  2209. "templating": {
  2210. "list": [
  2211. {
  2212. "current": {
  2213. "selected": false,
  2214. "text": "default",
  2215. "value": "default"
  2216. },
  2217. "description": null,
  2218. "error": null,
  2219. "hide": 0,
  2220. "includeAll": false,
  2221. "label": "Prometheus",
  2222. "multi": false,
  2223. "name": "ds_prometheus",
  2224. "options": [],
  2225. "query": "prometheus",
  2226. "queryValue": "",
  2227. "refresh": 1,
  2228. "regex": "",
  2229. "skipUrlSync": false,
  2230. "type": "datasource"
  2231. },
  2232. {
  2233. "allValue": null,
  2234. "current": {},
  2235. "datasource": "${ds_prometheus}",
  2236. "definition": "label_values(drbdreactor_up, node)",
  2237. "description": null,
  2238. "error": null,
  2239. "hide": 0,
  2240. "includeAll": true,
  2241. "label": null,
  2242. "multi": true,
  2243. "name": "node",
  2244. "options": [],
  2245. "query": {
  2246. "query": "label_values(drbdreactor_up, node)",
  2247. "refId": "StandardVariableQuery"
  2248. },
  2249. "refresh": 2,
  2250. "regex": "",
  2251. "skipUrlSync": false,
  2252. "sort": 0,
  2253. "tagValuesQuery": "",
  2254. "tagsQuery": "",
  2255. "type": "query",
  2256. "useTags": false
  2257. },
  2258. {
  2259. "allValue": null,
  2260. "current": {},
  2261. "datasource": "${ds_prometheus}",
  2262. "definition": "label_values(drbdreactor_up, instance)",
  2263. "description": null,
  2264. "error": null,
  2265. "hide": 0,
  2266. "includeAll": true,
  2267. "label": null,
  2268. "multi": true,
  2269. "name": "instance",
  2270. "options": [],
  2271. "query": {
  2272. "query": "label_values(drbdreactor_up, instance)",
  2273. "refId": "StandardVariableQuery"
  2274. },
  2275. "refresh": 2,
  2276. "regex": "",
  2277. "skipUrlSync": false,
  2278. "sort": 0,
  2279. "tagValuesQuery": "",
  2280. "tags": [],
  2281. "tagsQuery": "",
  2282. "type": "query",
  2283. "useTags": false
  2284. }
  2285. ]
  2286. },
  2287. "time": {
  2288. "from": "now-3h",
  2289. "to": "now"
  2290. },
  2291. "timepicker": {},
  2292. "timezone": "",
  2293. "title": "LINSTOR / DRBD",
  2294. "uid": "f_tZtVlMz",
  2295. "version": 19
  2296. }