jicofo.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": 1,
  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. ],
  57. "legend": {
  58. "calcs": [],
  59. "displayMode": "hidden",
  60. "placement": "right",
  61. "showLegend": false,
  62. "values": []
  63. },
  64. "pieType": "pie",
  65. "reduceOptions": {
  66. "calcs": [
  67. "lastNotNull"
  68. ],
  69. "fields": "",
  70. "values": false
  71. },
  72. "tooltip": {
  73. "mode": "single",
  74. "sort": "none"
  75. }
  76. },
  77. "targets": [
  78. {
  79. "datasource": {
  80. "type": "loki",
  81. "uid": "b8130a28-4867-4668-917d-539c93852857"
  82. },
  83. "editorMode": "code",
  84. "expr": "sum by (attributes_level) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jicofo.log\"| line_format \"{{.log}}\" | logfmt | pattern \"[<_>] <_level>: <_>\"[5m])\n)",
  85. "legendFormat": "Level: {{attributes_level}}",
  86. "queryType": "range",
  87. "refId": "A"
  88. }
  89. ],
  90. "title": "Log Levels Pie Chart",
  91. "type": "piechart"
  92. },
  93. {
  94. "datasource": {
  95. "type": "loki",
  96. "uid": "b8130a28-4867-4668-917d-539c93852857"
  97. },
  98. "fieldConfig": {
  99. "defaults": {
  100. "color": {
  101. "mode": "continuous-GrYlRd"
  102. },
  103. "mappings": [],
  104. "thresholds": {
  105. "mode": "absolute",
  106. "steps": [
  107. {
  108. "color": "green"
  109. },
  110. {
  111. "color": "red",
  112. "value": 80
  113. }
  114. ]
  115. }
  116. },
  117. "overrides": []
  118. },
  119. "gridPos": {
  120. "h": 8,
  121. "w": 12,
  122. "x": 0,
  123. "y": 8
  124. },
  125. "id": 1,
  126. "options": {
  127. "displayMode": "lcd",
  128. "minVizHeight": 10,
  129. "minVizWidth": 0,
  130. "namePlacement": "auto",
  131. "orientation": "horizontal",
  132. "reduceOptions": {
  133. "calcs": [
  134. "lastNotNull"
  135. ],
  136. "fields": "",
  137. "values": false
  138. },
  139. "showUnfilled": true,
  140. "valueMode": "color"
  141. },
  142. "pluginVersion": "10.2.0",
  143. "targets": [
  144. {
  145. "datasource": {
  146. "type": "loki",
  147. "uid": "b8130a28-4867-4668-917d-539c93852857"
  148. },
  149. "editorMode": "code",
  150. "expr": "sum by (attributes_level, attributes_log_file_name) (\n rate({exporter=\"OTLP\"} | json|attributes_log_file_name=\"jicofo.log\"| line_format \"{{.attributes_message}}\" | logfmt | pattern \"[<_>] <attributes_level>#<attributes_log_file_name>: <_>\"[5m]))",
  151. "legendFormat": "Level: {{attributes_level}}",
  152. "queryType": "range",
  153. "refId": "A"
  154. }
  155. ],
  156. "title": "Log Levels Bar Chart",
  157. "transformations": [],
  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": "Jicofo Logs",
  174. "uid": "f2dcfe84-3c27-4b1d-8583-bc2c97a8d22d",
  175. "version": 5,
  176. "weekStart": ""
  177. }