prosody.json 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  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. "links": [],
  22. "liveNow": false,
  23. "panels": [
  24. {
  25. "datasource": {
  26. "type": "loki",
  27. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  28. },
  29. "gridPos": {
  30. "h": 8,
  31. "w": 12,
  32. "x": 0,
  33. "y": 0
  34. },
  35. "id": 6,
  36. "options": {
  37. "dedupStrategy": "none",
  38. "enableLogDetails": true,
  39. "prettifyLogMessage": false,
  40. "showCommonLabels": false,
  41. "showLabels": false,
  42. "showTime": false,
  43. "sortOrder": "Descending",
  44. "wrapLogMessage": false
  45. },
  46. "targets": [
  47. {
  48. "datasource": {
  49. "type": "loki",
  50. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  51. },
  52. "editorMode": "code",
  53. "expr": "{exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\"",
  54. "queryType": "range",
  55. "refId": "A"
  56. }
  57. ],
  58. "title": "Prosody Logs",
  59. "type": "logs"
  60. },
  61. {
  62. "datasource": {
  63. "type": "loki",
  64. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  65. },
  66. "fieldConfig": {
  67. "defaults": {
  68. "color": {
  69. "mode": "palette-classic"
  70. },
  71. "custom": {
  72. "hideFrom": {
  73. "legend": false,
  74. "tooltip": false,
  75. "viz": false
  76. }
  77. },
  78. "mappings": []
  79. },
  80. "overrides": []
  81. },
  82. "gridPos": {
  83. "h": 8,
  84. "w": 12,
  85. "x": 12,
  86. "y": 0
  87. },
  88. "id": 1,
  89. "options": {
  90. "displayLabels": [
  91. "percent"
  92. ],
  93. "legend": {
  94. "calcs": [],
  95. "displayMode": "hidden",
  96. "placement": "right",
  97. "showLegend": false,
  98. "values": []
  99. },
  100. "pieType": "pie",
  101. "reduceOptions": {
  102. "calcs": [
  103. "lastNotNull"
  104. ],
  105. "fields": "",
  106. "values": false
  107. },
  108. "tooltip": {
  109. "mode": "single",
  110. "sort": "none"
  111. }
  112. },
  113. "targets": [
  114. {
  115. "datasource": {
  116. "type": "loki",
  117. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  118. },
  119. "editorMode": "code",
  120. "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-prosody\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)",
  121. "legendFormat": "Level: {{attributes_level}}",
  122. "queryType": "range",
  123. "refId": "A"
  124. }
  125. ],
  126. "title": "Prosody Log Levels Pie Chart",
  127. "type": "piechart"
  128. },
  129. {
  130. "datasource": {
  131. "type": "loki",
  132. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  133. },
  134. "fieldConfig": {
  135. "defaults": {
  136. "color": {
  137. "mode": "continuous-GrYlRd"
  138. },
  139. "mappings": [],
  140. "thresholds": {
  141. "mode": "absolute",
  142. "steps": [
  143. {
  144. "color": "green",
  145. "value": null
  146. },
  147. {
  148. "color": "red",
  149. "value": 80
  150. }
  151. ]
  152. }
  153. },
  154. "overrides": []
  155. },
  156. "gridPos": {
  157. "h": 8,
  158. "w": 12,
  159. "x": 0,
  160. "y": 8
  161. },
  162. "id": 7,
  163. "options": {
  164. "displayMode": "lcd",
  165. "minVizHeight": 10,
  166. "minVizWidth": 0,
  167. "namePlacement": "auto",
  168. "orientation": "horizontal",
  169. "reduceOptions": {
  170. "calcs": [
  171. "lastNotNull"
  172. ],
  173. "fields": "",
  174. "values": false
  175. },
  176. "showUnfilled": true,
  177. "valueMode": "color"
  178. },
  179. "pluginVersion": "10.2.0",
  180. "targets": [
  181. {
  182. "datasource": {
  183. "type": "loki",
  184. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  185. },
  186. "editorMode": "code",
  187. "expr": "sum by (attributes_level, attributes_attrs_service) (\n rate({exporter=\"OTLP\"} | json|attributes_attrs_service=\"jitsi-prosody\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] <attributes_level>#<attributes_attrs_service>: <_>\"[5m]))",
  188. "legendFormat": "Level: {{attributes_level}}",
  189. "queryType": "range",
  190. "refId": "A"
  191. }
  192. ],
  193. "title": "Prosody Log Levels Bar Chart",
  194. "type": "bargauge"
  195. },
  196. {
  197. "datasource": {
  198. "type": "loki",
  199. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  200. },
  201. "fieldConfig": {
  202. "defaults": {
  203. "mappings": [],
  204. "thresholds": {
  205. "mode": "percentage",
  206. "steps": [
  207. {
  208. "color": "green",
  209. "value": null
  210. },
  211. {
  212. "color": "orange",
  213. "value": 70
  214. },
  215. {
  216. "color": "red",
  217. "value": 85
  218. }
  219. ]
  220. }
  221. },
  222. "overrides": []
  223. },
  224. "gridPos": {
  225. "h": 8,
  226. "w": 12,
  227. "x": 12,
  228. "y": 8
  229. },
  230. "id": 5,
  231. "options": {
  232. "minVizHeight": 75,
  233. "minVizWidth": 75,
  234. "orientation": "auto",
  235. "reduceOptions": {
  236. "calcs": [
  237. "lastNotNull"
  238. ],
  239. "fields": "",
  240. "values": false
  241. },
  242. "showThresholdLabels": false,
  243. "showThresholdMarkers": true
  244. },
  245. "pluginVersion": "10.2.0",
  246. "targets": [
  247. {
  248. "datasource": {
  249. "type": "loki",
  250. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  251. },
  252. "editorMode": "code",
  253. "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\" |~ \"Starting room\" [1m]))",
  254. "queryType": "range",
  255. "refId": "A"
  256. }
  257. ],
  258. "title": "Prosody Total Number of Rooms Started",
  259. "type": "gauge"
  260. },
  261. {
  262. "datasource": {
  263. "type": "loki",
  264. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  265. },
  266. "fieldConfig": {
  267. "defaults": {
  268. "mappings": [],
  269. "thresholds": {
  270. "mode": "percentage",
  271. "steps": [
  272. {
  273. "color": "green",
  274. "value": null
  275. },
  276. {
  277. "color": "orange",
  278. "value": 70
  279. },
  280. {
  281. "color": "red",
  282. "value": 85
  283. }
  284. ]
  285. }
  286. },
  287. "overrides": []
  288. },
  289. "gridPos": {
  290. "h": 8,
  291. "w": 12,
  292. "x": 0,
  293. "y": 16
  294. },
  295. "id": 3,
  296. "options": {
  297. "minVizHeight": 75,
  298. "minVizWidth": 75,
  299. "orientation": "auto",
  300. "reduceOptions": {
  301. "calcs": [
  302. "lastNotNull"
  303. ],
  304. "fields": "",
  305. "values": false
  306. },
  307. "showThresholdLabels": false,
  308. "showThresholdMarkers": true
  309. },
  310. "pluginVersion": "10.2.0",
  311. "targets": [
  312. {
  313. "datasource": {
  314. "type": "loki",
  315. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  316. },
  317. "editorMode": "code",
  318. "expr": "sum(count_over_time({exporter=\"OTLP\"} | json | attributes_attrs_service=\"jitsi-prosody\" |~ \"Client disconnected\" [1m]))",
  319. "queryType": "range",
  320. "refId": "A"
  321. }
  322. ],
  323. "title": "Prosody Total Number of Clients Disconnected",
  324. "type": "gauge"
  325. },
  326. {
  327. "datasource": {
  328. "type": "loki",
  329. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  330. },
  331. "fieldConfig": {
  332. "defaults": {
  333. "mappings": [],
  334. "thresholds": {
  335. "mode": "percentage",
  336. "steps": [
  337. {
  338. "color": "green",
  339. "value": null
  340. },
  341. {
  342. "color": "orange",
  343. "value": 70
  344. },
  345. {
  346. "color": "red",
  347. "value": 85
  348. }
  349. ]
  350. }
  351. },
  352. "overrides": []
  353. },
  354. "gridPos": {
  355. "h": 8,
  356. "w": 12,
  357. "x": 12,
  358. "y": 16
  359. },
  360. "id": 2,
  361. "options": {
  362. "minVizHeight": 75,
  363. "minVizWidth": 75,
  364. "orientation": "auto",
  365. "reduceOptions": {
  366. "calcs": [
  367. "lastNotNull"
  368. ],
  369. "fields": "",
  370. "values": false
  371. },
  372. "showThresholdLabels": false,
  373. "showThresholdMarkers": true
  374. },
  375. "pluginVersion": "10.2.0",
  376. "targets": [
  377. {
  378. "datasource": {
  379. "type": "loki",
  380. "uid": "a4bdfb3e-762a-46e5-a79f-2e7bbe88d444"
  381. },
  382. "editorMode": "code",
  383. "expr": "sum(count_over_time({exporter=\"OTLP\"} | json |attributes_attrs_service=\"jitsi-prosody\" |~ \"Client connected\" [1m]))",
  384. "queryType": "range",
  385. "refId": "A"
  386. }
  387. ],
  388. "title": "Prosody Total Number of Clients Connected",
  389. "type": "gauge"
  390. }
  391. ],
  392. "refresh": "",
  393. "schemaVersion": 38,
  394. "tags": [],
  395. "templating": {
  396. "list": []
  397. },
  398. "time": {
  399. "from": "now-6h",
  400. "to": "now"
  401. },
  402. "timepicker": {},
  403. "timezone": "",
  404. "title": "Prosody Dashboard",
  405. "uid": "fe2d57bc-b09b-4688-8037-f642047b0cfc",
  406. "version": 1,
  407. "weekStart": ""
  408. }