grafana-dashboard.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": {
  7. "type": "grafana",
  8. "uid": "-- Grafana --"
  9. },
  10. "enable": true,
  11. "hide": true,
  12. "iconColor": "rgba(0, 211, 255, 1)",
  13. "name": "Annotations & Alerts",
  14. "type": "dashboard"
  15. }
  16. ]
  17. },
  18. "editable": true,
  19. "fiscalYearStartMonth": 0,
  20. "graphTooltip": 0,
  21. "id": null,
  22. "links": [],
  23. "liveNow": false,
  24. "panels": [
  25. {
  26. "datasource": {
  27. "type": "prometheus",
  28. "uid": "${DS_PROMETHEUS}"
  29. },
  30. "fieldConfig": {
  31. "defaults": {
  32. "color": {
  33. "mode": "thresholds"
  34. },
  35. "custom": {
  36. "align": "auto",
  37. "cellOptions": {
  38. "type": "auto"
  39. },
  40. "inspect": false
  41. },
  42. "mappings": [],
  43. "thresholds": {
  44. "mode": "absolute",
  45. "steps": [
  46. {
  47. "color": "green",
  48. "value": null
  49. },
  50. {
  51. "color": "red",
  52. "value": 80
  53. }
  54. ]
  55. }
  56. },
  57. "overrides": []
  58. },
  59. "gridPos": {
  60. "h": 8,
  61. "w": 12,
  62. "x": 0,
  63. "y": 0
  64. },
  65. "id": 1,
  66. "options": {
  67. "showHeader": true
  68. },
  69. "pluginVersion": "10.0.0",
  70. "targets": [
  71. {
  72. "datasource": {
  73. "type": "prometheus",
  74. "uid": "${DS_PROMETHEUS}"
  75. },
  76. "expr": "seaweedfs_telemetry_total_clusters",
  77. "format": "time_series",
  78. "refId": "A"
  79. }
  80. ],
  81. "title": "Total SeaweedFS Clusters",
  82. "type": "stat"
  83. },
  84. {
  85. "datasource": {
  86. "type": "prometheus",
  87. "uid": "${DS_PROMETHEUS}"
  88. },
  89. "fieldConfig": {
  90. "defaults": {
  91. "color": {
  92. "mode": "thresholds"
  93. },
  94. "custom": {
  95. "align": "auto",
  96. "cellOptions": {
  97. "type": "auto"
  98. },
  99. "inspect": false
  100. },
  101. "mappings": [],
  102. "thresholds": {
  103. "mode": "absolute",
  104. "steps": [
  105. {
  106. "color": "green",
  107. "value": null
  108. },
  109. {
  110. "color": "red",
  111. "value": 80
  112. }
  113. ]
  114. }
  115. },
  116. "overrides": []
  117. },
  118. "gridPos": {
  119. "h": 8,
  120. "w": 12,
  121. "x": 12,
  122. "y": 0
  123. },
  124. "id": 2,
  125. "options": {
  126. "showHeader": true
  127. },
  128. "pluginVersion": "10.0.0",
  129. "targets": [
  130. {
  131. "datasource": {
  132. "type": "prometheus",
  133. "uid": "${DS_PROMETHEUS}"
  134. },
  135. "expr": "seaweedfs_telemetry_active_clusters",
  136. "format": "time_series",
  137. "refId": "A"
  138. }
  139. ],
  140. "title": "Active Clusters (7 days)",
  141. "type": "stat"
  142. },
  143. {
  144. "datasource": {
  145. "type": "prometheus",
  146. "uid": "${DS_PROMETHEUS}"
  147. },
  148. "fieldConfig": {
  149. "defaults": {
  150. "color": {
  151. "mode": "palette-classic"
  152. },
  153. "custom": {
  154. "hideFrom": {
  155. "legend": false,
  156. "tooltip": false,
  157. "vis": false
  158. }
  159. },
  160. "mappings": []
  161. },
  162. "overrides": []
  163. },
  164. "gridPos": {
  165. "h": 8,
  166. "w": 12,
  167. "x": 0,
  168. "y": 8
  169. },
  170. "id": 3,
  171. "options": {
  172. "legend": {
  173. "displayMode": "visible",
  174. "placement": "bottom",
  175. "showLegend": true
  176. },
  177. "pieType": "pie",
  178. "reduceOptions": {
  179. "values": false,
  180. "calcs": [
  181. "lastNotNull"
  182. ],
  183. "fields": ""
  184. },
  185. "tooltip": {
  186. "mode": "single",
  187. "sort": "none"
  188. }
  189. },
  190. "targets": [
  191. {
  192. "datasource": {
  193. "type": "prometheus",
  194. "uid": "${DS_PROMETHEUS}"
  195. },
  196. "expr": "count by (version) (seaweedfs_telemetry_cluster_info)",
  197. "format": "time_series",
  198. "legendFormat": "{{version}}",
  199. "refId": "A"
  200. }
  201. ],
  202. "title": "SeaweedFS Version Distribution",
  203. "type": "piechart"
  204. },
  205. {
  206. "datasource": {
  207. "type": "prometheus",
  208. "uid": "${DS_PROMETHEUS}"
  209. },
  210. "fieldConfig": {
  211. "defaults": {
  212. "color": {
  213. "mode": "palette-classic"
  214. },
  215. "custom": {
  216. "hideFrom": {
  217. "legend": false,
  218. "tooltip": false,
  219. "vis": false
  220. }
  221. },
  222. "mappings": []
  223. },
  224. "overrides": []
  225. },
  226. "gridPos": {
  227. "h": 8,
  228. "w": 12,
  229. "x": 12,
  230. "y": 8
  231. },
  232. "id": 4,
  233. "options": {
  234. "legend": {
  235. "displayMode": "visible",
  236. "placement": "bottom",
  237. "showLegend": true
  238. },
  239. "pieType": "pie",
  240. "reduceOptions": {
  241. "values": false,
  242. "calcs": [
  243. "lastNotNull"
  244. ],
  245. "fields": ""
  246. },
  247. "tooltip": {
  248. "mode": "single",
  249. "sort": "none"
  250. }
  251. },
  252. "targets": [
  253. {
  254. "datasource": {
  255. "type": "prometheus",
  256. "uid": "${DS_PROMETHEUS}"
  257. },
  258. "expr": "count by (os) (seaweedfs_telemetry_cluster_info)",
  259. "format": "time_series",
  260. "legendFormat": "{{os}}",
  261. "refId": "A"
  262. }
  263. ],
  264. "title": "Operating System Distribution",
  265. "type": "piechart"
  266. },
  267. {
  268. "datasource": {
  269. "type": "prometheus",
  270. "uid": "${DS_PROMETHEUS}"
  271. },
  272. "fieldConfig": {
  273. "defaults": {
  274. "color": {
  275. "mode": "palette-classic"
  276. },
  277. "custom": {
  278. "axisLabel": "",
  279. "axisPlacement": "auto",
  280. "barAlignment": 0,
  281. "drawStyle": "line",
  282. "fillOpacity": 0,
  283. "gradientMode": "none",
  284. "hideFrom": {
  285. "legend": false,
  286. "tooltip": false,
  287. "vis": false
  288. },
  289. "lineInterpolation": "linear",
  290. "lineWidth": 1,
  291. "pointSize": 5,
  292. "scaleDistribution": {
  293. "type": "linear"
  294. },
  295. "showPoints": "auto",
  296. "spanNulls": false,
  297. "stacking": {
  298. "group": "A",
  299. "mode": "none"
  300. },
  301. "thresholdsStyle": {
  302. "mode": "off"
  303. }
  304. },
  305. "mappings": [],
  306. "thresholds": {
  307. "mode": "absolute",
  308. "steps": [
  309. {
  310. "color": "green",
  311. "value": null
  312. },
  313. {
  314. "color": "red",
  315. "value": 80
  316. }
  317. ]
  318. }
  319. },
  320. "overrides": []
  321. },
  322. "gridPos": {
  323. "h": 8,
  324. "w": 24,
  325. "x": 0,
  326. "y": 16
  327. },
  328. "id": 5,
  329. "options": {
  330. "legend": {
  331. "calcs": [],
  332. "displayMode": "list",
  333. "placement": "bottom",
  334. "showLegend": true
  335. },
  336. "tooltip": {
  337. "mode": "single",
  338. "sort": "none"
  339. }
  340. },
  341. "targets": [
  342. {
  343. "datasource": {
  344. "type": "prometheus",
  345. "uid": "${DS_PROMETHEUS}"
  346. },
  347. "expr": "sum(seaweedfs_telemetry_volume_servers)",
  348. "format": "time_series",
  349. "legendFormat": "Total Volume Servers",
  350. "refId": "A"
  351. }
  352. ],
  353. "title": "Total Volume Servers Over Time",
  354. "type": "timeseries"
  355. },
  356. {
  357. "datasource": {
  358. "type": "prometheus",
  359. "uid": "${DS_PROMETHEUS}"
  360. },
  361. "fieldConfig": {
  362. "defaults": {
  363. "color": {
  364. "mode": "palette-classic"
  365. },
  366. "custom": {
  367. "axisLabel": "",
  368. "axisPlacement": "auto",
  369. "barAlignment": 0,
  370. "drawStyle": "line",
  371. "fillOpacity": 0,
  372. "gradientMode": "none",
  373. "hideFrom": {
  374. "legend": false,
  375. "tooltip": false,
  376. "vis": false
  377. },
  378. "lineInterpolation": "linear",
  379. "lineWidth": 1,
  380. "pointSize": 5,
  381. "scaleDistribution": {
  382. "type": "linear"
  383. },
  384. "showPoints": "auto",
  385. "spanNulls": false,
  386. "stacking": {
  387. "group": "A",
  388. "mode": "none"
  389. },
  390. "thresholdsStyle": {
  391. "mode": "off"
  392. }
  393. },
  394. "mappings": [],
  395. "thresholds": {
  396. "mode": "absolute",
  397. "steps": [
  398. {
  399. "color": "green",
  400. "value": null
  401. },
  402. {
  403. "color": "red",
  404. "value": 80
  405. }
  406. ]
  407. },
  408. "unit": "bytes"
  409. },
  410. "overrides": []
  411. },
  412. "gridPos": {
  413. "h": 8,
  414. "w": 12,
  415. "x": 0,
  416. "y": 24
  417. },
  418. "id": 6,
  419. "options": {
  420. "legend": {
  421. "calcs": [],
  422. "displayMode": "list",
  423. "placement": "bottom",
  424. "showLegend": true
  425. },
  426. "tooltip": {
  427. "mode": "single",
  428. "sort": "none"
  429. }
  430. },
  431. "targets": [
  432. {
  433. "datasource": {
  434. "type": "prometheus",
  435. "uid": "${DS_PROMETHEUS}"
  436. },
  437. "expr": "sum(seaweedfs_telemetry_disk_bytes)",
  438. "format": "time_series",
  439. "legendFormat": "Total Disk Usage",
  440. "refId": "A"
  441. }
  442. ],
  443. "title": "Total Disk Usage Over Time",
  444. "type": "timeseries"
  445. },
  446. {
  447. "datasource": {
  448. "type": "prometheus",
  449. "uid": "${DS_PROMETHEUS}"
  450. },
  451. "fieldConfig": {
  452. "defaults": {
  453. "color": {
  454. "mode": "palette-classic"
  455. },
  456. "custom": {
  457. "axisLabel": "",
  458. "axisPlacement": "auto",
  459. "barAlignment": 0,
  460. "drawStyle": "line",
  461. "fillOpacity": 0,
  462. "gradientMode": "none",
  463. "hideFrom": {
  464. "legend": false,
  465. "tooltip": false,
  466. "vis": false
  467. },
  468. "lineInterpolation": "linear",
  469. "lineWidth": 1,
  470. "pointSize": 5,
  471. "scaleDistribution": {
  472. "type": "linear"
  473. },
  474. "showPoints": "auto",
  475. "spanNulls": false,
  476. "stacking": {
  477. "group": "A",
  478. "mode": "none"
  479. },
  480. "thresholdsStyle": {
  481. "mode": "off"
  482. }
  483. },
  484. "mappings": [],
  485. "thresholds": {
  486. "mode": "absolute",
  487. "steps": [
  488. {
  489. "color": "green",
  490. "value": null
  491. },
  492. {
  493. "color": "red",
  494. "value": 80
  495. }
  496. ]
  497. }
  498. },
  499. "overrides": []
  500. },
  501. "gridPos": {
  502. "h": 8,
  503. "w": 12,
  504. "x": 12,
  505. "y": 24
  506. },
  507. "id": 7,
  508. "options": {
  509. "legend": {
  510. "calcs": [],
  511. "displayMode": "list",
  512. "placement": "bottom",
  513. "showLegend": true
  514. },
  515. "tooltip": {
  516. "mode": "single",
  517. "sort": "none"
  518. }
  519. },
  520. "targets": [
  521. {
  522. "datasource": {
  523. "type": "prometheus",
  524. "uid": "${DS_PROMETHEUS}"
  525. },
  526. "expr": "sum(seaweedfs_telemetry_volume_count)",
  527. "format": "time_series",
  528. "legendFormat": "Total Volume Count",
  529. "refId": "A"
  530. }
  531. ],
  532. "title": "Total Volume Count Over Time",
  533. "type": "timeseries"
  534. },
  535. {
  536. "datasource": {
  537. "type": "prometheus",
  538. "uid": "${DS_PROMETHEUS}"
  539. },
  540. "fieldConfig": {
  541. "defaults": {
  542. "color": {
  543. "mode": "palette-classic"
  544. },
  545. "custom": {
  546. "axisLabel": "",
  547. "axisPlacement": "auto",
  548. "barAlignment": 0,
  549. "drawStyle": "line",
  550. "fillOpacity": 0,
  551. "gradientMode": "none",
  552. "hideFrom": {
  553. "legend": false,
  554. "tooltip": false,
  555. "vis": false
  556. },
  557. "lineInterpolation": "linear",
  558. "lineWidth": 1,
  559. "pointSize": 5,
  560. "scaleDistribution": {
  561. "type": "linear"
  562. },
  563. "showPoints": "auto",
  564. "spanNulls": false,
  565. "stacking": {
  566. "group": "A",
  567. "mode": "none"
  568. },
  569. "thresholdsStyle": {
  570. "mode": "off"
  571. }
  572. },
  573. "mappings": [],
  574. "thresholds": {
  575. "mode": "absolute",
  576. "steps": [
  577. {
  578. "color": "green",
  579. "value": null
  580. },
  581. {
  582. "color": "red",
  583. "value": 80
  584. }
  585. ]
  586. }
  587. },
  588. "overrides": []
  589. },
  590. "gridPos": {
  591. "h": 8,
  592. "w": 12,
  593. "x": 0,
  594. "y": 32
  595. },
  596. "id": 8,
  597. "options": {
  598. "legend": {
  599. "calcs": [],
  600. "displayMode": "list",
  601. "placement": "bottom",
  602. "showLegend": true
  603. },
  604. "tooltip": {
  605. "mode": "single",
  606. "sort": "none"
  607. }
  608. },
  609. "targets": [
  610. {
  611. "datasource": {
  612. "type": "prometheus",
  613. "uid": "${DS_PROMETHEUS}"
  614. },
  615. "expr": "sum(seaweedfs_telemetry_filer_count)",
  616. "format": "time_series",
  617. "legendFormat": "Total Filer Count",
  618. "refId": "A"
  619. }
  620. ],
  621. "title": "Total Filer Servers Over Time",
  622. "type": "timeseries"
  623. },
  624. {
  625. "datasource": {
  626. "type": "prometheus",
  627. "uid": "${DS_PROMETHEUS}"
  628. },
  629. "fieldConfig": {
  630. "defaults": {
  631. "color": {
  632. "mode": "palette-classic"
  633. },
  634. "custom": {
  635. "axisLabel": "",
  636. "axisPlacement": "auto",
  637. "barAlignment": 0,
  638. "drawStyle": "line",
  639. "fillOpacity": 0,
  640. "gradientMode": "none",
  641. "hideFrom": {
  642. "legend": false,
  643. "tooltip": false,
  644. "vis": false
  645. },
  646. "lineInterpolation": "linear",
  647. "lineWidth": 1,
  648. "pointSize": 5,
  649. "scaleDistribution": {
  650. "type": "linear"
  651. },
  652. "showPoints": "auto",
  653. "spanNulls": false,
  654. "stacking": {
  655. "group": "A",
  656. "mode": "none"
  657. },
  658. "thresholdsStyle": {
  659. "mode": "off"
  660. }
  661. },
  662. "mappings": [],
  663. "thresholds": {
  664. "mode": "absolute",
  665. "steps": [
  666. {
  667. "color": "green",
  668. "value": null
  669. },
  670. {
  671. "color": "red",
  672. "value": 80
  673. }
  674. ]
  675. }
  676. },
  677. "overrides": []
  678. },
  679. "gridPos": {
  680. "h": 8,
  681. "w": 12,
  682. "x": 12,
  683. "y": 32
  684. },
  685. "id": 9,
  686. "options": {
  687. "legend": {
  688. "calcs": [],
  689. "displayMode": "list",
  690. "placement": "bottom",
  691. "showLegend": true
  692. },
  693. "tooltip": {
  694. "mode": "single",
  695. "sort": "none"
  696. }
  697. },
  698. "targets": [
  699. {
  700. "datasource": {
  701. "type": "prometheus",
  702. "uid": "${DS_PROMETHEUS}"
  703. },
  704. "expr": "sum(seaweedfs_telemetry_broker_count)",
  705. "format": "time_series",
  706. "legendFormat": "Total Broker Count",
  707. "refId": "A"
  708. }
  709. ],
  710. "title": "Total Broker Servers Over Time",
  711. "type": "timeseries"
  712. }
  713. ],
  714. "refresh": "5m",
  715. "schemaVersion": 38,
  716. "style": "dark",
  717. "tags": [
  718. "seaweedfs",
  719. "telemetry"
  720. ],
  721. "templating": {
  722. "list": []
  723. },
  724. "time": {
  725. "from": "now-24h",
  726. "to": "now"
  727. },
  728. "timepicker": {},
  729. "timezone": "",
  730. "title": "SeaweedFS Telemetry Dashboard",
  731. "uid": "seaweedfs-telemetry",
  732. "version": 1,
  733. "weekStart": ""
  734. }