karafka-web 0.9.1 → 0.10.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/ci.yml +30 -0
  4. data/.gitignore +2 -0
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +85 -1
  7. data/Gemfile +1 -0
  8. data/Gemfile.lock +30 -25
  9. data/LICENSE +1 -1
  10. data/bin/build_assets +51 -0
  11. data/bin/release +6 -0
  12. data/config/locales/pro_errors.yml +18 -0
  13. data/docker-compose.yml +1 -1
  14. data/gulpfile.js +73 -0
  15. data/karafka-web.gemspec +2 -2
  16. data/lib/karafka/web/config.rb +9 -10
  17. data/lib/karafka/web/contracts/base.rb +2 -0
  18. data/lib/karafka/web/contracts/config.rb +2 -1
  19. data/lib/karafka/web/errors.rb +12 -0
  20. data/lib/karafka/web/inflector.rb +1 -1
  21. data/lib/karafka/web/management/actions/enable.rb +11 -0
  22. data/lib/karafka/web/management/migrations/consumers_metrics/0_set_initial.rb +39 -0
  23. data/lib/karafka/web/management/migrations/consumers_metrics/1699543515_fill_missing_received_and_sent_bytes.rb +28 -0
  24. data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb +26 -0
  25. data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_remove_processing.rb +26 -0
  26. data/lib/karafka/web/management/migrations/consumers_metrics/1704722380_split_listeners_into_active_and_paused.rb +38 -0
  27. data/lib/karafka/web/management/migrations/consumers_metrics/1706607960_introduce_lag_total.rb +40 -0
  28. data/lib/karafka/web/management/migrations/consumers_metrics/1706611396_rename_lag_total_to_lag_hybrid.rb +38 -0
  29. data/lib/karafka/web/management/migrations/consumers_metrics/1716218393_populate_jobs_metrics.rb +26 -0
  30. data/lib/karafka/web/management/migrations/consumers_states/0_set_initial.rb +46 -0
  31. data/lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb +25 -0
  32. data/lib/karafka/web/management/migrations/consumers_states/1700234522_introduce_waiting.rb +22 -0
  33. data/lib/karafka/web/management/migrations/consumers_states/1700234522_remove_processing.rb +22 -0
  34. data/lib/karafka/web/management/migrations/consumers_states/1704722380_split_listeners_into_active_and_paused.rb +34 -0
  35. data/lib/karafka/web/management/migrations/consumers_states/1706607960_introduce_lag_total.rb +24 -0
  36. data/lib/karafka/web/management/migrations/consumers_states/1706611396_rename_lag_total_to_lag_hybrid.rb +23 -0
  37. data/lib/karafka/web/management/migrations/consumers_states/1716218393_add_jobs_counter.rb +24 -0
  38. data/lib/karafka/web/management/migrator.rb +5 -5
  39. data/lib/karafka/web/pro/commanding/commands/base.rb +8 -0
  40. data/lib/karafka/web/pro/commanding/commands/quiet.rb +4 -1
  41. data/lib/karafka/web/pro/commanding/commands/stop.rb +4 -1
  42. data/lib/karafka/web/pro/loader.rb +8 -0
  43. data/lib/karafka/web/pro/ui/app.rb +44 -7
  44. data/lib/karafka/web/pro/ui/controllers/dlq_controller.rb +1 -1
  45. data/lib/karafka/web/pro/ui/controllers/errors_controller.rb +1 -0
  46. data/lib/karafka/web/pro/ui/controllers/explorer_controller.rb +6 -14
  47. data/lib/karafka/web/pro/ui/controllers/messages_controller.rb +5 -4
  48. data/lib/karafka/web/pro/ui/controllers/search_controller.rb +73 -0
  49. data/lib/karafka/web/pro/ui/controllers/support_controller.rb +26 -0
  50. data/lib/karafka/web/pro/ui/controllers/topics_controller.rb +31 -0
  51. data/lib/karafka/web/pro/ui/controllers/ux_controller.rb +26 -0
  52. data/lib/karafka/web/pro/ui/lib/policies/config.rb +39 -0
  53. data/lib/karafka/web/pro/ui/lib/policies/contracts/config.rb +46 -0
  54. data/lib/karafka/web/pro/ui/lib/policies/messages.rb +76 -0
  55. data/lib/karafka/web/pro/ui/lib/policies/requests.rb +36 -0
  56. data/lib/karafka/web/pro/ui/lib/policies.rb +34 -0
  57. data/lib/karafka/web/pro/ui/lib/safe_runner.rb +98 -0
  58. data/lib/karafka/web/pro/ui/lib/search/config.rb +53 -0
  59. data/lib/karafka/web/pro/ui/lib/search/contracts/config.rb +101 -0
  60. data/lib/karafka/web/pro/ui/lib/search/contracts/form.rb +111 -0
  61. data/lib/karafka/web/pro/ui/lib/search/matchers/base.rb +59 -0
  62. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_header_includes.rb +57 -0
  63. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb +41 -0
  64. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_payload_includes.rb +45 -0
  65. data/lib/karafka/web/pro/ui/lib/search/normalizer.rb +47 -0
  66. data/lib/karafka/web/pro/ui/lib/search/runner.rb +230 -0
  67. data/lib/karafka/web/pro/ui/lib/search.rb +36 -0
  68. data/lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb +4 -4
  69. data/lib/karafka/web/pro/ui/views/cluster/_tabs.erb +14 -24
  70. data/lib/karafka/web/pro/ui/views/cluster/index.erb +20 -22
  71. data/lib/karafka/web/pro/ui/views/cluster/show.erb +21 -25
  72. data/lib/karafka/web/pro/ui/views/commands/_backtrace.erb +4 -19
  73. data/lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb +3 -3
  74. data/lib/karafka/web/pro/ui/views/commands/_command.erb +6 -6
  75. data/lib/karafka/web/pro/ui/views/commands/_command_details.erb +1 -11
  76. data/lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb +3 -14
  77. data/lib/karafka/web/pro/ui/views/commands/_metadata.erb +33 -42
  78. data/lib/karafka/web/pro/ui/views/commands/_table.erb +9 -3
  79. data/lib/karafka/web/pro/ui/views/commands/index.erb +18 -12
  80. data/lib/karafka/web/pro/ui/views/commands/show.erb +24 -29
  81. data/lib/karafka/web/pro/ui/views/consumers/_breadcrumbs.erb +8 -8
  82. data/lib/karafka/web/pro/ui/views/consumers/_consumer.erb +13 -23
  83. data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +51 -35
  84. data/lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb +1 -1
  85. data/lib/karafka/web/pro/ui/views/consumers/_tabs.erb +28 -30
  86. data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +68 -28
  87. data/lib/karafka/web/pro/ui/views/consumers/consumer/_job.erb +1 -1
  88. data/lib/karafka/web/pro/ui/views/consumers/consumer/_metrics.erb +114 -133
  89. data/lib/karafka/web/pro/ui/views/consumers/consumer/_partition.erb +4 -4
  90. data/lib/karafka/web/pro/ui/views/consumers/consumer/_stopped.erb +6 -9
  91. data/lib/karafka/web/pro/ui/views/consumers/consumer/_subscription_group.erb +116 -126
  92. data/lib/karafka/web/pro/ui/views/consumers/consumer/_tabs.erb +26 -31
  93. data/lib/karafka/web/pro/ui/views/consumers/controls.erb +53 -57
  94. data/lib/karafka/web/pro/ui/views/consumers/details.erb +4 -17
  95. data/lib/karafka/web/pro/ui/views/consumers/index.erb +31 -34
  96. data/lib/karafka/web/pro/ui/views/consumers/pending_jobs.erb +41 -46
  97. data/lib/karafka/web/pro/ui/views/consumers/performance.erb +43 -47
  98. data/lib/karafka/web/pro/ui/views/consumers/running_jobs.erb +41 -46
  99. data/lib/karafka/web/pro/ui/views/consumers/subscriptions.erb +14 -17
  100. data/lib/karafka/web/pro/ui/views/dashboard/index.erb +67 -76
  101. data/lib/karafka/web/pro/ui/views/dlq/_breadcrumbs.erb +1 -1
  102. data/lib/karafka/web/pro/ui/views/dlq/_no_topics.erb +1 -7
  103. data/lib/karafka/web/pro/ui/views/dlq/_topic.erb +7 -10
  104. data/lib/karafka/web/pro/ui/views/dlq/index.erb +8 -10
  105. data/lib/karafka/web/pro/ui/views/errors/_breadcrumbs.erb +3 -3
  106. data/lib/karafka/web/pro/ui/views/errors/_error.erb +8 -5
  107. data/lib/karafka/web/pro/ui/views/errors/_selector.erb +12 -0
  108. data/lib/karafka/web/pro/ui/views/errors/_table.erb +5 -4
  109. data/lib/karafka/web/pro/ui/views/errors/index.erb +50 -15
  110. data/lib/karafka/web/pro/ui/views/errors/partition.erb +61 -14
  111. data/lib/karafka/web/pro/ui/views/errors/show.erb +28 -46
  112. data/lib/karafka/web/pro/ui/views/explorer/_breadcrumbs.erb +11 -3
  113. data/lib/karafka/web/pro/ui/views/explorer/_failed_deserialization.erb +8 -3
  114. data/lib/karafka/web/pro/ui/views/explorer/_message.erb +12 -6
  115. data/lib/karafka/web/pro/ui/views/explorer/_no_topics.erb +1 -5
  116. data/lib/karafka/web/pro/ui/views/explorer/_selector.erb +12 -0
  117. data/lib/karafka/web/pro/ui/views/explorer/_topic.erb +6 -8
  118. data/lib/karafka/web/pro/ui/views/explorer/index.erb +13 -15
  119. data/lib/karafka/web/pro/ui/views/explorer/message/_metadata.erb +68 -32
  120. data/lib/karafka/web/pro/ui/views/explorer/message/_payload.erb +17 -16
  121. data/lib/karafka/web/pro/ui/views/explorer/message/_resources_utilization.erb +127 -0
  122. data/lib/karafka/web/pro/ui/views/explorer/message/_too_big_to_be_displayed.erb +20 -0
  123. data/lib/karafka/web/pro/ui/views/explorer/messages/_detail.erb +1 -1
  124. data/lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb +3 -5
  125. data/lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb +3 -5
  126. data/lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb +6 -3
  127. data/lib/karafka/web/pro/ui/views/explorer/partition.erb +67 -46
  128. data/lib/karafka/web/pro/ui/views/explorer/show.erb +85 -21
  129. data/lib/karafka/web/pro/ui/views/explorer/topic/_actions.erb +27 -0
  130. data/lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb +3 -5
  131. data/lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb +8 -10
  132. data/lib/karafka/web/pro/ui/views/explorer/topic.erb +24 -44
  133. data/lib/karafka/web/pro/ui/views/health/_breadcrumbs.erb +7 -7
  134. data/lib/karafka/web/pro/ui/views/health/_no_data.erb +1 -7
  135. data/lib/karafka/web/pro/ui/views/health/_partition.erb +3 -3
  136. data/lib/karafka/web/pro/ui/views/health/_partition_lags.erb +3 -3
  137. data/lib/karafka/web/pro/ui/views/health/_partition_offset.erb +2 -2
  138. data/lib/karafka/web/pro/ui/views/health/_partition_times.erb +3 -7
  139. data/lib/karafka/web/pro/ui/views/health/_table_metadata.erb +8 -0
  140. data/lib/karafka/web/pro/ui/views/health/_tabs.erb +32 -49
  141. data/lib/karafka/web/pro/ui/views/health/changes.erb +51 -51
  142. data/lib/karafka/web/pro/ui/views/health/cluster_lags.erb +28 -41
  143. data/lib/karafka/web/pro/ui/views/health/lags.erb +52 -52
  144. data/lib/karafka/web/pro/ui/views/health/offsets.erb +55 -55
  145. data/lib/karafka/web/pro/ui/views/health/overview.erb +60 -60
  146. data/lib/karafka/web/pro/ui/views/jobs/_job.erb +1 -1
  147. data/lib/karafka/web/pro/ui/views/jobs/_no_jobs.erb +1 -7
  148. data/lib/karafka/web/pro/ui/views/jobs/pending.erb +36 -38
  149. data/lib/karafka/web/pro/ui/views/jobs/running.erb +36 -38
  150. data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +7 -12
  151. data/lib/karafka/web/pro/ui/views/routing/_topic.erb +13 -11
  152. data/lib/karafka/web/pro/ui/views/routing/index.erb +7 -9
  153. data/lib/karafka/web/pro/ui/views/routing/show.erb +41 -33
  154. data/lib/karafka/web/pro/ui/views/search/_fix_errors.erb +3 -0
  155. data/lib/karafka/web/pro/ui/views/search/_metadata.erb +71 -0
  156. data/lib/karafka/web/pro/ui/views/search/_no_results.erb +3 -0
  157. data/lib/karafka/web/pro/ui/views/search/_no_search_criteria.erb +5 -0
  158. data/lib/karafka/web/pro/ui/views/search/_search_criteria.erb +37 -0
  159. data/lib/karafka/web/pro/ui/views/search/_search_modal.erb +139 -0
  160. data/lib/karafka/web/pro/ui/views/search/_timeout.erb +3 -0
  161. data/lib/karafka/web/pro/ui/views/search/index.erb +29 -0
  162. data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +80 -28
  163. data/lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb +14 -6
  164. data/lib/karafka/web/pro/ui/views/topics/_partition_offsets.erb +10 -0
  165. data/lib/karafka/web/pro/ui/views/topics/_tabs.erb +26 -32
  166. data/lib/karafka/web/pro/ui/views/topics/_topic.erb +7 -10
  167. data/lib/karafka/web/pro/ui/views/topics/config.erb +21 -25
  168. data/lib/karafka/web/pro/ui/views/topics/distribution/_badges.erb +10 -5
  169. data/lib/karafka/web/pro/ui/views/topics/distribution/_chart.erb +3 -1
  170. data/lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb +1 -1
  171. data/lib/karafka/web/pro/ui/views/topics/distribution.erb +34 -39
  172. data/lib/karafka/web/pro/ui/views/topics/index.erb +13 -15
  173. data/lib/karafka/web/pro/ui/views/topics/offsets.erb +24 -0
  174. data/lib/karafka/web/pro/ui/views/topics/replication.erb +20 -24
  175. data/lib/karafka/web/processing/consumers/aggregators/metrics.rb +1 -1
  176. data/lib/karafka/web/processing/consumers/aggregators/state.rb +1 -1
  177. data/lib/karafka/web/processing/consumers/contracts/aggregated_stats.rb +1 -0
  178. data/lib/karafka/web/tracking/consumers/contracts/report.rb +6 -0
  179. data/lib/karafka/web/tracking/consumers/listeners/connections.rb +8 -6
  180. data/lib/karafka/web/tracking/consumers/listeners/processing.rb +2 -0
  181. data/lib/karafka/web/tracking/consumers/listeners/tags.rb +1 -1
  182. data/lib/karafka/web/tracking/consumers/reporter.rb +6 -8
  183. data/lib/karafka/web/tracking/consumers/sampler.rb +16 -5
  184. data/lib/karafka/web/ui/app.rb +20 -1
  185. data/lib/karafka/web/ui/base.rb +26 -20
  186. data/lib/karafka/web/ui/controllers/base_controller.rb +7 -5
  187. data/lib/karafka/web/ui/controllers/dashboard_controller.rb +8 -0
  188. data/lib/karafka/web/ui/controllers/requests/params.rb +16 -2
  189. data/lib/karafka/web/ui/controllers/support_controller.rb +17 -0
  190. data/lib/karafka/web/ui/controllers/ux_controller.rb +17 -0
  191. data/lib/karafka/web/ui/helpers/application_helper.rb +75 -42
  192. data/lib/karafka/web/ui/helpers/paths_helper.rb +24 -0
  193. data/lib/karafka/web/ui/helpers/tailwind_helper.rb +90 -0
  194. data/lib/karafka/web/ui/lib/sorter.rb +1 -1
  195. data/lib/karafka/web/ui/models/metrics/aggregated.rb +1 -0
  196. data/lib/karafka/web/ui/models/metrics/charts/topics.rb +36 -20
  197. data/lib/karafka/web/ui/models/status.rb +28 -1
  198. data/lib/karafka/web/ui/public/images/calendar.svg +3 -0
  199. data/lib/karafka/web/ui/public/javascripts/application.js +39 -15
  200. data/lib/karafka/web/ui/public/javascripts/application.min.js +64 -0
  201. data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
  202. data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
  203. data/lib/karafka/web/ui/public/javascripts/charts/types/line.js +41 -9
  204. data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +37 -0
  205. data/lib/karafka/web/ui/public/javascripts/{live_poll.js → components/live_poll.js} +44 -8
  206. data/lib/karafka/web/ui/public/javascripts/{offset_datetime.js → components/offset_datetime.js} +1 -1
  207. data/lib/karafka/web/ui/public/javascripts/components/search.js +102 -0
  208. data/lib/karafka/web/ui/public/javascripts/components/tabs_manager.js +84 -0
  209. data/lib/karafka/web/ui/public/javascripts/components/theme_manager.js +59 -0
  210. data/lib/karafka/web/ui/public/javascripts/components/turbo_tracker.js +30 -0
  211. data/lib/karafka/web/ui/public/javascripts/libs/datepicker.js +2 -2
  212. data/lib/karafka/web/ui/public/javascripts/libs/turbo.js +6618 -0
  213. data/lib/karafka/web/ui/public/stylesheets/application.css +16 -113
  214. data/lib/karafka/web/ui/public/stylesheets/application.min.css +13 -0
  215. data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
  216. data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
  217. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css +8 -0
  218. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.br +0 -0
  219. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.gz +0 -0
  220. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.br +0 -0
  221. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.gz +0 -0
  222. data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +391 -0
  223. data/lib/karafka/web/ui/views/cluster/_breadcrumbs.erb +3 -3
  224. data/lib/karafka/web/ui/views/cluster/_tabs.erb +14 -24
  225. data/lib/karafka/web/ui/views/cluster/brokers.erb +20 -22
  226. data/lib/karafka/web/ui/views/cluster/replication.erb +28 -32
  227. data/lib/karafka/web/ui/views/consumers/_assignments_badges.erb +1 -1
  228. data/lib/karafka/web/ui/views/consumers/_breadcrumbs.erb +5 -0
  229. data/lib/karafka/web/ui/views/consumers/_consumer.erb +9 -13
  230. data/lib/karafka/web/ui/views/consumers/_no_consumers.erb +2 -8
  231. data/lib/karafka/web/ui/views/consumers/_summary.erb +34 -45
  232. data/lib/karafka/web/ui/views/consumers/_tabs.erb +35 -0
  233. data/lib/karafka/web/ui/views/consumers/index.erb +31 -33
  234. data/lib/karafka/web/ui/views/dashboard/_counters.erb +76 -0
  235. data/lib/karafka/web/ui/views/dashboard/_feature_pro.erb +6 -2
  236. data/lib/karafka/web/ui/views/dashboard/_not_enough_data.erb +3 -15
  237. data/lib/karafka/web/ui/views/dashboard/_ranges_selector.erb +12 -12
  238. data/lib/karafka/web/ui/views/dashboard/index.erb +78 -52
  239. data/lib/karafka/web/ui/views/errors/_breadcrumbs.erb +2 -2
  240. data/lib/karafka/web/ui/views/errors/_detail.erb +1 -3
  241. data/lib/karafka/web/ui/views/errors/_error.erb +3 -5
  242. data/lib/karafka/web/ui/views/errors/index.erb +34 -44
  243. data/lib/karafka/web/ui/views/errors/show.erb +29 -47
  244. data/lib/karafka/web/ui/views/jobs/_breadcrumbs.erb +3 -3
  245. data/lib/karafka/web/ui/views/jobs/_job.erb +1 -1
  246. data/lib/karafka/web/ui/views/jobs/_no_jobs.erb +1 -7
  247. data/lib/karafka/web/ui/views/jobs/_tabs.erb +14 -24
  248. data/lib/karafka/web/ui/views/jobs/pending.erb +30 -32
  249. data/lib/karafka/web/ui/views/jobs/running.erb +30 -32
  250. data/lib/karafka/web/ui/views/layout.erb +37 -21
  251. data/lib/karafka/web/ui/views/routing/_breadcrumbs.erb +2 -2
  252. data/lib/karafka/web/ui/views/routing/_consumer_group.erb +7 -12
  253. data/lib/karafka/web/ui/views/routing/_topic.erb +3 -5
  254. data/lib/karafka/web/ui/views/routing/index.erb +7 -9
  255. data/lib/karafka/web/ui/views/routing/show.erb +30 -22
  256. data/lib/karafka/web/ui/views/shared/_become_pro.erb +8 -8
  257. data/lib/karafka/web/ui/views/shared/_brand.erb +2 -2
  258. data/lib/karafka/web/ui/views/shared/_breadcrumbs.erb +23 -0
  259. data/lib/karafka/web/ui/views/shared/_content.erb +2 -28
  260. data/lib/karafka/web/ui/views/shared/_controls.erb +15 -0
  261. data/lib/karafka/web/ui/views/shared/_flashes.erb +5 -7
  262. data/lib/karafka/web/ui/views/shared/_header.erb +14 -19
  263. data/lib/karafka/web/ui/views/shared/_navigation.erb +84 -28
  264. data/lib/karafka/web/ui/views/shared/_no_paginated_data.erb +5 -9
  265. data/lib/karafka/web/ui/views/shared/_pagination.erb +11 -11
  266. data/lib/karafka/web/ui/views/shared/_tab_nav.erb +4 -5
  267. data/lib/karafka/web/ui/views/shared/_title.erb +5 -0
  268. data/lib/karafka/web/ui/views/shared/alerts/_box_error.erb +15 -0
  269. data/lib/karafka/web/ui/views/shared/alerts/_box_info.erb +15 -0
  270. data/lib/karafka/web/ui/views/shared/alerts/_box_primary.erb +15 -0
  271. data/lib/karafka/web/ui/views/shared/alerts/_box_secondary.erb +15 -0
  272. data/lib/karafka/web/ui/views/shared/alerts/_box_success.erb +15 -0
  273. data/lib/karafka/web/ui/views/shared/alerts/_box_warning.erb +15 -0
  274. data/lib/karafka/web/ui/views/shared/alerts/_error.erb +4 -0
  275. data/lib/karafka/web/ui/views/shared/alerts/_info.erb +5 -2
  276. data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +4 -0
  277. data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +4 -0
  278. data/lib/karafka/web/ui/views/shared/alerts/_success.erb +4 -0
  279. data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +4 -0
  280. data/lib/karafka/web/ui/views/shared/charts/_line.erb +1 -1
  281. data/lib/karafka/web/ui/views/shared/exceptions/not_allowed.erb +14 -19
  282. data/lib/karafka/web/ui/views/shared/exceptions/not_found.erb +16 -21
  283. data/lib/karafka/web/ui/views/shared/exceptions/pro_only.erb +16 -28
  284. data/lib/karafka/web/ui/views/shared/icons/_arrow_down_on_square.erb +3 -0
  285. data/lib/karafka/web/ui/views/shared/icons/_arrow_down_tray.erb +3 -0
  286. data/lib/karafka/web/ui/views/shared/icons/_arrow_on_squares.erb +3 -0
  287. data/lib/karafka/web/ui/views/shared/icons/_arrow_path_rounded.erb +3 -0
  288. data/lib/karafka/web/ui/views/shared/icons/_arrow_uturn_right.erb +3 -0
  289. data/lib/karafka/web/ui/views/shared/icons/_arrows_right_left.erb +3 -0
  290. data/lib/karafka/web/ui/views/shared/icons/_blocks.erb +3 -0
  291. data/lib/karafka/web/ui/views/shared/icons/_book_open.erb +3 -0
  292. data/lib/karafka/web/ui/views/shared/icons/_bug.erb +3 -0
  293. data/lib/karafka/web/ui/views/shared/icons/_burger.erb +14 -0
  294. data/lib/karafka/web/ui/views/shared/icons/_calendar_days.erb +3 -0
  295. data/lib/karafka/web/ui/views/shared/icons/_chart_bar.erb +3 -0
  296. data/lib/karafka/web/ui/views/shared/icons/_check_badge.erb +3 -0
  297. data/lib/karafka/web/ui/views/shared/icons/_check_circle.erb +3 -0
  298. data/lib/karafka/web/ui/views/shared/icons/_circle_stack.erb +3 -0
  299. data/lib/karafka/web/ui/views/shared/icons/_cpu.erb +3 -0
  300. data/lib/karafka/web/ui/views/shared/icons/_document_glass.erb +3 -0
  301. data/lib/karafka/web/ui/views/shared/icons/_exclamation_triangle.erb +3 -0
  302. data/lib/karafka/web/ui/views/shared/icons/_eye.erb +4 -0
  303. data/lib/karafka/web/ui/views/shared/icons/_gear.erb +4 -0
  304. data/lib/karafka/web/ui/views/shared/icons/_github.erb +13 -0
  305. data/lib/karafka/web/ui/views/shared/icons/_globe.erb +3 -0
  306. data/lib/karafka/web/ui/views/shared/icons/_heart.erb +3 -0
  307. data/lib/karafka/web/ui/views/shared/icons/_home.erb +3 -0
  308. data/lib/karafka/web/ui/views/shared/icons/_info_circle.erb +3 -0
  309. data/lib/karafka/web/ui/views/shared/icons/_lifebuoy.erb +3 -0
  310. data/lib/karafka/web/ui/views/shared/icons/_light_bulb.erb +3 -0
  311. data/lib/karafka/web/ui/views/shared/icons/_list_bullets.erb +3 -0
  312. data/lib/karafka/web/ui/views/shared/icons/_magnifying_glass.erb +3 -0
  313. data/lib/karafka/web/ui/views/shared/icons/_moon.erb +3 -0
  314. data/lib/karafka/web/ui/views/shared/icons/_offices.erb +3 -0
  315. data/lib/karafka/web/ui/views/shared/icons/_pause.erb +3 -0
  316. data/lib/karafka/web/ui/views/shared/icons/_pause_circle.erb +3 -0
  317. data/lib/karafka/web/ui/views/shared/icons/_play_circle.erb +4 -0
  318. data/lib/karafka/web/ui/views/shared/icons/_question_circle.erb +3 -0
  319. data/lib/karafka/web/ui/views/shared/icons/_queue_list.erb +3 -0
  320. data/lib/karafka/web/ui/views/shared/icons/_refresh.erb +3 -0
  321. data/lib/karafka/web/ui/views/shared/icons/_slack.erb +16 -0
  322. data/lib/karafka/web/ui/views/shared/icons/_stop.erb +3 -0
  323. data/lib/karafka/web/ui/views/shared/icons/_sun.erb +3 -0
  324. data/lib/karafka/web/ui/views/shared/icons/_x_circle.erb +3 -0
  325. data/lib/karafka/web/ui/views/shared/icons/_x_mark.erb +3 -0
  326. data/lib/karafka/web/ui/views/status/_breadcrumbs.erb +1 -1
  327. data/lib/karafka/web/ui/views/status/_failure.erb +2 -13
  328. data/lib/karafka/web/ui/views/status/_halted.erb +2 -10
  329. data/lib/karafka/web/ui/views/status/_info.erb +2 -13
  330. data/lib/karafka/web/ui/views/status/_success.erb +2 -10
  331. data/lib/karafka/web/ui/views/status/_warning.erb +2 -13
  332. data/lib/karafka/web/ui/views/status/failures/_connection.erb +2 -2
  333. data/lib/karafka/web/ui/views/status/failures/_consumers_reports.erb +3 -3
  334. data/lib/karafka/web/ui/views/status/failures/_consumers_reports_schema_state.erb +4 -4
  335. data/lib/karafka/web/ui/views/status/failures/_enabled.erb +2 -2
  336. data/lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb +6 -6
  337. data/lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb +6 -6
  338. data/lib/karafka/web/ui/views/status/failures/_live_reporting.erb +2 -2
  339. data/lib/karafka/web/ui/views/status/failures/_materializing_lag.erb +11 -0
  340. data/lib/karafka/web/ui/views/status/failures/_partitions.erb +3 -3
  341. data/lib/karafka/web/ui/views/status/failures/_state_calculation.erb +2 -2
  342. data/lib/karafka/web/ui/views/status/failures/_topics.erb +3 -3
  343. data/lib/karafka/web/ui/views/status/info/_components.erb +14 -41
  344. data/lib/karafka/web/ui/views/status/show.erb +165 -154
  345. data/lib/karafka/web/ui/views/status/warnings/_connection.erb +3 -3
  346. data/lib/karafka/web/ui/views/status/warnings/_pro_subscription.erb +2 -2
  347. data/lib/karafka/web/ui/views/status/warnings/_replication.erb +2 -2
  348. data/lib/karafka/web/ui/views/status/warnings/_routing_topics_presence.erb +1 -1
  349. data/lib/karafka/web/ui/views/support/_breadcrumbs.erb +5 -0
  350. data/lib/karafka/web/ui/views/support/show.erb +71 -0
  351. data/lib/karafka/web/ui/views/ux/_alerts.erb +25 -0
  352. data/lib/karafka/web/ui/views/ux/_badges.erb +21 -0
  353. data/lib/karafka/web/ui/views/ux/_breadcrumbs.erb +5 -0
  354. data/lib/karafka/web/ui/views/ux/_buttons.erb +47 -0
  355. data/lib/karafka/web/ui/views/ux/_card_detail.erb +15 -0
  356. data/lib/karafka/web/ui/views/ux/_card_metric.erb +123 -0
  357. data/lib/karafka/web/ui/views/ux/_card_summary.erb +72 -0
  358. data/lib/karafka/web/ui/views/ux/_card_support.erb +39 -0
  359. data/lib/karafka/web/ui/views/ux/_code.erb +9 -0
  360. data/lib/karafka/web/ui/views/ux/_data_table.erb +52 -0
  361. data/lib/karafka/web/ui/views/ux/_headers.erb +2 -0
  362. data/lib/karafka/web/ui/views/ux/_icons.erb +9 -0
  363. data/lib/karafka/web/ui/views/ux/_pagination.erb +32 -0
  364. data/lib/karafka/web/ui/views/ux/_row_table.erb +52 -0
  365. data/lib/karafka/web/ui/views/ux/_status_rows.erb +53 -0
  366. data/lib/karafka/web/ui/views/ux/_tabs.erb +14 -0
  367. data/lib/karafka/web/ui/views/ux/_text.erb +2 -0
  368. data/lib/karafka/web/ui/views/ux/_topic_tiles.erb +42 -0
  369. data/lib/karafka/web/ui/views/ux/show.erb +19 -0
  370. data/lib/karafka/web/version.rb +1 -1
  371. data/lib/karafka/web.rb +2 -0
  372. data/package-lock.json +4158 -0
  373. data/package.json +15 -0
  374. data/postcss.config.js +6 -0
  375. data/tailwind.config.js +16 -0
  376. data.tar.gz.sig +0 -0
  377. metadata +172 -47
  378. metadata.gz.sig +0 -0
  379. data/lib/karafka/web/management/migrations/0_set_initial_consumers_metrics.rb +0 -36
  380. data/lib/karafka/web/management/migrations/0_set_initial_consumers_state.rb +0 -43
  381. data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_metrics.rb +0 -26
  382. data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_state.rb +0 -23
  383. data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_metrics.rb +0 -24
  384. data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_state.rb +0 -20
  385. data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_metrics.rb +0 -24
  386. data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_state.rb +0 -20
  387. data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_metrics.rb +0 -36
  388. data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_states.rb +0 -32
  389. data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_metrics.rb +0 -38
  390. data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_states.rb +0 -22
  391. data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_metrics.rb +0 -36
  392. data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_states.rb +0 -21
  393. data/lib/karafka/web/pro/ui/views/cluster/brokers.erb +0 -27
  394. data/lib/karafka/web/pro/ui/views/commands/_details.erb +0 -26
  395. data/lib/karafka/web/pro/ui/views/consumers/_counters.erb +0 -72
  396. data/lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb +0 -5
  397. data/lib/karafka/web/pro/ui/views/errors/_title_with_select.erb +0 -31
  398. data/lib/karafka/web/pro/ui/views/explorer/message/_message_actions.erb +0 -18
  399. data/lib/karafka/web/pro/ui/views/explorer/message/_payload_actions.erb +0 -19
  400. data/lib/karafka/web/pro/ui/views/explorer/partition/_details.erb +0 -35
  401. data/lib/karafka/web/pro/ui/views/explorer/topic/_details.erb +0 -23
  402. data/lib/karafka/web/pro/ui/views/health/_consumer_group_header.erb +0 -14
  403. data/lib/karafka/web/ui/controllers/responses/deny.rb +0 -15
  404. data/lib/karafka/web/ui/helpers/alerts_helper.rb +0 -23
  405. data/lib/karafka/web/ui/lib/safe_runner.rb +0 -59
  406. data/lib/karafka/web/ui/models/visibility_filter.rb +0 -49
  407. data/lib/karafka/web/ui/public/javascripts/libs/bootstrap.min.js +0 -6
  408. data/lib/karafka/web/ui/public/javascripts/tabs_manager.js +0 -57
  409. data/lib/karafka/web/ui/public/stylesheets/libs/bootstrap.min.css +0 -6
  410. data/lib/karafka/web/ui/views/consumers/_counters.erb +0 -62
  411. data/lib/karafka/web/ui/views/errors/_watermark_offsets.erb +0 -10
  412. data/lib/karafka/web/ui/views/shared/_feature_pro.erb +0 -4
  413. data/lib/karafka/web/ui/views/shared/_footer.erb +0 -22
  414. data/lib/karafka/web/ui/views/shared/_live_poll.erb +0 -7
  415. /data/lib/karafka/web/management/migrations/{0_base.rb → base.rb} +0 -0
  416. /data/lib/karafka/web/ui/public/javascripts/{charts.js → components/charts.js} +0 -0
  417. /data/lib/karafka/web/ui/public/stylesheets/libs/{highlight.min.css → highlight_light.min.css} +0 -0
data/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "devDependencies": {
3
+ "autoprefixer": "^10.4.19",
4
+ "daisyui": "^4.12.10",
5
+ "gulp": "^5.0.0",
6
+ "gulp-clean-css": "^4.3.0",
7
+ "gulp-concat": "^2.6.1",
8
+ "gulp-sourcemaps": "^3.0.0",
9
+ "gulp-uglify": "^3.0.2",
10
+ "postcss": "^8.4.40",
11
+ "postcss-cli": "^11.0.0",
12
+ "tailwindcss": "^3.4.7",
13
+ "through2": "^4.0.2"
14
+ }
15
+ }
data/postcss.config.js ADDED
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ content: ["./lib/**/*.{html,js,erb,rb}"],
3
+ theme: {
4
+ extend: {},
5
+ },
6
+ plugins: [require("daisyui")],
7
+ daisyui: {
8
+ themes: ["corporate", "dark"]
9
+ },
10
+ safelist: [
11
+ {
12
+ pattern: /((badge|bg|alert)-(success|warning|error|primary|secondary))|(status-row-*)/,
13
+ variants: ['lg', 'hover', 'focus', 'lg:hover']
14
+ }
15
+ ]
16
+ }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -35,7 +35,7 @@ cert_chain:
35
35
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
36
36
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
37
37
  -----END CERTIFICATE-----
38
- date: 2024-05-03 00:00:00.000000000 Z
38
+ date: 2024-08-06 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: erubi
@@ -57,7 +57,7 @@ dependencies:
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 2.4.0
60
+ version: 2.4.7
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
63
  version: 2.5.0
@@ -67,7 +67,7 @@ dependencies:
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 2.4.0
70
+ version: 2.4.7
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
73
  version: 2.5.0
@@ -163,7 +163,9 @@ files:
163
163
  - Gemfile.lock
164
164
  - LICENSE
165
165
  - README.md
166
+ - bin/build_assets
166
167
  - bin/karafka-web
168
+ - bin/release
167
169
  - bin/rspecs
168
170
  - bin/wait_for_kafka
169
171
  - certs/cert_chain.pem
@@ -171,6 +173,7 @@ files:
171
173
  - config/locales/pro_errors.yml
172
174
  - config/locales/slogans.yml
173
175
  - docker-compose.yml
176
+ - gulpfile.js
174
177
  - karafka-web.gemspec
175
178
  - lib/karafka/web.rb
176
179
  - lib/karafka/web/app.rb
@@ -196,21 +199,23 @@ files:
196
199
  - lib/karafka/web/management/actions/enable.rb
197
200
  - lib/karafka/web/management/actions/extend_boot_file.rb
198
201
  - lib/karafka/web/management/actions/migrate_states_data.rb
199
- - lib/karafka/web/management/migrations/0_base.rb
200
- - lib/karafka/web/management/migrations/0_set_initial_consumers_metrics.rb
201
- - lib/karafka/web/management/migrations/0_set_initial_consumers_state.rb
202
- - lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_metrics.rb
203
- - lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_state.rb
204
- - lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_metrics.rb
205
- - lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_state.rb
206
- - lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_metrics.rb
207
- - lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_state.rb
208
- - lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_metrics.rb
209
- - lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_states.rb
210
- - lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_metrics.rb
211
- - lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_states.rb
212
- - lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_metrics.rb
213
- - lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_states.rb
202
+ - lib/karafka/web/management/migrations/base.rb
203
+ - lib/karafka/web/management/migrations/consumers_metrics/0_set_initial.rb
204
+ - lib/karafka/web/management/migrations/consumers_metrics/1699543515_fill_missing_received_and_sent_bytes.rb
205
+ - lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb
206
+ - lib/karafka/web/management/migrations/consumers_metrics/1700234522_remove_processing.rb
207
+ - lib/karafka/web/management/migrations/consumers_metrics/1704722380_split_listeners_into_active_and_paused.rb
208
+ - lib/karafka/web/management/migrations/consumers_metrics/1706607960_introduce_lag_total.rb
209
+ - lib/karafka/web/management/migrations/consumers_metrics/1706611396_rename_lag_total_to_lag_hybrid.rb
210
+ - lib/karafka/web/management/migrations/consumers_metrics/1716218393_populate_jobs_metrics.rb
211
+ - lib/karafka/web/management/migrations/consumers_states/0_set_initial.rb
212
+ - lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb
213
+ - lib/karafka/web/management/migrations/consumers_states/1700234522_introduce_waiting.rb
214
+ - lib/karafka/web/management/migrations/consumers_states/1700234522_remove_processing.rb
215
+ - lib/karafka/web/management/migrations/consumers_states/1704722380_split_listeners_into_active_and_paused.rb
216
+ - lib/karafka/web/management/migrations/consumers_states/1706607960_introduce_lag_total.rb
217
+ - lib/karafka/web/management/migrations/consumers_states/1706611396_rename_lag_total_to_lag_hybrid.rb
218
+ - lib/karafka/web/management/migrations/consumers_states/1716218393_add_jobs_counter.rb
214
219
  - lib/karafka/web/management/migrator.rb
215
220
  - lib/karafka/web/pro/commanding.rb
216
221
  - lib/karafka/web/pro/commanding/commands/base.rb
@@ -238,21 +243,38 @@ files:
238
243
  - lib/karafka/web/pro/ui/controllers/jobs_controller.rb
239
244
  - lib/karafka/web/pro/ui/controllers/messages_controller.rb
240
245
  - lib/karafka/web/pro/ui/controllers/routing_controller.rb
246
+ - lib/karafka/web/pro/ui/controllers/search_controller.rb
241
247
  - lib/karafka/web/pro/ui/controllers/status_controller.rb
248
+ - lib/karafka/web/pro/ui/controllers/support_controller.rb
242
249
  - lib/karafka/web/pro/ui/controllers/topics_controller.rb
250
+ - lib/karafka/web/pro/ui/controllers/ux_controller.rb
243
251
  - lib/karafka/web/pro/ui/lib/patterns_detector.rb
252
+ - lib/karafka/web/pro/ui/lib/policies.rb
253
+ - lib/karafka/web/pro/ui/lib/policies/config.rb
254
+ - lib/karafka/web/pro/ui/lib/policies/contracts/config.rb
255
+ - lib/karafka/web/pro/ui/lib/policies/messages.rb
256
+ - lib/karafka/web/pro/ui/lib/policies/requests.rb
257
+ - lib/karafka/web/pro/ui/lib/safe_runner.rb
258
+ - lib/karafka/web/pro/ui/lib/search.rb
259
+ - lib/karafka/web/pro/ui/lib/search/config.rb
260
+ - lib/karafka/web/pro/ui/lib/search/contracts/config.rb
261
+ - lib/karafka/web/pro/ui/lib/search/contracts/form.rb
262
+ - lib/karafka/web/pro/ui/lib/search/matchers/base.rb
263
+ - lib/karafka/web/pro/ui/lib/search/matchers/raw_header_includes.rb
264
+ - lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb
265
+ - lib/karafka/web/pro/ui/lib/search/matchers/raw_payload_includes.rb
266
+ - lib/karafka/web/pro/ui/lib/search/normalizer.rb
267
+ - lib/karafka/web/pro/ui/lib/search/runner.rb
244
268
  - lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb
245
269
  - lib/karafka/web/pro/ui/views/cluster/_broker.erb
246
270
  - lib/karafka/web/pro/ui/views/cluster/_config.erb
247
271
  - lib/karafka/web/pro/ui/views/cluster/_tabs.erb
248
- - lib/karafka/web/pro/ui/views/cluster/brokers.erb
249
272
  - lib/karafka/web/pro/ui/views/cluster/index.erb
250
273
  - lib/karafka/web/pro/ui/views/cluster/show.erb
251
274
  - lib/karafka/web/pro/ui/views/commands/_backtrace.erb
252
275
  - lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb
253
276
  - lib/karafka/web/pro/ui/views/commands/_command.erb
254
277
  - lib/karafka/web/pro/ui/views/commands/_command_details.erb
255
- - lib/karafka/web/pro/ui/views/commands/_details.erb
256
278
  - lib/karafka/web/pro/ui/views/commands/_empty.erb
257
279
  - lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb
258
280
  - lib/karafka/web/pro/ui/views/commands/_metadata.erb
@@ -263,7 +285,6 @@ files:
263
285
  - lib/karafka/web/pro/ui/views/consumers/_consumer.erb
264
286
  - lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb
265
287
  - lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb
266
- - lib/karafka/web/pro/ui/views/consumers/_counters.erb
267
288
  - lib/karafka/web/pro/ui/views/consumers/_tabs.erb
268
289
  - lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb
269
290
  - lib/karafka/web/pro/ui/views/consumers/consumer/_consumer_group.erb
@@ -275,7 +296,6 @@ files:
275
296
  - lib/karafka/web/pro/ui/views/consumers/consumer/_stopped.erb
276
297
  - lib/karafka/web/pro/ui/views/consumers/consumer/_subscription_group.erb
277
298
  - lib/karafka/web/pro/ui/views/consumers/consumer/_tabs.erb
278
- - lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb
279
299
  - lib/karafka/web/pro/ui/views/consumers/controls.erb
280
300
  - lib/karafka/web/pro/ui/views/consumers/details.erb
281
301
  - lib/karafka/web/pro/ui/views/consumers/index.erb
@@ -291,8 +311,8 @@ files:
291
311
  - lib/karafka/web/pro/ui/views/errors/_breadcrumbs.erb
292
312
  - lib/karafka/web/pro/ui/views/errors/_error.erb
293
313
  - lib/karafka/web/pro/ui/views/errors/_partition_option.erb
314
+ - lib/karafka/web/pro/ui/views/errors/_selector.erb
294
315
  - lib/karafka/web/pro/ui/views/errors/_table.erb
295
- - lib/karafka/web/pro/ui/views/errors/_title_with_select.erb
296
316
  - lib/karafka/web/pro/ui/views/errors/index.erb
297
317
  - lib/karafka/web/pro/ui/views/errors/partition.erb
298
318
  - lib/karafka/web/pro/ui/views/errors/show.erb
@@ -302,32 +322,32 @@ files:
302
322
  - lib/karafka/web/pro/ui/views/explorer/_message.erb
303
323
  - lib/karafka/web/pro/ui/views/explorer/_no_topics.erb
304
324
  - lib/karafka/web/pro/ui/views/explorer/_partition_option.erb
325
+ - lib/karafka/web/pro/ui/views/explorer/_selector.erb
305
326
  - lib/karafka/web/pro/ui/views/explorer/_topic.erb
306
327
  - lib/karafka/web/pro/ui/views/explorer/index.erb
307
- - lib/karafka/web/pro/ui/views/explorer/message/_message_actions.erb
308
328
  - lib/karafka/web/pro/ui/views/explorer/message/_metadata.erb
309
329
  - lib/karafka/web/pro/ui/views/explorer/message/_payload.erb
310
- - lib/karafka/web/pro/ui/views/explorer/message/_payload_actions.erb
330
+ - lib/karafka/web/pro/ui/views/explorer/message/_resources_utilization.erb
331
+ - lib/karafka/web/pro/ui/views/explorer/message/_too_big_to_be_displayed.erb
311
332
  - lib/karafka/web/pro/ui/views/explorer/messages/_detail.erb
312
333
  - lib/karafka/web/pro/ui/views/explorer/messages/_headers.erb
313
334
  - lib/karafka/web/pro/ui/views/explorer/messages/_key.erb
314
335
  - lib/karafka/web/pro/ui/views/explorer/partition.erb
315
336
  - lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb
316
- - lib/karafka/web/pro/ui/views/explorer/partition/_details.erb
317
337
  - lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb
318
338
  - lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb
319
339
  - lib/karafka/web/pro/ui/views/explorer/show.erb
320
340
  - lib/karafka/web/pro/ui/views/explorer/topic.erb
321
- - lib/karafka/web/pro/ui/views/explorer/topic/_details.erb
341
+ - lib/karafka/web/pro/ui/views/explorer/topic/_actions.erb
322
342
  - lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb
323
343
  - lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb
324
344
  - lib/karafka/web/pro/ui/views/health/_breadcrumbs.erb
325
- - lib/karafka/web/pro/ui/views/health/_consumer_group_header.erb
326
345
  - lib/karafka/web/pro/ui/views/health/_no_data.erb
327
346
  - lib/karafka/web/pro/ui/views/health/_partition.erb
328
347
  - lib/karafka/web/pro/ui/views/health/_partition_lags.erb
329
348
  - lib/karafka/web/pro/ui/views/health/_partition_offset.erb
330
349
  - lib/karafka/web/pro/ui/views/health/_partition_times.erb
350
+ - lib/karafka/web/pro/ui/views/health/_table_metadata.erb
331
351
  - lib/karafka/web/pro/ui/views/health/_tabs.erb
332
352
  - lib/karafka/web/pro/ui/views/health/changes.erb
333
353
  - lib/karafka/web/pro/ui/views/health/cluster_lags.erb
@@ -343,9 +363,18 @@ files:
343
363
  - lib/karafka/web/pro/ui/views/routing/_topic.erb
344
364
  - lib/karafka/web/pro/ui/views/routing/index.erb
345
365
  - lib/karafka/web/pro/ui/views/routing/show.erb
366
+ - lib/karafka/web/pro/ui/views/search/_fix_errors.erb
367
+ - lib/karafka/web/pro/ui/views/search/_metadata.erb
368
+ - lib/karafka/web/pro/ui/views/search/_no_results.erb
369
+ - lib/karafka/web/pro/ui/views/search/_no_search_criteria.erb
370
+ - lib/karafka/web/pro/ui/views/search/_search_criteria.erb
371
+ - lib/karafka/web/pro/ui/views/search/_search_modal.erb
372
+ - lib/karafka/web/pro/ui/views/search/_timeout.erb
373
+ - lib/karafka/web/pro/ui/views/search/index.erb
346
374
  - lib/karafka/web/pro/ui/views/shared/_navigation.erb
347
375
  - lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb
348
376
  - lib/karafka/web/pro/ui/views/topics/_partition.erb
377
+ - lib/karafka/web/pro/ui/views/topics/_partition_offsets.erb
349
378
  - lib/karafka/web/pro/ui/views/topics/_tabs.erb
350
379
  - lib/karafka/web/pro/ui/views/topics/_topic.erb
351
380
  - lib/karafka/web/pro/ui/views/topics/config.erb
@@ -356,6 +385,7 @@ files:
356
385
  - lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb
357
386
  - lib/karafka/web/pro/ui/views/topics/distribution/_partition.erb
358
387
  - lib/karafka/web/pro/ui/views/topics/index.erb
388
+ - lib/karafka/web/pro/ui/views/topics/offsets.erb
359
389
  - lib/karafka/web/pro/ui/views/topics/replication.erb
360
390
  - lib/karafka/web/processing/consumer.rb
361
391
  - lib/karafka/web/processing/consumers/aggregators/base.rb
@@ -413,15 +443,16 @@ files:
413
443
  - lib/karafka/web/ui/controllers/errors_controller.rb
414
444
  - lib/karafka/web/ui/controllers/jobs_controller.rb
415
445
  - lib/karafka/web/ui/controllers/requests/params.rb
416
- - lib/karafka/web/ui/controllers/responses/deny.rb
417
446
  - lib/karafka/web/ui/controllers/responses/file.rb
418
447
  - lib/karafka/web/ui/controllers/responses/redirect.rb
419
448
  - lib/karafka/web/ui/controllers/responses/render.rb
420
449
  - lib/karafka/web/ui/controllers/routing_controller.rb
421
450
  - lib/karafka/web/ui/controllers/status_controller.rb
422
- - lib/karafka/web/ui/helpers/alerts_helper.rb
451
+ - lib/karafka/web/ui/controllers/support_controller.rb
452
+ - lib/karafka/web/ui/controllers/ux_controller.rb
423
453
  - lib/karafka/web/ui/helpers/application_helper.rb
424
454
  - lib/karafka/web/ui/helpers/paths_helper.rb
455
+ - lib/karafka/web/ui/helpers/tailwind_helper.rb
425
456
  - lib/karafka/web/ui/lib/admin.rb
426
457
  - lib/karafka/web/ui/lib/hash_proxy.rb
427
458
  - lib/karafka/web/ui/lib/paginations/base.rb
@@ -432,7 +463,6 @@ files:
432
463
  - lib/karafka/web/ui/lib/paginations/paginators/partitions.rb
433
464
  - lib/karafka/web/ui/lib/paginations/paginators/sets.rb
434
465
  - lib/karafka/web/ui/lib/paginations/watermark_offsets_based.rb
435
- - lib/karafka/web/ui/lib/safe_runner.rb
436
466
  - lib/karafka/web/ui/lib/sorter.rb
437
467
  - lib/karafka/web/ui/lib/ttl_cache.rb
438
468
  - lib/karafka/web/ui/models/broker.rb
@@ -455,29 +485,44 @@ files:
455
485
  - lib/karafka/web/ui/models/status.rb
456
486
  - lib/karafka/web/ui/models/subscription_group.rb
457
487
  - lib/karafka/web/ui/models/topic.rb
458
- - lib/karafka/web/ui/models/visibility_filter.rb
459
488
  - lib/karafka/web/ui/models/watermark_offsets.rb
489
+ - lib/karafka/web/ui/public/images/calendar.svg
460
490
  - lib/karafka/web/ui/public/images/favicon.ico
461
491
  - lib/karafka/web/ui/public/images/logo-gray.svg
462
492
  - lib/karafka/web/ui/public/images/logo.svg
463
493
  - lib/karafka/web/ui/public/javascripts/application.js
464
- - lib/karafka/web/ui/public/javascripts/charts.js
494
+ - lib/karafka/web/ui/public/javascripts/application.min.js
495
+ - lib/karafka/web/ui/public/javascripts/application.min.js.br
496
+ - lib/karafka/web/ui/public/javascripts/application.min.js.gz
465
497
  - lib/karafka/web/ui/public/javascripts/charts/data_formatting_utility.js
466
498
  - lib/karafka/web/ui/public/javascripts/charts/dataset_state_manager.js
467
499
  - lib/karafka/web/ui/public/javascripts/charts/types/bar.js
468
500
  - lib/karafka/web/ui/public/javascripts/charts/types/line.js
469
- - lib/karafka/web/ui/public/javascripts/libs/bootstrap.min.js
501
+ - lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js
502
+ - lib/karafka/web/ui/public/javascripts/components/charts.js
503
+ - lib/karafka/web/ui/public/javascripts/components/live_poll.js
504
+ - lib/karafka/web/ui/public/javascripts/components/offset_datetime.js
505
+ - lib/karafka/web/ui/public/javascripts/components/search.js
506
+ - lib/karafka/web/ui/public/javascripts/components/tabs_manager.js
507
+ - lib/karafka/web/ui/public/javascripts/components/theme_manager.js
508
+ - lib/karafka/web/ui/public/javascripts/components/turbo_tracker.js
470
509
  - lib/karafka/web/ui/public/javascripts/libs/chart.min.js
471
510
  - lib/karafka/web/ui/public/javascripts/libs/datepicker.js
472
511
  - lib/karafka/web/ui/public/javascripts/libs/highlight.min.js
473
512
  - lib/karafka/web/ui/public/javascripts/libs/timeago.min.js
474
- - lib/karafka/web/ui/public/javascripts/live_poll.js
475
- - lib/karafka/web/ui/public/javascripts/offset_datetime.js
476
- - lib/karafka/web/ui/public/javascripts/tabs_manager.js
513
+ - lib/karafka/web/ui/public/javascripts/libs/turbo.js
477
514
  - lib/karafka/web/ui/public/stylesheets/application.css
478
- - lib/karafka/web/ui/public/stylesheets/libs/bootstrap.min.css
515
+ - lib/karafka/web/ui/public/stylesheets/application.min.css
516
+ - lib/karafka/web/ui/public/stylesheets/application.min.css.br
517
+ - lib/karafka/web/ui/public/stylesheets/application.min.css.gz
479
518
  - lib/karafka/web/ui/public/stylesheets/libs/datepicker.min.css
480
- - lib/karafka/web/ui/public/stylesheets/libs/highlight.min.css
519
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css
520
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.br
521
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.gz
522
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css
523
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.br
524
+ - lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.gz
525
+ - lib/karafka/web/ui/public/stylesheets/libs/tailwind.css
481
526
  - lib/karafka/web/ui/views/cluster/_breadcrumbs.erb
482
527
  - lib/karafka/web/ui/views/cluster/_broker.erb
483
528
  - lib/karafka/web/ui/views/cluster/_no_partitions.erb
@@ -486,11 +531,13 @@ files:
486
531
  - lib/karafka/web/ui/views/cluster/brokers.erb
487
532
  - lib/karafka/web/ui/views/cluster/replication.erb
488
533
  - lib/karafka/web/ui/views/consumers/_assignments_badges.erb
534
+ - lib/karafka/web/ui/views/consumers/_breadcrumbs.erb
489
535
  - lib/karafka/web/ui/views/consumers/_consumer.erb
490
- - lib/karafka/web/ui/views/consumers/_counters.erb
491
536
  - lib/karafka/web/ui/views/consumers/_no_consumers.erb
492
537
  - lib/karafka/web/ui/views/consumers/_summary.erb
538
+ - lib/karafka/web/ui/views/consumers/_tabs.erb
493
539
  - lib/karafka/web/ui/views/consumers/index.erb
540
+ - lib/karafka/web/ui/views/dashboard/_counters.erb
494
541
  - lib/karafka/web/ui/views/dashboard/_feature_pro.erb
495
542
  - lib/karafka/web/ui/views/dashboard/_not_enough_data.erb
496
543
  - lib/karafka/web/ui/views/dashboard/_ranges_selector.erb
@@ -500,7 +547,6 @@ files:
500
547
  - lib/karafka/web/ui/views/errors/_detail.erb
501
548
  - lib/karafka/web/ui/views/errors/_error.erb
502
549
  - lib/karafka/web/ui/views/errors/_no_errors.erb
503
- - lib/karafka/web/ui/views/errors/_watermark_offsets.erb
504
550
  - lib/karafka/web/ui/views/errors/index.erb
505
551
  - lib/karafka/web/ui/views/errors/show.erb
506
552
  - lib/karafka/web/ui/views/jobs/_breadcrumbs.erb
@@ -518,23 +564,76 @@ files:
518
564
  - lib/karafka/web/ui/views/routing/show.erb
519
565
  - lib/karafka/web/ui/views/shared/_become_pro.erb
520
566
  - lib/karafka/web/ui/views/shared/_brand.erb
567
+ - lib/karafka/web/ui/views/shared/_breadcrumbs.erb
521
568
  - lib/karafka/web/ui/views/shared/_content.erb
522
- - lib/karafka/web/ui/views/shared/_feature_pro.erb
569
+ - lib/karafka/web/ui/views/shared/_controls.erb
523
570
  - lib/karafka/web/ui/views/shared/_flashes.erb
524
- - lib/karafka/web/ui/views/shared/_footer.erb
525
571
  - lib/karafka/web/ui/views/shared/_header.erb
526
- - lib/karafka/web/ui/views/shared/_live_poll.erb
527
572
  - lib/karafka/web/ui/views/shared/_navigation.erb
528
573
  - lib/karafka/web/ui/views/shared/_no_paginated_data.erb
529
574
  - lib/karafka/web/ui/views/shared/_not_a_message.erb
530
575
  - lib/karafka/web/ui/views/shared/_pagination.erb
531
576
  - lib/karafka/web/ui/views/shared/_tab_nav.erb
577
+ - lib/karafka/web/ui/views/shared/_title.erb
578
+ - lib/karafka/web/ui/views/shared/alerts/_box_error.erb
579
+ - lib/karafka/web/ui/views/shared/alerts/_box_info.erb
580
+ - lib/karafka/web/ui/views/shared/alerts/_box_primary.erb
581
+ - lib/karafka/web/ui/views/shared/alerts/_box_secondary.erb
582
+ - lib/karafka/web/ui/views/shared/alerts/_box_success.erb
583
+ - lib/karafka/web/ui/views/shared/alerts/_box_warning.erb
584
+ - lib/karafka/web/ui/views/shared/alerts/_error.erb
532
585
  - lib/karafka/web/ui/views/shared/alerts/_info.erb
586
+ - lib/karafka/web/ui/views/shared/alerts/_primary.erb
587
+ - lib/karafka/web/ui/views/shared/alerts/_secondary.erb
588
+ - lib/karafka/web/ui/views/shared/alerts/_success.erb
589
+ - lib/karafka/web/ui/views/shared/alerts/_warning.erb
533
590
  - lib/karafka/web/ui/views/shared/charts/_bar.erb
534
591
  - lib/karafka/web/ui/views/shared/charts/_line.erb
535
592
  - lib/karafka/web/ui/views/shared/exceptions/not_allowed.erb
536
593
  - lib/karafka/web/ui/views/shared/exceptions/not_found.erb
537
594
  - lib/karafka/web/ui/views/shared/exceptions/pro_only.erb
595
+ - lib/karafka/web/ui/views/shared/icons/_arrow_down_on_square.erb
596
+ - lib/karafka/web/ui/views/shared/icons/_arrow_down_tray.erb
597
+ - lib/karafka/web/ui/views/shared/icons/_arrow_on_squares.erb
598
+ - lib/karafka/web/ui/views/shared/icons/_arrow_path_rounded.erb
599
+ - lib/karafka/web/ui/views/shared/icons/_arrow_uturn_right.erb
600
+ - lib/karafka/web/ui/views/shared/icons/_arrows_right_left.erb
601
+ - lib/karafka/web/ui/views/shared/icons/_blocks.erb
602
+ - lib/karafka/web/ui/views/shared/icons/_book_open.erb
603
+ - lib/karafka/web/ui/views/shared/icons/_bug.erb
604
+ - lib/karafka/web/ui/views/shared/icons/_burger.erb
605
+ - lib/karafka/web/ui/views/shared/icons/_calendar_days.erb
606
+ - lib/karafka/web/ui/views/shared/icons/_chart_bar.erb
607
+ - lib/karafka/web/ui/views/shared/icons/_check_badge.erb
608
+ - lib/karafka/web/ui/views/shared/icons/_check_circle.erb
609
+ - lib/karafka/web/ui/views/shared/icons/_circle_stack.erb
610
+ - lib/karafka/web/ui/views/shared/icons/_cpu.erb
611
+ - lib/karafka/web/ui/views/shared/icons/_document_glass.erb
612
+ - lib/karafka/web/ui/views/shared/icons/_exclamation_triangle.erb
613
+ - lib/karafka/web/ui/views/shared/icons/_eye.erb
614
+ - lib/karafka/web/ui/views/shared/icons/_gear.erb
615
+ - lib/karafka/web/ui/views/shared/icons/_github.erb
616
+ - lib/karafka/web/ui/views/shared/icons/_globe.erb
617
+ - lib/karafka/web/ui/views/shared/icons/_heart.erb
618
+ - lib/karafka/web/ui/views/shared/icons/_home.erb
619
+ - lib/karafka/web/ui/views/shared/icons/_info_circle.erb
620
+ - lib/karafka/web/ui/views/shared/icons/_lifebuoy.erb
621
+ - lib/karafka/web/ui/views/shared/icons/_light_bulb.erb
622
+ - lib/karafka/web/ui/views/shared/icons/_list_bullets.erb
623
+ - lib/karafka/web/ui/views/shared/icons/_magnifying_glass.erb
624
+ - lib/karafka/web/ui/views/shared/icons/_moon.erb
625
+ - lib/karafka/web/ui/views/shared/icons/_offices.erb
626
+ - lib/karafka/web/ui/views/shared/icons/_pause.erb
627
+ - lib/karafka/web/ui/views/shared/icons/_pause_circle.erb
628
+ - lib/karafka/web/ui/views/shared/icons/_play_circle.erb
629
+ - lib/karafka/web/ui/views/shared/icons/_question_circle.erb
630
+ - lib/karafka/web/ui/views/shared/icons/_queue_list.erb
631
+ - lib/karafka/web/ui/views/shared/icons/_refresh.erb
632
+ - lib/karafka/web/ui/views/shared/icons/_slack.erb
633
+ - lib/karafka/web/ui/views/shared/icons/_stop.erb
634
+ - lib/karafka/web/ui/views/shared/icons/_sun.erb
635
+ - lib/karafka/web/ui/views/shared/icons/_x_circle.erb
636
+ - lib/karafka/web/ui/views/shared/icons/_x_mark.erb
538
637
  - lib/karafka/web/ui/views/status/_breadcrumbs.erb
539
638
  - lib/karafka/web/ui/views/status/_failure.erb
540
639
  - lib/karafka/web/ui/views/status/_halted.erb
@@ -548,6 +647,7 @@ files:
548
647
  - lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb
549
648
  - lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb
550
649
  - lib/karafka/web/ui/views/status/failures/_live_reporting.erb
650
+ - lib/karafka/web/ui/views/status/failures/_materializing_lag.erb
551
651
  - lib/karafka/web/ui/views/status/failures/_partitions.erb
552
652
  - lib/karafka/web/ui/views/status/failures/_state_calculation.erb
553
653
  - lib/karafka/web/ui/views/status/failures/_topics.erb
@@ -559,11 +659,36 @@ files:
559
659
  - lib/karafka/web/ui/views/status/warnings/_pro_subscription.erb
560
660
  - lib/karafka/web/ui/views/status/warnings/_replication.erb
561
661
  - lib/karafka/web/ui/views/status/warnings/_routing_topics_presence.erb
662
+ - lib/karafka/web/ui/views/support/_breadcrumbs.erb
663
+ - lib/karafka/web/ui/views/support/show.erb
664
+ - lib/karafka/web/ui/views/ux/_alerts.erb
665
+ - lib/karafka/web/ui/views/ux/_badges.erb
666
+ - lib/karafka/web/ui/views/ux/_breadcrumbs.erb
667
+ - lib/karafka/web/ui/views/ux/_buttons.erb
668
+ - lib/karafka/web/ui/views/ux/_card_detail.erb
669
+ - lib/karafka/web/ui/views/ux/_card_metric.erb
670
+ - lib/karafka/web/ui/views/ux/_card_summary.erb
671
+ - lib/karafka/web/ui/views/ux/_card_support.erb
672
+ - lib/karafka/web/ui/views/ux/_code.erb
673
+ - lib/karafka/web/ui/views/ux/_data_table.erb
674
+ - lib/karafka/web/ui/views/ux/_headers.erb
675
+ - lib/karafka/web/ui/views/ux/_icons.erb
676
+ - lib/karafka/web/ui/views/ux/_pagination.erb
677
+ - lib/karafka/web/ui/views/ux/_row_table.erb
678
+ - lib/karafka/web/ui/views/ux/_status_rows.erb
679
+ - lib/karafka/web/ui/views/ux/_tabs.erb
680
+ - lib/karafka/web/ui/views/ux/_text.erb
681
+ - lib/karafka/web/ui/views/ux/_topic_tiles.erb
682
+ - lib/karafka/web/ui/views/ux/show.erb
562
683
  - lib/karafka/web/version.rb
684
+ - package-lock.json
685
+ - package.json
686
+ - postcss.config.js
563
687
  - renovate.json
688
+ - tailwind.config.js
564
689
  homepage: https://karafka.io
565
690
  licenses:
566
- - LGPL-3.0
691
+ - LGPL-3.0-only
567
692
  - Commercial
568
693
  metadata:
569
694
  funding_uri: https://karafka.io/#become-pro
@@ -588,7 +713,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
588
713
  - !ruby/object:Gem::Version
589
714
  version: '0'
590
715
  requirements: []
591
- rubygems_version: 3.5.9
716
+ rubygems_version: 3.5.11
592
717
  signing_key:
593
718
  specification_version: 4
594
719
  summary: Karafka ecosystem Web UI interface
metadata.gz.sig CHANGED
Binary file
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Karafka
4
- module Web
5
- module Management
6
- module Migrations
7
- # Initial migration that sets the consumers metrics initial first state.
8
- # This is the basic of metrics as they were when they were introduced.
9
- class SetInitialConsumersMetrics < Base
10
- # Always migrate from empty up
11
- self.versions_until = '0.0.1'
12
- self.type = :consumers_metrics
13
-
14
- # @param state [Hash] initial empty state
15
- def migrate(state)
16
- state.merge!(
17
- aggregated: {
18
- days: [],
19
- hours: [],
20
- minutes: [],
21
- seconds: []
22
- },
23
- consumer_groups: {
24
- days: [],
25
- hours: [],
26
- minutes: [],
27
- seconds: []
28
- },
29
- dispatched_at: float_now
30
- )
31
- end
32
- end
33
- end
34
- end
35
- end
36
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Karafka
4
- module Web
5
- module Management
6
- module Migrations
7
- # Initial migration that sets the consumers state initial first state.
8
- # This is the basic of state as they were when they were introduced.
9
- class SetInitialConsumersState < Base
10
- # Run this only on the first setup
11
- self.versions_until = '0.0.1'
12
- self.type = :consumers_state
13
-
14
- # @param state [Hash]
15
- def migrate(state)
16
- state.merge!(
17
- processes: {},
18
- stats: {
19
- batches: 0,
20
- messages: 0,
21
- retries: 0,
22
- dead: 0,
23
- busy: 0,
24
- enqueued: 0,
25
- processing: 0,
26
- workers: 0,
27
- processes: 0,
28
- rss: 0,
29
- listeners: 0,
30
- utilization: 0,
31
- errors: 0,
32
- lag_stored: 0,
33
- lag: 0
34
- },
35
- schema_state: 'accepted',
36
- dispatched_at: float_now
37
- )
38
- end
39
- end
40
- end
41
- end
42
- end
43
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Karafka
4
- module Web
5
- module Management
6
- module Migrations
7
- # Adds bytes_sent and bytes_received to all the aggregated metrics samples, so we have
8
- # charts that do not have to fill gaps or check anything
9
- class FillMissingReceivedAndSentBytesInConsumersMetrics < Base
10
- self.versions_until = '1.1.0'
11
- self.type = :consumers_metrics
12
-
13
- # @param state [Hash] metrics state
14
- def migrate(state)
15
- state[:aggregated].each_value do |metrics|
16
- metrics.each do |metric|
17
- metric.last[:bytes_sent] = 0
18
- metric.last[:bytes_received] = 0
19
- end
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Karafka
4
- module Web
5
- module Management
6
- module Migrations
7
- # Similar to filling in consumers metrics, we initialize this with zeros so it is always
8
- # present as expected
9
- class FillMissingReceivedAndSentBytesInConsumersState < Base
10
- # Network metrics were introduced with schema 1.2.0
11
- self.versions_until = '1.2.0'
12
- self.type = :consumers_state
13
-
14
- # @param state [Hash]
15
- def migrate(state)
16
- state[:stats][:bytes_sent] = 0
17
- state[:stats][:bytes_received] = 0
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end