Disk_Space.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "hideControls": true,
  8. "id": null,
  9. "links": [
  10. {
  11. "asDropdown": true,
  12. "icon": "external link",
  13. "includeVars": true,
  14. "keepTime": true,
  15. "tags": [
  16. "OS"
  17. ],
  18. "targetBlank": true,
  19. "title": "OS",
  20. "type": "dashboards"
  21. },
  22. {
  23. "asDropdown": true,
  24. "icon": "external link",
  25. "includeVars": true,
  26. "keepTime": true,
  27. "tags": [
  28. "MySQL"
  29. ],
  30. "targetBlank": true,
  31. "title": "MySQL",
  32. "type": "dashboards"
  33. },
  34. {
  35. "asDropdown": true,
  36. "icon": "external link",
  37. "includeVars": true,
  38. "keepTime": true,
  39. "tags": [
  40. "MongoDB"
  41. ],
  42. "targetBlank": true,
  43. "title": "MongoDB",
  44. "type": "dashboards"
  45. },
  46. {
  47. "asDropdown": true,
  48. "icon": "external link",
  49. "includeVars": true,
  50. "keepTime": true,
  51. "tags": [
  52. "HA"
  53. ],
  54. "targetBlank": true,
  55. "title": "HA",
  56. "type": "dashboards"
  57. }
  58. ],
  59. "refresh": false,
  60. "rows": [
  61. {
  62. "collapse": false,
  63. "height": "250px",
  64. "panels": [
  65. {
  66. "aliasColors": {
  67. "Free (device /dev/xvda1, ext4)": "#82B5D8",
  68. "Used (device /dev/xvda1, ext4)": "#BA43A9"
  69. },
  70. "bars": false,
  71. "datasource": "Prometheus",
  72. "decimals": 2,
  73. "editable": true,
  74. "error": false,
  75. "fill": 0,
  76. "grid": {},
  77. "id": 9,
  78. "legend": {
  79. "alignAsTable": true,
  80. "avg": true,
  81. "current": false,
  82. "hideEmpty": false,
  83. "hideZero": false,
  84. "max": true,
  85. "min": true,
  86. "rightSide": true,
  87. "show": true,
  88. "sort": "avg",
  89. "sortDesc": true,
  90. "total": false,
  91. "values": true
  92. },
  93. "lines": true,
  94. "linewidth": 2,
  95. "links": [],
  96. "minSpan": 6,
  97. "nullPointMode": "null",
  98. "percentage": false,
  99. "pointradius": 5,
  100. "points": false,
  101. "renderer": "flot",
  102. "seriesOverrides": [],
  103. "span": 12,
  104. "stack": false,
  105. "steppedLine": false,
  106. "targets": [
  107. {
  108. "calculatedInterval": "2m",
  109. "datasourceErrors": {},
  110. "errors": {},
  111. "expr": "1 - node_filesystem_free{instance=\"$host\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"} / node_filesystem_size{instance=\"$host\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
  112. "hide": false,
  113. "interval": "$interval",
  114. "intervalFactor": 1,
  115. "legendFormat": "{{ mountpoint }}",
  116. "metric": "",
  117. "refId": "B",
  118. "step": 300
  119. }
  120. ],
  121. "thresholds": [],
  122. "timeFrom": null,
  123. "timeShift": null,
  124. "title": "Mountpoint Usage",
  125. "tooltip": {
  126. "msResolution": false,
  127. "shared": true,
  128. "sort": 0,
  129. "value_type": "individual"
  130. },
  131. "transparent": false,
  132. "type": "graph",
  133. "xaxis": {
  134. "mode": "time",
  135. "name": null,
  136. "show": true,
  137. "values": []
  138. },
  139. "yaxes": [
  140. {
  141. "format": "percentunit",
  142. "label": "",
  143. "logBase": 1,
  144. "max": 1,
  145. "min": 0,
  146. "show": true
  147. },
  148. {
  149. "format": "bytes",
  150. "logBase": 1,
  151. "max": null,
  152. "min": null,
  153. "show": true
  154. }
  155. ]
  156. }
  157. ],
  158. "repeat": null,
  159. "repeatIteration": null,
  160. "repeatRowId": null,
  161. "showTitle": false,
  162. "title": "New row",
  163. "titleSize": "h6"
  164. },
  165. {
  166. "collapse": false,
  167. "height": "250px",
  168. "panels": [
  169. {
  170. "content": "`Disk Space` - Amount of disk space used and available on various mount points. Running out of disk space on OS volume, database volume or volume used for temporary space can cause downtime. Some storage may also have reduced performance when small amount of space is available.\n",
  171. "datasource": "Prometheus",
  172. "editable": true,
  173. "error": false,
  174. "height": "50px",
  175. "id": 7,
  176. "links": [],
  177. "mode": "markdown",
  178. "span": 12,
  179. "style": {},
  180. "title": "",
  181. "transparent": true,
  182. "type": "text"
  183. },
  184. {
  185. "aliasColors": {
  186. "Free (device /dev/xvda1, ext4)": "#82B5D8",
  187. "Used (device /dev/xvda1, ext4)": "#BA43A9"
  188. },
  189. "bars": false,
  190. "datasource": "Prometheus",
  191. "decimals": 2,
  192. "editable": true,
  193. "error": false,
  194. "fill": 6,
  195. "grid": {},
  196. "id": 4,
  197. "legend": {
  198. "alignAsTable": true,
  199. "avg": true,
  200. "current": false,
  201. "hideEmpty": false,
  202. "max": true,
  203. "min": true,
  204. "rightSide": false,
  205. "show": true,
  206. "total": false,
  207. "values": true
  208. },
  209. "lines": true,
  210. "linewidth": 2,
  211. "links": [],
  212. "minSpan": 6,
  213. "nullPointMode": "null",
  214. "percentage": false,
  215. "pointradius": 5,
  216. "points": false,
  217. "renderer": "flot",
  218. "repeat": "mountpoint",
  219. "scopedVars": {
  220. "mountpoint": {
  221. "selected": false,
  222. "text": "/boot",
  223. "value": "/boot"
  224. }
  225. },
  226. "seriesOverrides": [
  227. {
  228. "alias": "/Used/",
  229. "color": "#99440A"
  230. },
  231. {
  232. "alias": "/Free/",
  233. "color": "#EF843C"
  234. }
  235. ],
  236. "span": 6,
  237. "stack": true,
  238. "steppedLine": false,
  239. "targets": [
  240. {
  241. "calculatedInterval": "2m",
  242. "datasourceErrors": {},
  243. "errors": {},
  244. "expr": "node_filesystem_size{instance=\"$host\",mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"} - node_filesystem_free{instance=\"$host\",mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
  245. "hide": false,
  246. "interval": "$interval",
  247. "intervalFactor": 1,
  248. "legendFormat": "Used (device {{ device }}, {{ fstype }})",
  249. "metric": "",
  250. "refId": "B",
  251. "step": 300
  252. },
  253. {
  254. "calculatedInterval": "2m",
  255. "datasourceErrors": {},
  256. "errors": {},
  257. "expr": "node_filesystem_free{instance=\"$host\", mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
  258. "interval": "$interval",
  259. "intervalFactor": 1,
  260. "legendFormat": "Free (device {{ device }}, {{ fstype }})",
  261. "metric": "",
  262. "refId": "A",
  263. "step": 300,
  264. "target": ""
  265. }
  266. ],
  267. "thresholds": [],
  268. "timeFrom": null,
  269. "timeShift": null,
  270. "title": "Mountpoint $mountpoint",
  271. "tooltip": {
  272. "msResolution": false,
  273. "shared": true,
  274. "sort": 0,
  275. "value_type": "individual"
  276. },
  277. "transparent": false,
  278. "type": "graph",
  279. "xaxis": {
  280. "mode": "time",
  281. "name": null,
  282. "show": true,
  283. "values": []
  284. },
  285. "yaxes": [
  286. {
  287. "format": "bytes",
  288. "label": "",
  289. "logBase": 1,
  290. "max": null,
  291. "min": 0,
  292. "show": true
  293. },
  294. {
  295. "format": "bytes",
  296. "logBase": 1,
  297. "max": null,
  298. "min": null,
  299. "show": true
  300. }
  301. ]
  302. },
  303. {
  304. "aliasColors": {
  305. "Free (device /dev/xvda1, ext4)": "#82B5D8",
  306. "Used (device /dev/xvda1, ext4)": "#BA43A9"
  307. },
  308. "bars": false,
  309. "datasource": "Prometheus",
  310. "decimals": 2,
  311. "editable": true,
  312. "error": false,
  313. "fill": 6,
  314. "grid": {},
  315. "id": 8,
  316. "legend": {
  317. "alignAsTable": true,
  318. "avg": true,
  319. "current": false,
  320. "hideEmpty": false,
  321. "max": true,
  322. "min": true,
  323. "rightSide": false,
  324. "show": true,
  325. "total": false,
  326. "values": true
  327. },
  328. "lines": true,
  329. "linewidth": 2,
  330. "links": [],
  331. "minSpan": 6,
  332. "nullPointMode": "null",
  333. "percentage": false,
  334. "pointradius": 5,
  335. "points": false,
  336. "renderer": "flot",
  337. "repeat": null,
  338. "repeatIteration": 1480943686527,
  339. "repeatPanelId": 4,
  340. "scopedVars": {
  341. "mountpoint": {
  342. "selected": false,
  343. "text": "/",
  344. "value": "/"
  345. }
  346. },
  347. "seriesOverrides": [
  348. {
  349. "alias": "/Used/",
  350. "color": "#99440A"
  351. },
  352. {
  353. "alias": "/Free/",
  354. "color": "#EF843C"
  355. }
  356. ],
  357. "span": 6,
  358. "stack": true,
  359. "steppedLine": false,
  360. "targets": [
  361. {
  362. "calculatedInterval": "2m",
  363. "datasourceErrors": {},
  364. "errors": {},
  365. "expr": "node_filesystem_size{instance=\"$host\",mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"} - node_filesystem_free{instance=\"$host\",mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
  366. "hide": false,
  367. "interval": "$interval",
  368. "intervalFactor": 1,
  369. "legendFormat": "Used (device {{ device }}, {{ fstype }})",
  370. "metric": "",
  371. "refId": "B",
  372. "step": 300
  373. },
  374. {
  375. "calculatedInterval": "2m",
  376. "datasourceErrors": {},
  377. "errors": {},
  378. "expr": "node_filesystem_free{instance=\"$host\", mountpoint=\"$mountpoint\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}",
  379. "interval": "$interval",
  380. "intervalFactor": 1,
  381. "legendFormat": "Free (device {{ device }}, {{ fstype }})",
  382. "metric": "",
  383. "refId": "A",
  384. "step": 300,
  385. "target": ""
  386. }
  387. ],
  388. "thresholds": [],
  389. "timeFrom": null,
  390. "timeShift": null,
  391. "title": "Mountpoint $mountpoint",
  392. "tooltip": {
  393. "msResolution": false,
  394. "shared": true,
  395. "sort": 0,
  396. "value_type": "individual"
  397. },
  398. "transparent": false,
  399. "type": "graph",
  400. "xaxis": {
  401. "mode": "time",
  402. "name": null,
  403. "show": true,
  404. "values": []
  405. },
  406. "yaxes": [
  407. {
  408. "format": "bytes",
  409. "label": "",
  410. "logBase": 1,
  411. "max": null,
  412. "min": 0,
  413. "show": true
  414. },
  415. {
  416. "format": "bytes",
  417. "logBase": 1,
  418. "max": null,
  419. "min": null,
  420. "show": true
  421. }
  422. ]
  423. }
  424. ],
  425. "repeat": null,
  426. "repeatIteration": null,
  427. "repeatRowId": null,
  428. "showTitle": false,
  429. "title": "Disk Space",
  430. "titleSize": "h6"
  431. }
  432. ],
  433. "schemaVersion": 13,
  434. "sharedCrosshair": true,
  435. "style": "dark",
  436. "tags": [
  437. "OS",
  438. "Percona"
  439. ],
  440. "templating": {
  441. "list": [
  442. {
  443. "allFormat": "glob",
  444. "auto": true,
  445. "auto_count": 200,
  446. "auto_min": "1s",
  447. "current": {
  448. "text": "auto",
  449. "value": "$__auto_interval"
  450. },
  451. "datasource": "Prometheus",
  452. "hide": 0,
  453. "includeAll": false,
  454. "label": "Interval",
  455. "multi": false,
  456. "multiFormat": "glob",
  457. "name": "interval",
  458. "options": [
  459. {
  460. "selected": true,
  461. "text": "auto",
  462. "value": "$__auto_interval"
  463. },
  464. {
  465. "selected": false,
  466. "text": "1s",
  467. "value": "1s"
  468. },
  469. {
  470. "selected": false,
  471. "text": "5s",
  472. "value": "5s"
  473. },
  474. {
  475. "selected": false,
  476. "text": "1m",
  477. "value": "1m"
  478. },
  479. {
  480. "selected": false,
  481. "text": "5m",
  482. "value": "5m"
  483. },
  484. {
  485. "selected": false,
  486. "text": "1h",
  487. "value": "1h"
  488. },
  489. {
  490. "selected": false,
  491. "text": "6h",
  492. "value": "6h"
  493. },
  494. {
  495. "selected": false,
  496. "text": "1d",
  497. "value": "1d"
  498. }
  499. ],
  500. "query": "1s,5s,1m,5m,1h,6h,1d",
  501. "refresh": 2,
  502. "type": "interval"
  503. },
  504. {
  505. "allFormat": "glob",
  506. "allValue": null,
  507. "datasource": "Prometheus",
  508. "hide": 0,
  509. "includeAll": false,
  510. "label": "Host",
  511. "multi": false,
  512. "multiFormat": "regex values",
  513. "name": "host",
  514. "query": "label_values(node_filesystem_avail, instance)",
  515. "refresh": 1,
  516. "refresh_on_load": false,
  517. "regex": "",
  518. "sort": 1,
  519. "tagValuesQuery": "instance",
  520. "tagsQuery": "up",
  521. "type": "query",
  522. "useTags": false
  523. },
  524. {
  525. "allFormat": "wildcard",
  526. "allValue": null,
  527. "datasource": "Prometheus",
  528. "hide": 2,
  529. "hideLabel": false,
  530. "includeAll": true,
  531. "label": "Mountpoint",
  532. "multi": false,
  533. "multiFormat": "regex values",
  534. "name": "mountpoint",
  535. "query": "label_values(node_filesystem_avail{instance=\"$host\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)",
  536. "refresh": 1,
  537. "refresh_on_load": false,
  538. "regex": "",
  539. "sort": 1,
  540. "tagValuesQuery": "instance",
  541. "tagsQuery": "up",
  542. "type": "query",
  543. "useTags": false
  544. }
  545. ]
  546. },
  547. "time": {
  548. "from": "now-12h",
  549. "to": "now"
  550. },
  551. "timepicker": {
  552. "collapse": false,
  553. "enable": true,
  554. "notice": false,
  555. "now": true,
  556. "refresh_intervals": [
  557. "5s",
  558. "10s",
  559. "30s",
  560. "1m",
  561. "5m",
  562. "15m",
  563. "30m",
  564. "1h",
  565. "2h",
  566. "1d"
  567. ],
  568. "status": "Stable",
  569. "time_options": [
  570. "5m",
  571. "15m",
  572. "1h",
  573. "6h",
  574. "12h",
  575. "24h",
  576. "2d",
  577. "7d",
  578. "30d"
  579. ],
  580. "type": "timepicker"
  581. },
  582. "timezone": "browser",
  583. "title": "Disk Space",
  584. "version": 0
  585. }