jvb.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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": 2,
  22. "links": [],
  23. "liveNow": false,
  24. "panels": [
  25. {
  26. "datasource": {
  27. "type": "loki",
  28. "uid": "b8130a28-4867-4668-917d-539c93852857"
  29. },
  30. "fieldConfig": {
  31. "defaults": {
  32. "color": {
  33. "mode": "palette-classic"
  34. },
  35. "custom": {
  36. "hideFrom": {
  37. "legend": false,
  38. "tooltip": false,
  39. "viz": false
  40. }
  41. },
  42. "mappings": []
  43. },
  44. "overrides": []
  45. },
  46. "gridPos": {
  47. "h": 8,
  48. "w": 12,
  49. "x": 0,
  50. "y": 0
  51. },
  52. "id": 2,
  53. "options": {
  54. "displayLabels": [
  55. "percent",
  56. "name"
  57. ],
  58. "legend": {
  59. "displayMode": "list",
  60. "placement": "bottom",
  61. "showLegend": true
  62. },
  63. "pieType": "pie",
  64. "reduceOptions": {
  65. "calcs": [
  66. "lastNotNull"
  67. ],
  68. "fields": "",
  69. "values": false
  70. },
  71. "tooltip": {
  72. "mode": "single",
  73. "sort": "none"
  74. }
  75. },
  76. "targets": [
  77. {
  78. "datasource": {
  79. "type": "loki",
  80. "uid": "b8130a28-4867-4668-917d-539c93852857"
  81. },
  82. "editorMode": "code",
  83. "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jvb.log\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)",
  84. "legendFormat": "Level: {{attributes_level}}",
  85. "queryType": "range",
  86. "refId": "A"
  87. }
  88. ],
  89. "title": "JVB Log Levels Pie Chart",
  90. "type": "piechart"
  91. },
  92. {
  93. "datasource": {
  94. "type": "loki",
  95. "uid": "b8130a28-4867-4668-917d-539c93852857"
  96. },
  97. "fieldConfig": {
  98. "defaults": {
  99. "color": {
  100. "mode": "continuous-GrYlRd"
  101. },
  102. "mappings": [],
  103. "thresholds": {
  104. "mode": "absolute",
  105. "steps": [
  106. {
  107. "color": "green",
  108. "value": null
  109. },
  110. {
  111. "color": "red",
  112. "value": 80
  113. }
  114. ]
  115. },
  116. "unit": "percent"
  117. },
  118. "overrides": []
  119. },
  120. "gridPos": {
  121. "h": 8,
  122. "w": 12,
  123. "x": 0,
  124. "y": 8
  125. },
  126. "id": 1,
  127. "options": {
  128. "displayMode": "lcd",
  129. "minVizHeight": 10,
  130. "minVizWidth": 0,
  131. "namePlacement": "auto",
  132. "orientation": "horizontal",
  133. "reduceOptions": {
  134. "calcs": [
  135. "lastNotNull"
  136. ],
  137. "fields": "",
  138. "values": false
  139. },
  140. "showUnfilled": true,
  141. "valueMode": "color"
  142. },
  143. "pluginVersion": "10.2.0",
  144. "targets": [
  145. {
  146. "datasource": {
  147. "type": "loki",
  148. "uid": "b8130a28-4867-4668-917d-539c93852857"
  149. },
  150. "editorMode": "code",
  151. "expr": "sum by (attributes_level, attributes_log_file_name) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jvb.log\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] <attributes_level>#<attributes_log_file_name>: <_>\"[5m]))",
  152. "legendFormat": "Level: {{attributes_level}}",
  153. "queryType": "range",
  154. "refId": "A"
  155. }
  156. ],
  157. "title": "JVB Log Levels Bar Chart",
  158. "type": "bargauge"
  159. }
  160. ],
  161. "refresh": "",
  162. "schemaVersion": 38,
  163. "tags": [],
  164. "templating": {
  165. "list": []
  166. },
  167. "time": {
  168. "from": "now-6h",
  169. "to": "now"
  170. },
  171. "timepicker": {},
  172. "timezone": "",
  173. "title": "JVB Dashboard",
  174. "uid": "d53a9efb-ca3b-4f47-af3a-9638de8a35fa",
  175. "version": 1,
  176. "weekStart": ""
  177. }