EMQ_Dashboard.json 18 KB

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