MongoDB_ReplSet.json 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "graphTooltip": 1,
  8. "hideControls": true,
  9. "id": null,
  10. "links": [
  11. {
  12. "icon": "doc",
  13. "tags": [],
  14. "targetBlank": true,
  15. "title": "MongoDB Dashboards",
  16. "type": "link",
  17. "url": "https://www.percona.com/doc/percona-monitoring-and-management/mm-dashboards.html?utm_source=installed-pmm&utm_medium=dashboard&utm_campaign=mongodb&utm_term=mongodb&utm_content=mongodb-replset"
  18. },
  19. {
  20. "asDropdown": true,
  21. "icon": "external link",
  22. "includeVars": true,
  23. "keepTime": true,
  24. "tags": [
  25. "OS"
  26. ],
  27. "targetBlank": true,
  28. "title": "OS",
  29. "type": "dashboards"
  30. },
  31. {
  32. "asDropdown": true,
  33. "icon": "external link",
  34. "includeVars": true,
  35. "keepTime": true,
  36. "tags": [
  37. "MongoDB"
  38. ],
  39. "targetBlank": true,
  40. "title": "MongoDB",
  41. "type": "dashboards"
  42. }
  43. ],
  44. "refresh": false,
  45. "rows": [
  46. {
  47. "collapse": false,
  48. "height": "125px",
  49. "panels": [
  50. {
  51. "cacheTimeout": null,
  52. "colorBackground": false,
  53. "colorValue": false,
  54. "colors": [
  55. "rgba(245, 54, 54, 0.9)",
  56. "rgba(237, 129, 40, 0.89)",
  57. "rgba(50, 172, 45, 0.97)"
  58. ],
  59. "datasource": "Prometheus",
  60. "decimals": 0,
  61. "description": "Shows the role of the selected member instance (PRIMARY or SECONDARY)",
  62. "editable": true,
  63. "error": false,
  64. "format": "none",
  65. "gauge": {
  66. "maxValue": 100,
  67. "minValue": 0,
  68. "show": false,
  69. "thresholdLabels": false,
  70. "thresholdMarkers": true
  71. },
  72. "height": "125px",
  73. "hideTimeOverride": true,
  74. "id": 49,
  75. "interval": null,
  76. "links": [],
  77. "mappingType": 1,
  78. "mappingTypes": [
  79. {
  80. "name": "value to text",
  81. "value": 1
  82. },
  83. {
  84. "name": "range to text",
  85. "value": 2
  86. }
  87. ],
  88. "maxDataPoints": 100,
  89. "minSpan": null,
  90. "nullPointMode": "null",
  91. "nullText": null,
  92. "postfix": "",
  93. "postfixFontSize": "50%",
  94. "prefix": "",
  95. "prefixFontSize": "50%",
  96. "rangeMaps": [
  97. {
  98. "from": "null",
  99. "text": "N/A",
  100. "to": "null"
  101. }
  102. ],
  103. "repeat": null,
  104. "span": 3,
  105. "sparkline": {
  106. "fillColor": "rgba(31, 118, 189, 0.18)",
  107. "full": false,
  108. "lineColor": "rgb(31, 120, 193)",
  109. "show": false
  110. },
  111. "targets": [
  112. {
  113. "expr": "mongodb_mongod_replset_my_state{instance=\"$host\"}",
  114. "interval": "5m",
  115. "intervalFactor": 1,
  116. "legendFormat": "",
  117. "metric": "",
  118. "refId": "A",
  119. "step": 300
  120. }
  121. ],
  122. "thresholds": "",
  123. "timeFrom": "1m",
  124. "title": "ReplSet State",
  125. "type": "singlestat",
  126. "valueFontSize": "80%",
  127. "valueMaps": [
  128. {
  129. "op": "=",
  130. "text": "PRIMARY",
  131. "value": "1"
  132. },
  133. {
  134. "op": "=",
  135. "text": "SECONDARY",
  136. "value": "2"
  137. },
  138. {
  139. "op": "=",
  140. "text": "STARTUP",
  141. "value": "0"
  142. },
  143. {
  144. "op": "=",
  145. "text": "RECOVERING",
  146. "value": "3"
  147. },
  148. {
  149. "op": "=",
  150. "text": "STARTUP2",
  151. "value": "5"
  152. },
  153. {
  154. "op": "=",
  155. "text": "UNKNOWN",
  156. "value": "6"
  157. },
  158. {
  159. "op": "=",
  160. "text": "ARBITER",
  161. "value": "7"
  162. },
  163. {
  164. "op": "=",
  165. "text": "DOWN",
  166. "value": "8"
  167. },
  168. {
  169. "op": "=",
  170. "text": "ROLLBACK",
  171. "value": "9"
  172. },
  173. {
  174. "op": "=",
  175. "text": "REMOVED",
  176. "value": "10"
  177. }
  178. ],
  179. "valueName": "current"
  180. },
  181. {
  182. "cacheTimeout": null,
  183. "colorBackground": false,
  184. "colorValue": false,
  185. "colors": [
  186. "rgba(245, 54, 54, 0.9)",
  187. "rgba(237, 129, 40, 0.89)",
  188. "rgba(50, 172, 45, 0.97)"
  189. ],
  190. "datasource": "Prometheus",
  191. "decimals": 0,
  192. "description": "Shows the number of members in the replica set",
  193. "editable": true,
  194. "error": false,
  195. "format": "none",
  196. "gauge": {
  197. "maxValue": 100,
  198. "minValue": 0,
  199. "show": false,
  200. "thresholdLabels": false,
  201. "thresholdMarkers": true
  202. },
  203. "height": "125px",
  204. "hideTimeOverride": false,
  205. "id": 59,
  206. "interval": null,
  207. "links": [],
  208. "mappingType": 1,
  209. "mappingTypes": [
  210. {
  211. "name": "value to text",
  212. "value": 1
  213. },
  214. {
  215. "name": "range to text",
  216. "value": 2
  217. }
  218. ],
  219. "maxDataPoints": 100,
  220. "nullPointMode": "null",
  221. "nullText": null,
  222. "postfix": "",
  223. "postfixFontSize": "50%",
  224. "prefix": "",
  225. "prefixFontSize": "50%",
  226. "rangeMaps": [
  227. {
  228. "from": "null",
  229. "text": "N/A",
  230. "to": "null"
  231. }
  232. ],
  233. "span": 2,
  234. "sparkline": {
  235. "fillColor": "rgba(31, 118, 189, 0.18)",
  236. "full": false,
  237. "lineColor": "rgb(31, 120, 193)",
  238. "show": false
  239. },
  240. "targets": [
  241. {
  242. "expr": "mongodb_mongod_replset_number_of_members{instance=\"$host\"}",
  243. "interval": "5m",
  244. "intervalFactor": 1,
  245. "legendFormat": "",
  246. "metric": "",
  247. "refId": "A",
  248. "step": 300
  249. }
  250. ],
  251. "thresholds": "",
  252. "timeFrom": null,
  253. "title": "ReplSet Members",
  254. "type": "singlestat",
  255. "valueFontSize": "80%",
  256. "valueMaps": [],
  257. "valueName": "current"
  258. },
  259. {
  260. "cacheTimeout": null,
  261. "colorBackground": false,
  262. "colorValue": false,
  263. "colors": [
  264. "rgba(245, 54, 54, 0.9)",
  265. "rgba(237, 129, 40, 0.89)",
  266. "rgba(50, 172, 45, 0.97)"
  267. ],
  268. "datasource": "Prometheus",
  269. "decimals": 1,
  270. "description": "Shows how long ago the last election occurred",
  271. "editable": true,
  272. "error": false,
  273. "format": "s",
  274. "gauge": {
  275. "maxValue": 100,
  276. "minValue": 0,
  277. "show": false,
  278. "thresholdLabels": false,
  279. "thresholdMarkers": true
  280. },
  281. "height": "125px",
  282. "hideTimeOverride": true,
  283. "id": 65,
  284. "interval": null,
  285. "links": [],
  286. "mappingType": 1,
  287. "mappingTypes": [
  288. {
  289. "name": "value to text",
  290. "value": 1
  291. },
  292. {
  293. "name": "range to text",
  294. "value": 2
  295. }
  296. ],
  297. "maxDataPoints": 100,
  298. "nullPointMode": "null",
  299. "nullText": null,
  300. "postfix": "s",
  301. "postfixFontSize": "70%",
  302. "prefix": "",
  303. "prefixFontSize": "50%",
  304. "rangeMaps": [
  305. {
  306. "from": "null",
  307. "text": "N/A",
  308. "to": "null"
  309. }
  310. ],
  311. "span": 2,
  312. "sparkline": {
  313. "fillColor": "rgba(31, 118, 189, 0.18)",
  314. "full": false,
  315. "lineColor": "rgb(31, 120, 193)",
  316. "show": false
  317. },
  318. "targets": [
  319. {
  320. "expr": "time() - mongodb_mongod_replset_member_election_date{instance=\"$host\"}",
  321. "interval": "5m",
  322. "intervalFactor": 1,
  323. "legendFormat": "",
  324. "metric": "",
  325. "refId": "A",
  326. "step": 300
  327. }
  328. ],
  329. "thresholds": "",
  330. "timeFrom": "1m",
  331. "title": "ReplSet Last Election",
  332. "type": "singlestat",
  333. "valueFontSize": "70%",
  334. "valueMaps": [],
  335. "valueName": "current"
  336. },
  337. {
  338. "cacheTimeout": null,
  339. "colorBackground": false,
  340. "colorValue": false,
  341. "colors": [
  342. "rgba(245, 54, 54, 0.9)",
  343. "rgba(237, 129, 40, 0.89)",
  344. "rgba(50, 172, 45, 0.97)"
  345. ],
  346. "datasource": "Prometheus",
  347. "decimals": 1,
  348. "description": "Shows the current replication lag for the selected member",
  349. "editable": true,
  350. "error": false,
  351. "format": "s",
  352. "gauge": {
  353. "maxValue": 100,
  354. "minValue": 0,
  355. "show": false,
  356. "thresholdLabels": false,
  357. "thresholdMarkers": true
  358. },
  359. "height": "125px",
  360. "hideTimeOverride": true,
  361. "id": 77,
  362. "interval": null,
  363. "links": [],
  364. "mappingType": 1,
  365. "mappingTypes": [
  366. {
  367. "name": "value to text",
  368. "value": 1
  369. },
  370. {
  371. "name": "range to text",
  372. "value": 2
  373. }
  374. ],
  375. "maxDataPoints": 100,
  376. "nullPointMode": "null",
  377. "nullText": null,
  378. "postfix": "",
  379. "postfixFontSize": "80%",
  380. "prefix": "",
  381. "prefixFontSize": "50%",
  382. "rangeMaps": [
  383. {
  384. "from": "null",
  385. "text": "N/A",
  386. "to": "null"
  387. }
  388. ],
  389. "span": 2,
  390. "sparkline": {
  391. "fillColor": "rgba(31, 118, 189, 0.18)",
  392. "full": false,
  393. "lineColor": "rgb(31, 120, 193)",
  394. "show": false
  395. },
  396. "targets": [
  397. {
  398. "expr": "(max(mongodb_mongod_replset_member_optime_date{state=\"PRIMARY\", set=\"$replset\"}) - min(mongodb_mongod_replset_member_optime_date{state=\"SECONDARY\"} * on (name) group_left mongodb_mongod_replset_my_name{instance=\"$host\"})) or vector(0)",
  399. "interval": "5m",
  400. "intervalFactor": 1,
  401. "legendFormat": "",
  402. "metric": "",
  403. "refId": "A",
  404. "step": 300
  405. }
  406. ],
  407. "thresholds": "",
  408. "timeFrom": "1m",
  409. "title": "ReplSet Lag",
  410. "type": "singlestat",
  411. "valueFontSize": "80%",
  412. "valueMaps": [],
  413. "valueName": "current"
  414. },
  415. {
  416. "cacheTimeout": null,
  417. "colorBackground": false,
  418. "colorValue": false,
  419. "colors": [
  420. "rgba(245, 54, 54, 0.9)",
  421. "rgba(237, 129, 40, 0.89)",
  422. "rgba(50, 172, 45, 0.97)"
  423. ],
  424. "datasource": "Prometheus",
  425. "decimals": 0,
  426. "description": "Shows the storage engine used on the instance",
  427. "editable": true,
  428. "error": false,
  429. "format": "none",
  430. "gauge": {
  431. "maxValue": 100,
  432. "minValue": 0,
  433. "show": false,
  434. "thresholdLabels": false,
  435. "thresholdMarkers": true
  436. },
  437. "height": "125px",
  438. "hideTimeOverride": true,
  439. "id": 78,
  440. "interval": null,
  441. "links": [],
  442. "mappingType": 1,
  443. "mappingTypes": [
  444. {
  445. "name": "value to text",
  446. "value": 1
  447. },
  448. {
  449. "name": "range to text",
  450. "value": 2
  451. }
  452. ],
  453. "maxDataPoints": 100,
  454. "minSpan": null,
  455. "nullPointMode": "null",
  456. "nullText": null,
  457. "postfix": "",
  458. "postfixFontSize": "50%",
  459. "prefix": "",
  460. "prefixFontSize": "50%",
  461. "rangeMaps": [
  462. {
  463. "from": "null",
  464. "text": "N/A",
  465. "to": "null"
  466. }
  467. ],
  468. "span": 3,
  469. "sparkline": {
  470. "fillColor": "rgba(31, 118, 189, 0.18)",
  471. "full": false,
  472. "lineColor": "rgb(31, 120, 193)",
  473. "show": false
  474. },
  475. "targets": [
  476. {
  477. "expr": "mongodb_mongod_storage_engine{instance=\"$host\"}",
  478. "interval": "5m",
  479. "intervalFactor": 1,
  480. "legendFormat": "{{ engine }}",
  481. "metric": "",
  482. "refId": "A",
  483. "step": 300
  484. }
  485. ],
  486. "thresholds": "",
  487. "timeFrom": "1m",
  488. "title": "Storage Engine",
  489. "type": "singlestat",
  490. "valueFontSize": "80%",
  491. "valueMaps": [],
  492. "valueName": "name"
  493. }
  494. ],
  495. "repeat": null,
  496. "repeatIteration": null,
  497. "repeatRowId": null,
  498. "showTitle": false,
  499. "title": "New row",
  500. "titleSize": "h6"
  501. },
  502. {
  503. "collapse": false,
  504. "height": "250px",
  505. "panels": [
  506. {
  507. "aliasColors": {},
  508. "bars": false,
  509. "datasource": "Prometheus",
  510. "decimals": null,
  511. "editable": true,
  512. "error": false,
  513. "fill": 2,
  514. "grid": {
  515. "leftLogBase": 1,
  516. "leftMax": null,
  517. "leftMin": 0,
  518. "rightLogBase": 1,
  519. "rightMax": null,
  520. "rightMin": null
  521. },
  522. "id": 63,
  523. "legend": {
  524. "alignAsTable": true,
  525. "avg": true,
  526. "current": false,
  527. "max": true,
  528. "min": true,
  529. "show": true,
  530. "total": false,
  531. "values": true
  532. },
  533. "lines": true,
  534. "linewidth": 2,
  535. "links": [],
  536. "nullPointMode": "null",
  537. "percentage": false,
  538. "pointradius": 5,
  539. "points": false,
  540. "renderer": "flot",
  541. "seriesOverrides": [],
  542. "span": 6,
  543. "stack": false,
  544. "steppedLine": false,
  545. "targets": [
  546. {
  547. "expr": "rate(mongodb_mongod_op_counters_repl_total{instance=\"$host\", type!~\"(command|getmore|query)\"}[$interval]) or irate(mongodb_mongod_op_counters_repl_total{instance=\"$host\", type!~\"(command|getmore|query)\"}[5m])",
  548. "interval": "$interval",
  549. "intervalFactor": 1,
  550. "legendFormat": "{{type}}",
  551. "refId": "A",
  552. "step": 300
  553. }
  554. ],
  555. "thresholds": [],
  556. "timeFrom": null,
  557. "timeShift": null,
  558. "title": "Replication Operations",
  559. "tooltip": {
  560. "msResolution": false,
  561. "shared": true,
  562. "sort": 0,
  563. "value_type": "cumulative"
  564. },
  565. "type": "graph",
  566. "x-axis": true,
  567. "xaxis": {
  568. "mode": "time",
  569. "name": null,
  570. "show": true,
  571. "values": []
  572. },
  573. "y-axis": true,
  574. "y_formats": [
  575. "short",
  576. "short"
  577. ],
  578. "yaxes": [
  579. {
  580. "format": "ops",
  581. "label": "",
  582. "logBase": 1,
  583. "max": null,
  584. "min": 0,
  585. "show": true
  586. },
  587. {
  588. "format": "short",
  589. "logBase": 1,
  590. "max": null,
  591. "min": null,
  592. "show": true
  593. }
  594. ]
  595. },
  596. {
  597. "aliasColors": {},
  598. "bars": false,
  599. "datasource": "Prometheus",
  600. "decimals": null,
  601. "description": "Shows the time range in the oplog and the oldest backed up operation.",
  602. "editable": true,
  603. "error": false,
  604. "fill": 2,
  605. "grid": {
  606. "leftLogBase": 1,
  607. "leftMax": null,
  608. "leftMin": 0,
  609. "rightLogBase": 1,
  610. "rightMax": null,
  611. "rightMin": null
  612. },
  613. "id": 27,
  614. "legend": {
  615. "alignAsTable": true,
  616. "avg": true,
  617. "current": false,
  618. "max": true,
  619. "min": true,
  620. "show": true,
  621. "total": false,
  622. "values": true
  623. },
  624. "lines": true,
  625. "linewidth": 2,
  626. "links": [],
  627. "nullPointMode": "null",
  628. "percentage": false,
  629. "pointradius": 5,
  630. "points": false,
  631. "renderer": "flot",
  632. "seriesOverrides": [],
  633. "span": 6,
  634. "stack": false,
  635. "steppedLine": false,
  636. "targets": [
  637. {
  638. "expr": "time()-mongodb_mongod_replset_oplog_tail_timestamp{instance=\"$host\"}",
  639. "hide": false,
  640. "interval": "$interval",
  641. "intervalFactor": 1,
  642. "legendFormat": "Now to End",
  643. "metric": "",
  644. "refId": "J",
  645. "step": 300
  646. },
  647. {
  648. "expr": "mongodb_mongod_replset_oplog_head_timestamp{instance=\"$host\"}-mongodb_mongod_replset_oplog_tail_timestamp{instance=\"$host\"}",
  649. "hide": false,
  650. "interval": "$interval",
  651. "intervalFactor": 1,
  652. "legendFormat": "Oplog Range",
  653. "metric": "",
  654. "refId": "A",
  655. "step": 300
  656. }
  657. ],
  658. "thresholds": [],
  659. "timeFrom": null,
  660. "timeShift": null,
  661. "title": "Oplog Recovery Window",
  662. "tooltip": {
  663. "msResolution": false,
  664. "shared": true,
  665. "sort": 0,
  666. "value_type": "cumulative"
  667. },
  668. "type": "graph",
  669. "x-axis": true,
  670. "xaxis": {
  671. "mode": "time",
  672. "name": null,
  673. "show": true,
  674. "values": []
  675. },
  676. "y-axis": true,
  677. "y_formats": [
  678. "s",
  679. "short"
  680. ],
  681. "yaxes": [
  682. {
  683. "format": "s",
  684. "label": "",
  685. "logBase": 1,
  686. "max": null,
  687. "min": 0,
  688. "show": true
  689. },
  690. {
  691. "format": "short",
  692. "logBase": 1,
  693. "max": null,
  694. "min": null,
  695. "show": true
  696. }
  697. ]
  698. }
  699. ],
  700. "repeat": null,
  701. "repeatIteration": null,
  702. "repeatRowId": null,
  703. "showTitle": false,
  704. "title": "New row",
  705. "titleSize": "h6"
  706. },
  707. {
  708. "collapse": false,
  709. "height": "250px",
  710. "panels": [
  711. {
  712. "aliasColors": {},
  713. "bars": false,
  714. "datasource": "Prometheus",
  715. "decimals": null,
  716. "description": "Shows the delay between an operation occurring on the primary and that same operation getting applied on the selected member",
  717. "editable": true,
  718. "error": false,
  719. "fill": 2,
  720. "grid": {
  721. "leftLogBase": 1,
  722. "leftMax": null,
  723. "leftMin": 0,
  724. "rightLogBase": 1,
  725. "rightMax": null,
  726. "rightMin": null
  727. },
  728. "id": 14,
  729. "legend": {
  730. "alignAsTable": true,
  731. "avg": true,
  732. "current": false,
  733. "max": true,
  734. "min": true,
  735. "rightSide": false,
  736. "show": true,
  737. "total": false,
  738. "values": true
  739. },
  740. "lines": true,
  741. "linewidth": 2,
  742. "links": [],
  743. "nullPointMode": "null",
  744. "percentage": false,
  745. "pointradius": 5,
  746. "points": false,
  747. "renderer": "flot",
  748. "seriesOverrides": [],
  749. "span": 6,
  750. "stack": false,
  751. "steppedLine": false,
  752. "targets": [
  753. {
  754. "expr": "(max(mongodb_mongod_replset_member_optime_date{state=\"PRIMARY\", set=\"$replset\"}) - min(mongodb_mongod_replset_member_optime_date{state=\"SECONDARY\"} * on (name) group_left mongodb_mongod_replset_my_name{instance=\"$host\"})) or vector(0)",
  755. "interval": "$interval",
  756. "intervalFactor": 1,
  757. "legendFormat": "Lag",
  758. "refId": "A",
  759. "step": 300
  760. }
  761. ],
  762. "thresholds": [],
  763. "timeFrom": null,
  764. "timeShift": null,
  765. "title": "Replication Lag",
  766. "tooltip": {
  767. "msResolution": false,
  768. "shared": true,
  769. "sort": 0,
  770. "value_type": "cumulative"
  771. },
  772. "type": "graph",
  773. "x-axis": true,
  774. "xaxis": {
  775. "mode": "time",
  776. "name": null,
  777. "show": true,
  778. "values": []
  779. },
  780. "y-axis": true,
  781. "y_formats": [
  782. "s",
  783. "short"
  784. ],
  785. "yaxes": [
  786. {
  787. "format": "s",
  788. "label": "",
  789. "logBase": 1,
  790. "max": null,
  791. "min": 0,
  792. "show": true
  793. },
  794. {
  795. "format": "short",
  796. "logBase": 1,
  797. "max": null,
  798. "min": null,
  799. "show": true
  800. }
  801. ]
  802. },
  803. {
  804. "aliasColors": {},
  805. "bars": false,
  806. "datasource": "Prometheus",
  807. "decimals": null,
  808. "description": "Elections happen when a primary becomes unavailable. Look at this graph over longer periods (weeks or months) to determine patterns and correlate elections with other events.",
  809. "editable": true,
  810. "error": false,
  811. "fill": 2,
  812. "grid": {
  813. "leftLogBase": 1,
  814. "leftMax": null,
  815. "leftMin": 0,
  816. "rightLogBase": 1,
  817. "rightMax": null,
  818. "rightMin": null
  819. },
  820. "id": 12,
  821. "legend": {
  822. "alignAsTable": true,
  823. "avg": true,
  824. "current": false,
  825. "max": true,
  826. "min": true,
  827. "show": true,
  828. "total": false,
  829. "values": true
  830. },
  831. "lines": true,
  832. "linewidth": 2,
  833. "links": [],
  834. "nullPointMode": "null",
  835. "percentage": false,
  836. "pointradius": 5,
  837. "points": false,
  838. "renderer": "flot",
  839. "seriesOverrides": [],
  840. "span": 6,
  841. "stack": false,
  842. "steppedLine": false,
  843. "targets": [
  844. {
  845. "expr": "max(changes(mongodb_mongod_replset_member_election_date{instance=\"$host\"}[$interval]))",
  846. "interval": "$interval",
  847. "intervalFactor": 1,
  848. "legendFormat": "Count",
  849. "refId": "A",
  850. "step": 300
  851. }
  852. ],
  853. "thresholds": [],
  854. "timeFrom": null,
  855. "timeShift": null,
  856. "title": "Elections",
  857. "tooltip": {
  858. "msResolution": false,
  859. "shared": true,
  860. "sort": 0,
  861. "value_type": "cumulative"
  862. },
  863. "type": "graph",
  864. "x-axis": true,
  865. "xaxis": {
  866. "mode": "time",
  867. "name": null,
  868. "show": true,
  869. "values": []
  870. },
  871. "y-axis": true,
  872. "y_formats": [
  873. "short",
  874. "short"
  875. ],
  876. "yaxes": [
  877. {
  878. "format": "short",
  879. "label": "",
  880. "logBase": 1,
  881. "max": null,
  882. "min": 0,
  883. "show": true
  884. },
  885. {
  886. "format": "short",
  887. "logBase": 1,
  888. "max": null,
  889. "min": null,
  890. "show": true
  891. }
  892. ]
  893. }
  894. ],
  895. "repeat": null,
  896. "repeatIteration": null,
  897. "repeatRowId": null,
  898. "showTitle": false,
  899. "title": "Replication Lag and Elections",
  900. "titleSize": "h6"
  901. },
  902. {
  903. "collapse": false,
  904. "height": "250px",
  905. "panels": [
  906. {
  907. "aliasColors": {},
  908. "bars": false,
  909. "datasource": "Prometheus",
  910. "decimals": null,
  911. "description": "Shows how long various members were in PRIMARY and SECONDARY roles",
  912. "editable": true,
  913. "error": false,
  914. "fill": 2,
  915. "grid": {
  916. "leftLogBase": 1,
  917. "leftMax": null,
  918. "leftMin": null,
  919. "rightLogBase": 1,
  920. "rightMax": null,
  921. "rightMin": null
  922. },
  923. "id": 76,
  924. "legend": {
  925. "alignAsTable": true,
  926. "avg": true,
  927. "current": false,
  928. "max": true,
  929. "min": true,
  930. "rightSide": false,
  931. "show": true,
  932. "sort": "avg",
  933. "sortDesc": true,
  934. "total": false,
  935. "values": true
  936. },
  937. "lines": true,
  938. "linewidth": 2,
  939. "links": [],
  940. "nullPointMode": "null",
  941. "percentage": false,
  942. "pointradius": 5,
  943. "points": false,
  944. "renderer": "flot",
  945. "seriesOverrides": [],
  946. "span": 6,
  947. "stack": false,
  948. "steppedLine": false,
  949. "targets": [
  950. {
  951. "expr": "mongodb_mongod_replset_member_uptime{instance=\"$host\"} * on (name) group_right(state) mongodb_mongod_replset_my_name",
  952. "hide": false,
  953. "interval": "$interval",
  954. "intervalFactor": 1,
  955. "legendFormat": "{{ instance }} - {{state}}",
  956. "metric": "",
  957. "refId": "J",
  958. "step": 300
  959. }
  960. ],
  961. "thresholds": [],
  962. "timeFrom": null,
  963. "timeShift": null,
  964. "title": "Member State Uptime",
  965. "tooltip": {
  966. "msResolution": false,
  967. "shared": true,
  968. "sort": 0,
  969. "value_type": "cumulative"
  970. },
  971. "type": "graph",
  972. "x-axis": true,
  973. "xaxis": {
  974. "mode": "time",
  975. "name": null,
  976. "show": true,
  977. "values": []
  978. },
  979. "y-axis": true,
  980. "y_formats": [
  981. "short",
  982. "short"
  983. ],
  984. "yaxes": [
  985. {
  986. "format": "s",
  987. "label": "",
  988. "logBase": 10,
  989. "max": null,
  990. "min": 0,
  991. "show": true
  992. },
  993. {
  994. "format": "short",
  995. "logBase": 1,
  996. "max": null,
  997. "min": null,
  998. "show": true
  999. }
  1000. ]
  1001. },
  1002. {
  1003. "aliasColors": {},
  1004. "bars": false,
  1005. "datasource": "Prometheus",
  1006. "decimals": null,
  1007. "description": "Shows the heartbeat return times sent by the current member to other members in the replica set.",
  1008. "editable": true,
  1009. "error": false,
  1010. "fill": 2,
  1011. "grid": {
  1012. "leftLogBase": 1,
  1013. "leftMax": null,
  1014. "leftMin": 0,
  1015. "rightLogBase": 1,
  1016. "rightMax": null,
  1017. "rightMin": null
  1018. },
  1019. "id": 75,
  1020. "legend": {
  1021. "alignAsTable": true,
  1022. "avg": true,
  1023. "current": false,
  1024. "max": true,
  1025. "min": true,
  1026. "show": true,
  1027. "sort": "avg",
  1028. "sortDesc": true,
  1029. "total": false,
  1030. "values": true
  1031. },
  1032. "lines": true,
  1033. "linewidth": 2,
  1034. "links": [],
  1035. "nullPointMode": "null",
  1036. "percentage": false,
  1037. "pointradius": 5,
  1038. "points": false,
  1039. "renderer": "flot",
  1040. "seriesOverrides": [],
  1041. "span": 6,
  1042. "stack": false,
  1043. "steppedLine": false,
  1044. "targets": [
  1045. {
  1046. "expr": "time() - max(mongodb_mongod_replset_member_last_heartbeat{instance=\"$host\"}) by (name) * on (name) group_right mongodb_mongod_replset_my_name",
  1047. "hide": false,
  1048. "interval": "$interval",
  1049. "intervalFactor": 1,
  1050. "legendFormat": "{{instance}}",
  1051. "metric": "",
  1052. "refId": "J",
  1053. "step": 300
  1054. }
  1055. ],
  1056. "thresholds": [],
  1057. "timeFrom": null,
  1058. "timeShift": null,
  1059. "title": "Max Heartbeat Time",
  1060. "tooltip": {
  1061. "msResolution": false,
  1062. "shared": true,
  1063. "sort": 0,
  1064. "value_type": "cumulative"
  1065. },
  1066. "type": "graph",
  1067. "x-axis": true,
  1068. "xaxis": {
  1069. "mode": "time",
  1070. "name": null,
  1071. "show": true,
  1072. "values": []
  1073. },
  1074. "y-axis": true,
  1075. "y_formats": [
  1076. "s",
  1077. "short"
  1078. ],
  1079. "yaxes": [
  1080. {
  1081. "format": "s",
  1082. "label": "",
  1083. "logBase": 1,
  1084. "max": null,
  1085. "min": 0,
  1086. "show": true
  1087. },
  1088. {
  1089. "format": "short",
  1090. "logBase": 1,
  1091. "max": null,
  1092. "min": null,
  1093. "show": true
  1094. }
  1095. ]
  1096. }
  1097. ],
  1098. "repeat": null,
  1099. "repeatIteration": null,
  1100. "repeatRowId": null,
  1101. "showTitle": false,
  1102. "title": "Member Uptime and Heartbeat Time",
  1103. "titleSize": "h6"
  1104. },
  1105. {
  1106. "collapse": false,
  1107. "height": "250px",
  1108. "panels": [
  1109. {
  1110. "aliasColors": {},
  1111. "bars": false,
  1112. "datasource": "Prometheus",
  1113. "decimals": null,
  1114. "description": "This can show a correlation with the replication lag value",
  1115. "editable": true,
  1116. "error": false,
  1117. "fill": 2,
  1118. "grid": {
  1119. "leftLogBase": 1,
  1120. "leftMax": null,
  1121. "leftMin": 0,
  1122. "rightLogBase": 1,
  1123. "rightMax": null,
  1124. "rightMin": null
  1125. },
  1126. "id": 13,
  1127. "legend": {
  1128. "alignAsTable": true,
  1129. "avg": true,
  1130. "current": false,
  1131. "max": true,
  1132. "min": true,
  1133. "show": true,
  1134. "sort": "avg",
  1135. "sortDesc": true,
  1136. "total": false,
  1137. "values": true
  1138. },
  1139. "lines": true,
  1140. "linewidth": 2,
  1141. "links": [],
  1142. "nullPointMode": "null",
  1143. "percentage": false,
  1144. "pointradius": 5,
  1145. "points": false,
  1146. "renderer": "flot",
  1147. "seriesOverrides": [],
  1148. "span": 6,
  1149. "stack": false,
  1150. "steppedLine": false,
  1151. "targets": [
  1152. {
  1153. "expr": "mongodb_mongod_replset_member_ping_ms{instance=\"$host\"} * on (name) group_right mongodb_mongod_replset_my_name",
  1154. "interval": "$interval",
  1155. "intervalFactor": 1,
  1156. "legendFormat": "{{instance}}",
  1157. "refId": "A",
  1158. "step": 300
  1159. }
  1160. ],
  1161. "thresholds": [],
  1162. "timeFrom": null,
  1163. "timeShift": null,
  1164. "title": "Max Member Ping Time",
  1165. "tooltip": {
  1166. "msResolution": false,
  1167. "shared": true,
  1168. "sort": 0,
  1169. "value_type": "cumulative"
  1170. },
  1171. "type": "graph",
  1172. "x-axis": true,
  1173. "xaxis": {
  1174. "mode": "time",
  1175. "name": null,
  1176. "show": true,
  1177. "values": []
  1178. },
  1179. "y-axis": true,
  1180. "y_formats": [
  1181. "ms",
  1182. "short"
  1183. ],
  1184. "yaxes": [
  1185. {
  1186. "format": "ms",
  1187. "label": "",
  1188. "logBase": 1,
  1189. "max": null,
  1190. "min": 0,
  1191. "show": true
  1192. },
  1193. {
  1194. "format": "short",
  1195. "logBase": 1,
  1196. "max": null,
  1197. "min": null,
  1198. "show": true
  1199. }
  1200. ]
  1201. },
  1202. {
  1203. "aliasColors": {},
  1204. "bars": false,
  1205. "datasource": "Prometheus",
  1206. "decimals": null,
  1207. "editable": true,
  1208. "error": false,
  1209. "fill": 2,
  1210. "grid": {
  1211. "leftLogBase": 1,
  1212. "leftMax": null,
  1213. "leftMin": 0,
  1214. "rightLogBase": 1,
  1215. "rightMax": null,
  1216. "rightMin": null
  1217. },
  1218. "id": 79,
  1219. "legend": {
  1220. "alignAsTable": true,
  1221. "avg": true,
  1222. "current": false,
  1223. "max": true,
  1224. "min": true,
  1225. "show": true,
  1226. "sort": "avg",
  1227. "sortDesc": true,
  1228. "total": false,
  1229. "values": true
  1230. },
  1231. "lines": true,
  1232. "linewidth": 2,
  1233. "links": [],
  1234. "nullPointMode": "null",
  1235. "percentage": false,
  1236. "pointradius": 5,
  1237. "points": false,
  1238. "renderer": "flot",
  1239. "seriesOverrides": [],
  1240. "span": 6,
  1241. "stack": false,
  1242. "steppedLine": false,
  1243. "targets": [
  1244. {
  1245. "expr": "rate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{instance=\"$host\"}[5m])",
  1246. "interval": "$interval",
  1247. "intervalFactor": 1,
  1248. "legendFormat": "{{instance}}",
  1249. "refId": "A",
  1250. "step": 300
  1251. }
  1252. ],
  1253. "thresholds": [],
  1254. "timeFrom": null,
  1255. "timeShift": null,
  1256. "title": "Oplog Getmore Time",
  1257. "tooltip": {
  1258. "msResolution": false,
  1259. "shared": true,
  1260. "sort": 0,
  1261. "value_type": "cumulative"
  1262. },
  1263. "type": "graph",
  1264. "x-axis": true,
  1265. "xaxis": {
  1266. "mode": "time",
  1267. "name": null,
  1268. "show": true,
  1269. "values": []
  1270. },
  1271. "y-axis": true,
  1272. "y_formats": [
  1273. "ms",
  1274. "short"
  1275. ],
  1276. "yaxes": [
  1277. {
  1278. "format": "ms",
  1279. "label": "",
  1280. "logBase": 1,
  1281. "max": null,
  1282. "min": 0,
  1283. "show": true
  1284. },
  1285. {
  1286. "format": "short",
  1287. "logBase": 1,
  1288. "max": null,
  1289. "min": null,
  1290. "show": true
  1291. }
  1292. ]
  1293. }
  1294. ],
  1295. "repeat": null,
  1296. "repeatIteration": null,
  1297. "repeatRowId": null,
  1298. "showTitle": false,
  1299. "title": "Member Ping Time and Oplog Getmore Time",
  1300. "titleSize": "h6"
  1301. },
  1302. {
  1303. "collapse": false,
  1304. "height": 250,
  1305. "panels": [
  1306. {
  1307. "aliasColors": {},
  1308. "bars": false,
  1309. "datasource": "Prometheus",
  1310. "decimals": null,
  1311. "editable": true,
  1312. "error": false,
  1313. "fill": 2,
  1314. "grid": {
  1315. "leftLogBase": 1,
  1316. "leftMax": null,
  1317. "leftMin": 0,
  1318. "rightLogBase": 1,
  1319. "rightMax": null,
  1320. "rightMin": null
  1321. },
  1322. "id": 81,
  1323. "legend": {
  1324. "alignAsTable": true,
  1325. "avg": true,
  1326. "current": false,
  1327. "max": true,
  1328. "min": true,
  1329. "show": true,
  1330. "sort": "avg",
  1331. "sortDesc": true,
  1332. "total": false,
  1333. "values": true
  1334. },
  1335. "lines": true,
  1336. "linewidth": 2,
  1337. "links": [],
  1338. "nullPointMode": "null",
  1339. "percentage": false,
  1340. "pointradius": 5,
  1341. "points": false,
  1342. "renderer": "flot",
  1343. "seriesOverrides": [],
  1344. "span": 6,
  1345. "stack": false,
  1346. "steppedLine": false,
  1347. "targets": [
  1348. {
  1349. "expr": "rate(mongodb_mongod_metrics_repl_preload_docs_num_total{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_num_total{instance=\"$host\"}[5m])",
  1350. "interval": "$interval",
  1351. "intervalFactor": 1,
  1352. "legendFormat": "Document Preload",
  1353. "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
  1354. "refId": "A",
  1355. "step": 300
  1356. },
  1357. {
  1358. "expr": "rate(mongodb_mongod_metrics_repl_preload_indexes_num_total{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_num_total{instance=\"$host\"}[5m])",
  1359. "interval": "$interval",
  1360. "intervalFactor": 1,
  1361. "legendFormat": "Index Preload",
  1362. "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total",
  1363. "refId": "B",
  1364. "step": 300
  1365. },
  1366. {
  1367. "expr": "rate(mongodb_mongod_metrics_repl_apply_ops_total{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_ops_total{instance=\"$host\"}[5m])",
  1368. "intervalFactor": 2,
  1369. "legendFormat": "Batch Apply",
  1370. "refId": "C",
  1371. "step": 120
  1372. }
  1373. ],
  1374. "thresholds": [],
  1375. "timeFrom": null,
  1376. "timeShift": null,
  1377. "title": "Oplog Operations",
  1378. "tooltip": {
  1379. "msResolution": false,
  1380. "shared": true,
  1381. "sort": 0,
  1382. "value_type": "cumulative"
  1383. },
  1384. "type": "graph",
  1385. "x-axis": true,
  1386. "xaxis": {
  1387. "mode": "time",
  1388. "name": null,
  1389. "show": true,
  1390. "values": []
  1391. },
  1392. "y-axis": true,
  1393. "y_formats": [
  1394. "ms",
  1395. "short"
  1396. ],
  1397. "yaxes": [
  1398. {
  1399. "format": "ops",
  1400. "label": "",
  1401. "logBase": 1,
  1402. "max": null,
  1403. "min": 0,
  1404. "show": true
  1405. },
  1406. {
  1407. "format": "short",
  1408. "logBase": 1,
  1409. "max": null,
  1410. "min": null,
  1411. "show": true
  1412. }
  1413. ]
  1414. },
  1415. {
  1416. "aliasColors": {},
  1417. "bars": false,
  1418. "datasource": "Prometheus",
  1419. "decimals": null,
  1420. "editable": true,
  1421. "error": false,
  1422. "fill": 2,
  1423. "grid": {
  1424. "leftLogBase": 1,
  1425. "leftMax": null,
  1426. "leftMin": 0,
  1427. "rightLogBase": 1,
  1428. "rightMax": null,
  1429. "rightMin": null
  1430. },
  1431. "id": 84,
  1432. "legend": {
  1433. "alignAsTable": true,
  1434. "avg": true,
  1435. "current": false,
  1436. "max": true,
  1437. "min": true,
  1438. "show": true,
  1439. "sort": "avg",
  1440. "sortDesc": true,
  1441. "total": false,
  1442. "values": true
  1443. },
  1444. "lines": true,
  1445. "linewidth": 2,
  1446. "links": [],
  1447. "nullPointMode": "null",
  1448. "percentage": false,
  1449. "pointradius": 5,
  1450. "points": false,
  1451. "renderer": "flot",
  1452. "seriesOverrides": [],
  1453. "span": 6,
  1454. "stack": false,
  1455. "steppedLine": false,
  1456. "targets": [
  1457. {
  1458. "expr": "rate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{instance=\"$host\"}[5m])",
  1459. "interval": "$interval",
  1460. "intervalFactor": 1,
  1461. "legendFormat": "Document Preload",
  1462. "refId": "A",
  1463. "step": 300
  1464. },
  1465. {
  1466. "expr": "rate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{instance=\"$host\"}[5m])",
  1467. "interval": "$interval",
  1468. "intervalFactor": 1,
  1469. "legendFormat": "Index Preload",
  1470. "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
  1471. "refId": "B",
  1472. "step": 300
  1473. },
  1474. {
  1475. "expr": "rate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{instance=\"$host\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{instance=\"$host\"}[5m])",
  1476. "interval": "$interval",
  1477. "intervalFactor": 1,
  1478. "legendFormat": "Batch Apply",
  1479. "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds",
  1480. "refId": "C",
  1481. "step": 300
  1482. }
  1483. ],
  1484. "thresholds": [],
  1485. "timeFrom": null,
  1486. "timeShift": null,
  1487. "title": "Oplog Processing Time",
  1488. "tooltip": {
  1489. "msResolution": false,
  1490. "shared": true,
  1491. "sort": 0,
  1492. "value_type": "cumulative"
  1493. },
  1494. "type": "graph",
  1495. "x-axis": true,
  1496. "xaxis": {
  1497. "mode": "time",
  1498. "name": null,
  1499. "show": true,
  1500. "values": []
  1501. },
  1502. "y-axis": true,
  1503. "y_formats": [
  1504. "ms",
  1505. "short"
  1506. ],
  1507. "yaxes": [
  1508. {
  1509. "format": "ms",
  1510. "label": "",
  1511. "logBase": 1,
  1512. "max": null,
  1513. "min": 0,
  1514. "show": true
  1515. },
  1516. {
  1517. "format": "short",
  1518. "logBase": 1,
  1519. "max": null,
  1520. "min": null,
  1521. "show": true
  1522. }
  1523. ]
  1524. }
  1525. ],
  1526. "repeat": null,
  1527. "repeatIteration": null,
  1528. "repeatRowId": null,
  1529. "showTitle": false,
  1530. "title": "Oplog Operations and Processing Time",
  1531. "titleSize": "h6"
  1532. },
  1533. {
  1534. "collapse": false,
  1535. "height": 250,
  1536. "panels": [
  1537. {
  1538. "aliasColors": {},
  1539. "bars": false,
  1540. "datasource": "Prometheus",
  1541. "decimals": null,
  1542. "editable": true,
  1543. "error": false,
  1544. "fill": 2,
  1545. "grid": {
  1546. "leftLogBase": 1,
  1547. "leftMax": null,
  1548. "leftMin": 0,
  1549. "rightLogBase": 1,
  1550. "rightMax": null,
  1551. "rightMin": null
  1552. },
  1553. "id": 85,
  1554. "legend": {
  1555. "alignAsTable": true,
  1556. "avg": true,
  1557. "current": false,
  1558. "max": true,
  1559. "min": true,
  1560. "show": true,
  1561. "sort": "avg",
  1562. "sortDesc": true,
  1563. "total": false,
  1564. "values": true
  1565. },
  1566. "lines": true,
  1567. "linewidth": 2,
  1568. "links": [],
  1569. "nullPointMode": "null",
  1570. "percentage": false,
  1571. "pointradius": 5,
  1572. "points": false,
  1573. "renderer": "flot",
  1574. "seriesOverrides": [],
  1575. "span": 6,
  1576. "stack": false,
  1577. "steppedLine": false,
  1578. "targets": [
  1579. {
  1580. "expr": "mongodb_mongod_metrics_repl_buffer_count{instance=\"$host\"}",
  1581. "interval": "$interval",
  1582. "intervalFactor": 1,
  1583. "legendFormat": "Current",
  1584. "refId": "A",
  1585. "step": 300
  1586. }
  1587. ],
  1588. "thresholds": [],
  1589. "timeFrom": null,
  1590. "timeShift": null,
  1591. "title": "Oplog Buffered Operations",
  1592. "tooltip": {
  1593. "msResolution": false,
  1594. "shared": true,
  1595. "sort": 0,
  1596. "value_type": "cumulative"
  1597. },
  1598. "type": "graph",
  1599. "x-axis": true,
  1600. "xaxis": {
  1601. "mode": "time",
  1602. "name": null,
  1603. "show": true,
  1604. "values": []
  1605. },
  1606. "y-axis": true,
  1607. "y_formats": [
  1608. "ms",
  1609. "short"
  1610. ],
  1611. "yaxes": [
  1612. {
  1613. "format": "ops",
  1614. "label": "",
  1615. "logBase": 1,
  1616. "max": null,
  1617. "min": 0,
  1618. "show": true
  1619. },
  1620. {
  1621. "format": "short",
  1622. "logBase": 1,
  1623. "max": null,
  1624. "min": null,
  1625. "show": true
  1626. }
  1627. ]
  1628. },
  1629. {
  1630. "aliasColors": {},
  1631. "bars": false,
  1632. "datasource": "Prometheus",
  1633. "decimals": null,
  1634. "editable": true,
  1635. "error": false,
  1636. "fill": 2,
  1637. "grid": {
  1638. "leftLogBase": 1,
  1639. "leftMax": null,
  1640. "leftMin": 0,
  1641. "rightLogBase": 1,
  1642. "rightMax": null,
  1643. "rightMin": null
  1644. },
  1645. "id": 80,
  1646. "legend": {
  1647. "alignAsTable": true,
  1648. "avg": true,
  1649. "current": false,
  1650. "max": true,
  1651. "min": true,
  1652. "show": true,
  1653. "sort": "avg",
  1654. "sortDesc": true,
  1655. "total": false,
  1656. "values": true
  1657. },
  1658. "lines": true,
  1659. "linewidth": 2,
  1660. "links": [],
  1661. "nullPointMode": "null",
  1662. "percentage": false,
  1663. "pointradius": 5,
  1664. "points": false,
  1665. "renderer": "flot",
  1666. "seriesOverrides": [],
  1667. "span": 6,
  1668. "stack": false,
  1669. "steppedLine": false,
  1670. "targets": [
  1671. {
  1672. "expr": "mongodb_mongod_metrics_repl_buffer_size_bytes{instance=\"$host\"}",
  1673. "interval": "$interval",
  1674. "intervalFactor": 1,
  1675. "legendFormat": "Used",
  1676. "refId": "A",
  1677. "step": 300
  1678. },
  1679. {
  1680. "expr": "mongodb_mongod_metrics_repl_buffer_max_size_bytes{instance=\"$host\"}",
  1681. "interval": "$interval",
  1682. "intervalFactor": 1,
  1683. "legendFormat": "Max",
  1684. "refId": "B",
  1685. "step": 300
  1686. }
  1687. ],
  1688. "thresholds": [],
  1689. "timeFrom": null,
  1690. "timeShift": null,
  1691. "title": "Oplog Buffer Capacity",
  1692. "tooltip": {
  1693. "msResolution": false,
  1694. "shared": true,
  1695. "sort": 0,
  1696. "value_type": "cumulative"
  1697. },
  1698. "type": "graph",
  1699. "x-axis": true,
  1700. "xaxis": {
  1701. "mode": "time",
  1702. "name": null,
  1703. "show": true,
  1704. "values": []
  1705. },
  1706. "y-axis": true,
  1707. "y_formats": [
  1708. "ms",
  1709. "short"
  1710. ],
  1711. "yaxes": [
  1712. {
  1713. "format": "decbytes",
  1714. "label": "",
  1715. "logBase": 10,
  1716. "max": null,
  1717. "min": 0,
  1718. "show": true
  1719. },
  1720. {
  1721. "format": "short",
  1722. "logBase": 1,
  1723. "max": null,
  1724. "min": null,
  1725. "show": true
  1726. }
  1727. ]
  1728. }
  1729. ],
  1730. "repeat": null,
  1731. "repeatIteration": null,
  1732. "repeatRowId": null,
  1733. "showTitle": false,
  1734. "title": "Oplog Buffer",
  1735. "titleSize": "h6"
  1736. }
  1737. ],
  1738. "schemaVersion": 14,
  1739. "style": "dark",
  1740. "tags": [
  1741. "MongoDB",
  1742. "Percona"
  1743. ],
  1744. "templating": {
  1745. "list": [
  1746. {
  1747. "allFormat": "glob",
  1748. "auto": true,
  1749. "auto_count": 200,
  1750. "auto_min": "1s",
  1751. "current": {
  1752. "text": "auto",
  1753. "value": "$__auto_interval"
  1754. },
  1755. "datasource": "Prometheus",
  1756. "hide": 0,
  1757. "includeAll": false,
  1758. "label": "Interval",
  1759. "multi": false,
  1760. "multiFormat": "glob",
  1761. "name": "interval",
  1762. "options": [
  1763. {
  1764. "selected": true,
  1765. "text": "auto",
  1766. "value": "$__auto_interval"
  1767. },
  1768. {
  1769. "selected": false,
  1770. "text": "1s",
  1771. "value": "1s"
  1772. },
  1773. {
  1774. "selected": false,
  1775. "text": "5s",
  1776. "value": "5s"
  1777. },
  1778. {
  1779. "selected": false,
  1780. "text": "1m",
  1781. "value": "1m"
  1782. },
  1783. {
  1784. "selected": false,
  1785. "text": "5m",
  1786. "value": "5m"
  1787. },
  1788. {
  1789. "selected": false,
  1790. "text": "1h",
  1791. "value": "1h"
  1792. },
  1793. {
  1794. "selected": false,
  1795. "text": "6h",
  1796. "value": "6h"
  1797. },
  1798. {
  1799. "selected": false,
  1800. "text": "1d",
  1801. "value": "1d"
  1802. }
  1803. ],
  1804. "query": "1s,5s,1m,5m,1h,6h,1d",
  1805. "refresh": 2,
  1806. "type": "interval"
  1807. },
  1808. {
  1809. "allFormat": "blob",
  1810. "allValue": null,
  1811. "datasource": "Prometheus",
  1812. "hide": 0,
  1813. "includeAll": true,
  1814. "label": "Cluster",
  1815. "multi": false,
  1816. "multiFormat": "glob",
  1817. "name": "cluster",
  1818. "query": "label_values(cluster)",
  1819. "refresh": 1,
  1820. "regex": "",
  1821. "sort": 1,
  1822. "tagValuesQuery": null,
  1823. "tags": [],
  1824. "tagsQuery": null,
  1825. "type": "query",
  1826. "useTags": false
  1827. },
  1828. {
  1829. "allFormat": "glob",
  1830. "allValue": null,
  1831. "datasource": "Prometheus",
  1832. "hide": 0,
  1833. "includeAll": false,
  1834. "label": "Replica Set",
  1835. "multi": false,
  1836. "multiFormat": "glob",
  1837. "name": "replset",
  1838. "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)",
  1839. "refresh": 1,
  1840. "regex": "",
  1841. "sort": 1,
  1842. "tagValuesQuery": null,
  1843. "tags": [],
  1844. "tagsQuery": null,
  1845. "type": "query",
  1846. "useTags": false
  1847. },
  1848. {
  1849. "allFormat": "glob",
  1850. "allValue": null,
  1851. "datasource": "Prometheus",
  1852. "hide": 0,
  1853. "includeAll": false,
  1854. "label": "Instance",
  1855. "multi": false,
  1856. "multiFormat": "glob",
  1857. "name": "host",
  1858. "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\", set=\"$replset\"}, instance)",
  1859. "refresh": 1,
  1860. "regex": "",
  1861. "sort": 1,
  1862. "tagValuesQuery": null,
  1863. "tags": [],
  1864. "tagsQuery": "",
  1865. "type": "query",
  1866. "useTags": false
  1867. }
  1868. ]
  1869. },
  1870. "time": {
  1871. "from": "now-12h",
  1872. "to": "now"
  1873. },
  1874. "timepicker": {
  1875. "now": true,
  1876. "refresh_intervals": [
  1877. "5s",
  1878. "10s",
  1879. "30s",
  1880. "1m",
  1881. "5m",
  1882. "15m",
  1883. "30m",
  1884. "1h",
  1885. "2h",
  1886. "1d"
  1887. ],
  1888. "time_options": [
  1889. "5m",
  1890. "15m",
  1891. "1h",
  1892. "6h",
  1893. "12h",
  1894. "24h",
  1895. "2d",
  1896. "7d",
  1897. "30d"
  1898. ]
  1899. },
  1900. "timezone": "browser",
  1901. "title": "MongoDB ReplSet",
  1902. "version": 0
  1903. }