karafka-web 0.9.1 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/ci.yml +30 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +98 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +37 -25
- data/LICENSE +1 -1
- data/bin/build_assets +51 -0
- data/bin/release +6 -0
- data/certs/cert.pem +26 -0
- data/config/locales/pro_errors.yml +18 -0
- data/docker-compose.yml +1 -1
- data/gulpfile.js +73 -0
- data/karafka-web.gemspec +3 -3
- data/lib/karafka/web/config.rb +18 -10
- data/lib/karafka/web/contracts/base.rb +2 -0
- data/lib/karafka/web/contracts/config.rb +6 -1
- data/lib/karafka/web/errors.rb +12 -0
- data/lib/karafka/web/inflector.rb +1 -1
- data/lib/karafka/web/management/actions/enable.rb +17 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/0_set_initial.rb +39 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1699543515_fill_missing_received_and_sent_bytes.rb +28 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_remove_processing.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1704722380_split_listeners_into_active_and_paused.rb +38 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1706607960_introduce_lag_total.rb +40 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1706611396_rename_lag_total_to_lag_hybrid.rb +38 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1716218393_populate_jobs_metrics.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_states/0_set_initial.rb +46 -0
- data/lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb +25 -0
- data/lib/karafka/web/management/migrations/consumers_states/1700234522_introduce_waiting.rb +22 -0
- data/lib/karafka/web/management/migrations/consumers_states/1700234522_remove_processing.rb +22 -0
- data/lib/karafka/web/management/migrations/consumers_states/1704722380_split_listeners_into_active_and_paused.rb +34 -0
- data/lib/karafka/web/management/migrations/consumers_states/1706607960_introduce_lag_total.rb +24 -0
- data/lib/karafka/web/management/migrations/consumers_states/1706611396_rename_lag_total_to_lag_hybrid.rb +23 -0
- data/lib/karafka/web/management/migrations/consumers_states/1716218393_add_jobs_counter.rb +24 -0
- data/lib/karafka/web/management/migrator.rb +5 -5
- data/lib/karafka/web/pro/commanding/commands/base.rb +8 -0
- data/lib/karafka/web/pro/commanding/commands/quiet.rb +4 -1
- data/lib/karafka/web/pro/commanding/commands/stop.rb +4 -1
- data/lib/karafka/web/pro/loader.rb +8 -0
- data/lib/karafka/web/pro/ui/app.rb +84 -7
- data/lib/karafka/web/pro/ui/controllers/commanding_controller.rb +4 -4
- data/lib/karafka/web/pro/ui/controllers/dlq_controller.rb +1 -1
- data/lib/karafka/web/pro/ui/controllers/errors_controller.rb +1 -0
- data/lib/karafka/web/pro/ui/controllers/explorer_controller.rb +6 -14
- data/lib/karafka/web/pro/ui/controllers/messages_controller.rb +5 -4
- data/lib/karafka/web/pro/ui/controllers/recurring_tasks_controller.rb +131 -0
- data/lib/karafka/web/pro/ui/controllers/search_controller.rb +73 -0
- data/lib/karafka/web/pro/ui/controllers/support_controller.rb +26 -0
- data/lib/karafka/web/pro/ui/controllers/topics_controller.rb +31 -0
- data/lib/karafka/web/pro/ui/controllers/ux_controller.rb +26 -0
- data/lib/karafka/web/pro/ui/lib/policies/config.rb +39 -0
- data/lib/karafka/web/pro/ui/lib/policies/contracts/config.rb +46 -0
- data/lib/karafka/web/pro/ui/lib/policies/messages.rb +76 -0
- data/lib/karafka/web/pro/ui/lib/policies/requests.rb +36 -0
- data/lib/karafka/web/pro/ui/lib/policies.rb +34 -0
- data/lib/karafka/web/pro/ui/lib/safe_runner.rb +98 -0
- data/lib/karafka/web/pro/ui/lib/search/config.rb +53 -0
- data/lib/karafka/web/pro/ui/lib/search/contracts/config.rb +101 -0
- data/lib/karafka/web/pro/ui/lib/search/contracts/form.rb +111 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/base.rb +59 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_header_includes.rb +57 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb +41 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_payload_includes.rb +45 -0
- data/lib/karafka/web/pro/ui/lib/search/normalizer.rb +47 -0
- data/lib/karafka/web/pro/ui/lib/search/runner.rb +230 -0
- data/lib/karafka/web/pro/ui/lib/search.rb +36 -0
- data/lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb +4 -4
- data/lib/karafka/web/pro/ui/views/cluster/_tabs.erb +14 -24
- data/lib/karafka/web/pro/ui/views/cluster/index.erb +20 -22
- data/lib/karafka/web/pro/ui/views/cluster/show.erb +21 -25
- data/lib/karafka/web/pro/ui/views/commands/_backtrace.erb +4 -19
- data/lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/pro/ui/views/commands/_command.erb +6 -6
- data/lib/karafka/web/pro/ui/views/commands/_command_details.erb +1 -11
- data/lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb +3 -14
- data/lib/karafka/web/pro/ui/views/commands/_metadata.erb +33 -42
- data/lib/karafka/web/pro/ui/views/commands/_table.erb +9 -3
- data/lib/karafka/web/pro/ui/views/commands/index.erb +18 -12
- data/lib/karafka/web/pro/ui/views/commands/show.erb +24 -29
- data/lib/karafka/web/pro/ui/views/consumers/_breadcrumbs.erb +8 -8
- data/lib/karafka/web/pro/ui/views/consumers/_consumer.erb +13 -23
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +52 -35
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb +1 -1
- data/lib/karafka/web/pro/ui/views/consumers/_tabs.erb +28 -30
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +68 -28
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_job.erb +1 -1
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_metrics.erb +114 -133
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_partition.erb +4 -4
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_stopped.erb +6 -9
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_subscription_group.erb +116 -126
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_tabs.erb +26 -31
- data/lib/karafka/web/pro/ui/views/consumers/controls.erb +53 -57
- data/lib/karafka/web/pro/ui/views/consumers/details.erb +4 -17
- data/lib/karafka/web/pro/ui/views/consumers/index.erb +31 -34
- data/lib/karafka/web/pro/ui/views/consumers/pending_jobs.erb +41 -46
- data/lib/karafka/web/pro/ui/views/consumers/performance.erb +43 -47
- data/lib/karafka/web/pro/ui/views/consumers/running_jobs.erb +41 -46
- data/lib/karafka/web/pro/ui/views/consumers/subscriptions.erb +14 -17
- data/lib/karafka/web/pro/ui/views/dashboard/index.erb +67 -76
- data/lib/karafka/web/pro/ui/views/dlq/_breadcrumbs.erb +1 -1
- data/lib/karafka/web/pro/ui/views/dlq/_no_topics.erb +1 -7
- data/lib/karafka/web/pro/ui/views/dlq/_topic.erb +7 -10
- data/lib/karafka/web/pro/ui/views/dlq/index.erb +8 -10
- data/lib/karafka/web/pro/ui/views/errors/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/pro/ui/views/errors/_error.erb +8 -5
- data/lib/karafka/web/pro/ui/views/errors/_selector.erb +12 -0
- data/lib/karafka/web/pro/ui/views/errors/_table.erb +5 -4
- data/lib/karafka/web/pro/ui/views/errors/index.erb +50 -15
- data/lib/karafka/web/pro/ui/views/errors/partition.erb +61 -14
- data/lib/karafka/web/pro/ui/views/errors/show.erb +28 -46
- data/lib/karafka/web/pro/ui/views/explorer/_breadcrumbs.erb +11 -3
- data/lib/karafka/web/pro/ui/views/explorer/_failed_deserialization.erb +8 -3
- data/lib/karafka/web/pro/ui/views/explorer/_message.erb +12 -6
- data/lib/karafka/web/pro/ui/views/explorer/_no_topics.erb +1 -5
- data/lib/karafka/web/pro/ui/views/explorer/_selector.erb +12 -0
- data/lib/karafka/web/pro/ui/views/explorer/_topic.erb +6 -8
- data/lib/karafka/web/pro/ui/views/explorer/index.erb +13 -15
- data/lib/karafka/web/pro/ui/views/explorer/message/_metadata.erb +68 -32
- data/lib/karafka/web/pro/ui/views/explorer/message/_payload.erb +17 -16
- data/lib/karafka/web/pro/ui/views/explorer/message/_resources_utilization.erb +127 -0
- data/lib/karafka/web/pro/ui/views/explorer/message/_too_big_to_be_displayed.erb +20 -0
- data/lib/karafka/web/pro/ui/views/explorer/messages/_detail.erb +1 -1
- data/lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb +6 -3
- data/lib/karafka/web/pro/ui/views/explorer/partition.erb +67 -46
- data/lib/karafka/web/pro/ui/views/explorer/show.erb +85 -21
- data/lib/karafka/web/pro/ui/views/explorer/topic/_actions.erb +27 -0
- data/lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb +8 -10
- data/lib/karafka/web/pro/ui/views/explorer/topic.erb +24 -44
- data/lib/karafka/web/pro/ui/views/health/_breadcrumbs.erb +7 -7
- data/lib/karafka/web/pro/ui/views/health/_no_data.erb +1 -7
- data/lib/karafka/web/pro/ui/views/health/_partition.erb +3 -3
- data/lib/karafka/web/pro/ui/views/health/_partition_lags.erb +3 -3
- data/lib/karafka/web/pro/ui/views/health/_partition_offset.erb +2 -2
- data/lib/karafka/web/pro/ui/views/health/_partition_times.erb +3 -7
- data/lib/karafka/web/pro/ui/views/health/_table_metadata.erb +8 -0
- data/lib/karafka/web/pro/ui/views/health/_tabs.erb +32 -49
- data/lib/karafka/web/pro/ui/views/health/changes.erb +51 -51
- data/lib/karafka/web/pro/ui/views/health/cluster_lags.erb +28 -41
- data/lib/karafka/web/pro/ui/views/health/lags.erb +52 -52
- data/lib/karafka/web/pro/ui/views/health/offsets.erb +55 -55
- data/lib/karafka/web/pro/ui/views/health/overview.erb +60 -60
- data/lib/karafka/web/pro/ui/views/jobs/_job.erb +1 -1
- data/lib/karafka/web/pro/ui/views/jobs/_no_jobs.erb +1 -7
- data/lib/karafka/web/pro/ui/views/jobs/pending.erb +36 -38
- data/lib/karafka/web/pro/ui/views/jobs/running.erb +36 -38
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_actions.erb +58 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_batch_actions.erb +45 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_breadcrumbs.erb +22 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_log.erb +26 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_not_active.erb +12 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_tabs.erb +17 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/_task.erb +46 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/logs.erb +34 -0
- data/lib/karafka/web/pro/ui/views/recurring_tasks/schedule.erb +43 -0
- data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +7 -12
- data/lib/karafka/web/pro/ui/views/routing/_topic.erb +13 -11
- data/lib/karafka/web/pro/ui/views/routing/index.erb +7 -9
- data/lib/karafka/web/pro/ui/views/routing/show.erb +41 -33
- data/lib/karafka/web/pro/ui/views/search/_fix_errors.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/_metadata.erb +71 -0
- data/lib/karafka/web/pro/ui/views/search/_no_results.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/_no_search_criteria.erb +5 -0
- data/lib/karafka/web/pro/ui/views/search/_search_criteria.erb +37 -0
- data/lib/karafka/web/pro/ui/views/search/_search_modal.erb +139 -0
- data/lib/karafka/web/pro/ui/views/search/_timeout.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/index.erb +29 -0
- data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +90 -28
- data/lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb +14 -6
- data/lib/karafka/web/pro/ui/views/topics/_partition_offsets.erb +10 -0
- data/lib/karafka/web/pro/ui/views/topics/_tabs.erb +26 -32
- data/lib/karafka/web/pro/ui/views/topics/_topic.erb +7 -10
- data/lib/karafka/web/pro/ui/views/topics/config.erb +21 -25
- data/lib/karafka/web/pro/ui/views/topics/distribution/_badges.erb +10 -5
- data/lib/karafka/web/pro/ui/views/topics/distribution/_chart.erb +3 -1
- data/lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb +1 -1
- data/lib/karafka/web/pro/ui/views/topics/distribution.erb +34 -39
- data/lib/karafka/web/pro/ui/views/topics/index.erb +13 -15
- data/lib/karafka/web/pro/ui/views/topics/offsets.erb +24 -0
- data/lib/karafka/web/pro/ui/views/topics/replication.erb +20 -24
- data/lib/karafka/web/processing/consumers/aggregators/metrics.rb +1 -1
- data/lib/karafka/web/processing/consumers/aggregators/state.rb +1 -1
- data/lib/karafka/web/processing/consumers/contracts/aggregated_stats.rb +1 -0
- data/lib/karafka/web/tracking/consumers/contracts/job.rb +1 -1
- data/lib/karafka/web/tracking/consumers/contracts/report.rb +6 -0
- data/lib/karafka/web/tracking/consumers/listeners/connections.rb +8 -6
- data/lib/karafka/web/tracking/consumers/listeners/processing.rb +7 -1
- data/lib/karafka/web/tracking/consumers/listeners/tags.rb +1 -1
- data/lib/karafka/web/tracking/consumers/reporter.rb +6 -8
- data/lib/karafka/web/tracking/consumers/sampler.rb +16 -5
- data/lib/karafka/web/ui/app.rb +20 -1
- data/lib/karafka/web/ui/base.rb +26 -20
- data/lib/karafka/web/ui/controllers/base_controller.rb +7 -5
- data/lib/karafka/web/ui/controllers/dashboard_controller.rb +8 -0
- data/lib/karafka/web/ui/controllers/requests/params.rb +16 -2
- data/lib/karafka/web/ui/controllers/support_controller.rb +17 -0
- data/lib/karafka/web/ui/controllers/ux_controller.rb +17 -0
- data/lib/karafka/web/ui/helpers/application_helper.rb +83 -43
- data/lib/karafka/web/ui/helpers/paths_helper.rb +24 -0
- data/lib/karafka/web/ui/helpers/tailwind_helper.rb +90 -0
- data/lib/karafka/web/ui/lib/sorter.rb +1 -1
- data/lib/karafka/web/ui/models/metrics/aggregated.rb +1 -0
- data/lib/karafka/web/ui/models/metrics/charts/topics.rb +36 -20
- data/lib/karafka/web/ui/models/recurring_tasks/log.rb +26 -0
- data/lib/karafka/web/ui/models/recurring_tasks/schedule.rb +86 -0
- data/lib/karafka/web/ui/models/recurring_tasks/task.rb +30 -0
- data/lib/karafka/web/ui/models/status.rb +28 -1
- data/lib/karafka/web/ui/public/images/calendar.svg +3 -0
- data/lib/karafka/web/ui/public/javascripts/application.js +39 -15
- data/lib/karafka/web/ui/public/javascripts/application.min.js +64 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
- data/lib/karafka/web/ui/public/javascripts/charts/types/line.js +41 -9
- data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +37 -0
- data/lib/karafka/web/ui/public/javascripts/{live_poll.js → components/live_poll.js} +80 -8
- data/lib/karafka/web/ui/public/javascripts/{offset_datetime.js → components/offset_datetime.js} +1 -1
- data/lib/karafka/web/ui/public/javascripts/components/search.js +102 -0
- data/lib/karafka/web/ui/public/javascripts/components/tabs_manager.js +84 -0
- data/lib/karafka/web/ui/public/javascripts/components/theme_manager.js +66 -0
- data/lib/karafka/web/ui/public/javascripts/components/turbo_tracker.js +30 -0
- data/lib/karafka/web/ui/public/javascripts/libs/datepicker.js +2 -2
- data/lib/karafka/web/ui/public/javascripts/libs/turbo.js +6618 -0
- data/lib/karafka/web/ui/public/stylesheets/application.css +20 -113
- data/lib/karafka/web/ui/public/stylesheets/application.min.css +13 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css +8 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +403 -0
- data/lib/karafka/web/ui/views/cluster/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/ui/views/cluster/_tabs.erb +14 -24
- data/lib/karafka/web/ui/views/cluster/brokers.erb +20 -22
- data/lib/karafka/web/ui/views/cluster/replication.erb +28 -32
- data/lib/karafka/web/ui/views/consumers/_assignments_badges.erb +1 -1
- data/lib/karafka/web/ui/views/consumers/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/consumers/_consumer.erb +9 -13
- data/lib/karafka/web/ui/views/consumers/_no_consumers.erb +2 -8
- data/lib/karafka/web/ui/views/consumers/_summary.erb +34 -45
- data/lib/karafka/web/ui/views/consumers/_tabs.erb +35 -0
- data/lib/karafka/web/ui/views/consumers/index.erb +31 -33
- data/lib/karafka/web/ui/views/dashboard/_counters.erb +76 -0
- data/lib/karafka/web/ui/views/dashboard/_feature_pro.erb +6 -2
- data/lib/karafka/web/ui/views/dashboard/_not_enough_data.erb +3 -15
- data/lib/karafka/web/ui/views/dashboard/_ranges_selector.erb +12 -12
- data/lib/karafka/web/ui/views/dashboard/index.erb +78 -52
- data/lib/karafka/web/ui/views/errors/_breadcrumbs.erb +2 -2
- data/lib/karafka/web/ui/views/errors/_detail.erb +1 -3
- data/lib/karafka/web/ui/views/errors/_error.erb +3 -5
- data/lib/karafka/web/ui/views/errors/index.erb +34 -44
- data/lib/karafka/web/ui/views/errors/show.erb +29 -47
- data/lib/karafka/web/ui/views/jobs/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/ui/views/jobs/_job.erb +1 -1
- data/lib/karafka/web/ui/views/jobs/_no_jobs.erb +1 -7
- data/lib/karafka/web/ui/views/jobs/_tabs.erb +14 -24
- data/lib/karafka/web/ui/views/jobs/pending.erb +30 -32
- data/lib/karafka/web/ui/views/jobs/running.erb +30 -32
- data/lib/karafka/web/ui/views/layout.erb +37 -21
- data/lib/karafka/web/ui/views/routing/_breadcrumbs.erb +2 -2
- data/lib/karafka/web/ui/views/routing/_consumer_group.erb +7 -12
- data/lib/karafka/web/ui/views/routing/_topic.erb +3 -5
- data/lib/karafka/web/ui/views/routing/index.erb +7 -9
- data/lib/karafka/web/ui/views/routing/show.erb +30 -22
- data/lib/karafka/web/ui/views/shared/_become_pro.erb +8 -8
- data/lib/karafka/web/ui/views/shared/_brand.erb +2 -2
- data/lib/karafka/web/ui/views/shared/_breadcrumbs.erb +23 -0
- data/lib/karafka/web/ui/views/shared/_content.erb +2 -28
- data/lib/karafka/web/ui/views/shared/_controls.erb +15 -0
- data/lib/karafka/web/ui/views/shared/_flashes.erb +5 -7
- data/lib/karafka/web/ui/views/shared/_header.erb +16 -19
- data/lib/karafka/web/ui/views/shared/_navigation.erb +95 -28
- data/lib/karafka/web/ui/views/shared/_no_paginated_data.erb +5 -9
- data/lib/karafka/web/ui/views/shared/_pagination.erb +11 -11
- data/lib/karafka/web/ui/views/shared/_tab_nav.erb +4 -5
- data/lib/karafka/web/ui/views/shared/_title.erb +5 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_error.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_info.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_primary.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_secondary.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_success.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_warning.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_error.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_info.erb +5 -2
- data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_success.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +4 -0
- data/lib/karafka/web/ui/views/shared/charts/_line.erb +1 -1
- data/lib/karafka/web/ui/views/shared/exceptions/not_allowed.erb +14 -19
- data/lib/karafka/web/ui/views/shared/exceptions/not_found.erb +16 -21
- data/lib/karafka/web/ui/views/shared/exceptions/pro_only.erb +16 -28
- data/lib/karafka/web/ui/views/shared/icons/_arrow_down_on_square.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_down_tray.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_on_squares.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_path_rounded.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_uturn_right.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrows_right_left.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_blocks.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_book_open.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_bug.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_burger.erb +14 -0
- data/lib/karafka/web/ui/views/shared/icons/_calendar_days.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_chart_bar.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_check.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_check_badge.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_check_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_circle_stack.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_cpu.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_document_glass.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_exclamation_triangle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_eye.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_gear.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_github.erb +13 -0
- data/lib/karafka/web/ui/views/shared/icons/_globe.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_heart.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_home.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_info_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_lifebuoy.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_light_bulb.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_list_bullets.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_magnifying_glass.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_moon.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_offices.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_pause.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_pause_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_play.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_play_circle.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_question_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_queue_list.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_refresh.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_slack.erb +16 -0
- data/lib/karafka/web/ui/views/shared/icons/_stop.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_sun.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_x_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_x_mark.erb +3 -0
- data/lib/karafka/web/ui/views/status/_breadcrumbs.erb +1 -1
- data/lib/karafka/web/ui/views/status/_failure.erb +2 -13
- data/lib/karafka/web/ui/views/status/_halted.erb +2 -10
- data/lib/karafka/web/ui/views/status/_info.erb +2 -13
- data/lib/karafka/web/ui/views/status/_success.erb +2 -10
- data/lib/karafka/web/ui/views/status/_warning.erb +2 -13
- data/lib/karafka/web/ui/views/status/failures/_connection.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_consumers_reports.erb +3 -3
- data/lib/karafka/web/ui/views/status/failures/_consumers_reports_schema_state.erb +4 -4
- data/lib/karafka/web/ui/views/status/failures/_enabled.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb +6 -6
- data/lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb +6 -6
- data/lib/karafka/web/ui/views/status/failures/_live_reporting.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_materializing_lag.erb +11 -0
- data/lib/karafka/web/ui/views/status/failures/_partitions.erb +3 -3
- data/lib/karafka/web/ui/views/status/failures/_state_calculation.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_topics.erb +3 -3
- data/lib/karafka/web/ui/views/status/info/_components.erb +59 -49
- data/lib/karafka/web/ui/views/status/show.erb +165 -154
- data/lib/karafka/web/ui/views/status/warnings/_connection.erb +3 -3
- data/lib/karafka/web/ui/views/status/warnings/_pro_subscription.erb +2 -2
- data/lib/karafka/web/ui/views/status/warnings/_replication.erb +2 -2
- data/lib/karafka/web/ui/views/status/warnings/_routing_topics_presence.erb +1 -1
- data/lib/karafka/web/ui/views/support/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/support/show.erb +71 -0
- data/lib/karafka/web/ui/views/ux/_alerts.erb +25 -0
- data/lib/karafka/web/ui/views/ux/_badges.erb +21 -0
- data/lib/karafka/web/ui/views/ux/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/ux/_buttons.erb +47 -0
- data/lib/karafka/web/ui/views/ux/_card_detail.erb +15 -0
- data/lib/karafka/web/ui/views/ux/_card_metric.erb +123 -0
- data/lib/karafka/web/ui/views/ux/_card_summary.erb +72 -0
- data/lib/karafka/web/ui/views/ux/_card_support.erb +39 -0
- data/lib/karafka/web/ui/views/ux/_code.erb +9 -0
- data/lib/karafka/web/ui/views/ux/_data_table.erb +82 -0
- data/lib/karafka/web/ui/views/ux/_headers.erb +2 -0
- data/lib/karafka/web/ui/views/ux/_icons.erb +9 -0
- data/lib/karafka/web/ui/views/ux/_pagination.erb +32 -0
- data/lib/karafka/web/ui/views/ux/_row_table.erb +52 -0
- data/lib/karafka/web/ui/views/ux/_status_rows.erb +65 -0
- data/lib/karafka/web/ui/views/ux/_tabs.erb +14 -0
- data/lib/karafka/web/ui/views/ux/_text.erb +2 -0
- data/lib/karafka/web/ui/views/ux/_topic_tiles.erb +42 -0
- data/lib/karafka/web/ui/views/ux/show.erb +19 -0
- data/lib/karafka/web/version.rb +1 -1
- data/lib/karafka/web.rb +2 -0
- data/package-lock.json +4163 -0
- data/package.json +15 -0
- data/postcss.config.js +6 -0
- data/tailwind.config.js +16 -0
- data.tar.gz.sig +0 -0
- metadata +209 -69
- metadata.gz.sig +1 -4
- data/certs/cert_chain.pem +0 -26
- data/lib/karafka/web/management/migrations/0_set_initial_consumers_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/0_set_initial_consumers_state.rb +0 -43
- data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_metrics.rb +0 -26
- data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_state.rb +0 -23
- data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_metrics.rb +0 -24
- data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_state.rb +0 -20
- data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_metrics.rb +0 -24
- data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_state.rb +0 -20
- data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_states.rb +0 -32
- data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_metrics.rb +0 -38
- data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_states.rb +0 -22
- data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_states.rb +0 -21
- data/lib/karafka/web/pro/ui/views/cluster/brokers.erb +0 -27
- data/lib/karafka/web/pro/ui/views/commands/_details.erb +0 -26
- data/lib/karafka/web/pro/ui/views/consumers/_counters.erb +0 -72
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb +0 -5
- data/lib/karafka/web/pro/ui/views/errors/_title_with_select.erb +0 -31
- data/lib/karafka/web/pro/ui/views/explorer/message/_message_actions.erb +0 -18
- data/lib/karafka/web/pro/ui/views/explorer/message/_payload_actions.erb +0 -19
- data/lib/karafka/web/pro/ui/views/explorer/partition/_details.erb +0 -35
- data/lib/karafka/web/pro/ui/views/explorer/topic/_details.erb +0 -23
- data/lib/karafka/web/pro/ui/views/health/_consumer_group_header.erb +0 -14
- data/lib/karafka/web/ui/controllers/responses/deny.rb +0 -15
- data/lib/karafka/web/ui/helpers/alerts_helper.rb +0 -23
- data/lib/karafka/web/ui/lib/safe_runner.rb +0 -59
- data/lib/karafka/web/ui/models/visibility_filter.rb +0 -49
- data/lib/karafka/web/ui/public/javascripts/libs/bootstrap.min.js +0 -6
- data/lib/karafka/web/ui/public/javascripts/tabs_manager.js +0 -57
- data/lib/karafka/web/ui/public/stylesheets/libs/bootstrap.min.css +0 -6
- data/lib/karafka/web/ui/views/consumers/_counters.erb +0 -62
- data/lib/karafka/web/ui/views/errors/_watermark_offsets.erb +0 -10
- data/lib/karafka/web/ui/views/shared/_feature_pro.erb +0 -4
- data/lib/karafka/web/ui/views/shared/_footer.erb +0 -22
- data/lib/karafka/web/ui/views/shared/_live_poll.erb +0 -7
- /data/lib/karafka/web/management/migrations/{0_base.rb → base.rb} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{charts.js → components/charts.js} +0 -0
- /data/lib/karafka/web/ui/public/stylesheets/libs/{highlight.min.css → highlight_light.min.css} +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
<p class="w-full">
|
2
|
+
<label class="text-gray-700">Partition:</label>
|
3
|
+
<select class="select select-bordered w-full max-w-xs select-sm ml-1" id="current-partition">
|
4
|
+
<%==
|
5
|
+
each_partial(
|
6
|
+
[nil] + @partitions_count.times.to_a,
|
7
|
+
'explorer/partition_option',
|
8
|
+
local: :partition
|
9
|
+
)
|
10
|
+
%>
|
11
|
+
</select>
|
12
|
+
</p>
|
@@ -1,12 +1,10 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<a href="<%= explorer_path(topic[:topic_name]) %>">
|
1
|
+
<div class="topic-tile">
|
2
|
+
<div class="topic-tile-body">
|
3
|
+
<p class="topic-tile-text">
|
4
|
+
<a href="<%= explorer_path(topic[:topic_name]) %>" class="topic-tile-link">
|
6
5
|
<%= topic[:topic_name] %> /
|
7
6
|
<%= topic[:partition_count] %>
|
8
|
-
|
9
|
-
|
10
|
-
</div>
|
7
|
+
</a>
|
8
|
+
</p>
|
11
9
|
</div>
|
12
10
|
</div>
|
@@ -1,16 +1,14 @@
|
|
1
|
-
|
1
|
+
<% view_title 'Explorer' %>
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<% end %>
|
16
|
-
</div>
|
3
|
+
<% if @topics.empty? %>
|
4
|
+
<%== partial 'explorer/no_topics' %>
|
5
|
+
<% else %>
|
6
|
+
<div class="topic-tiles">
|
7
|
+
<%==
|
8
|
+
each_partial(
|
9
|
+
@topics,
|
10
|
+
'explorer/topic'
|
11
|
+
)
|
12
|
+
%>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
@@ -22,46 +22,82 @@
|
|
22
22
|
%>
|
23
23
|
<% end %>
|
24
24
|
|
25
|
-
<div class="
|
26
|
-
<
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
25
|
+
<div class="data-table-wrapper">
|
26
|
+
<table class="data-table">
|
27
|
+
<tbody>
|
28
|
+
<%==
|
29
|
+
partial(
|
30
|
+
'explorer/messages/key',
|
31
|
+
locals: { message: @message }
|
32
|
+
)
|
33
|
+
%>
|
34
|
+
|
35
|
+
<%==
|
36
|
+
partial(
|
37
|
+
'explorer/messages/detail',
|
38
|
+
locals: {
|
39
|
+
k: 'time',
|
40
|
+
v: @message.timestamp
|
41
|
+
}
|
42
|
+
)
|
43
|
+
%>
|
35
44
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
%>
|
46
|
-
<% end %>
|
45
|
+
<%==
|
46
|
+
partial(
|
47
|
+
'explorer/messages/detail',
|
48
|
+
locals: {
|
49
|
+
k: 'timestamp',
|
50
|
+
v: (@message.timestamp.to_f * 1_000).to_i
|
51
|
+
}
|
52
|
+
)
|
53
|
+
%>
|
47
54
|
|
55
|
+
<% special = %i[received_at timestamp raw_key raw_headers message deserializers] %>
|
56
|
+
<% @message.metadata.to_h.except(*special).each do |k, v| %>
|
48
57
|
<%==
|
49
58
|
partial(
|
50
59
|
'explorer/messages/detail',
|
51
60
|
locals: {
|
52
|
-
k:
|
53
|
-
v:
|
61
|
+
k: k,
|
62
|
+
v: v
|
54
63
|
}
|
55
64
|
)
|
56
65
|
%>
|
66
|
+
<% end %>
|
57
67
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
68
|
+
<tr>
|
69
|
+
<td>
|
70
|
+
deserializers.key
|
71
|
+
</td>
|
72
|
+
<td>
|
73
|
+
<code><%== object_value_to_s @message.metadata.deserializers.key %></code>
|
74
|
+
</td>
|
75
|
+
</tr>
|
76
|
+
|
77
|
+
<tr>
|
78
|
+
<td>
|
79
|
+
deserializers.headers
|
80
|
+
</td>
|
81
|
+
<td>
|
82
|
+
<code><%== object_value_to_s @message.metadata.deserializers.headers %></code>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
|
86
|
+
<tr>
|
87
|
+
<td>
|
88
|
+
deserializers.payload
|
89
|
+
</td>
|
90
|
+
<td>
|
91
|
+
<code><%== object_value_to_s @message.metadata.deserializers.payload %></code>
|
92
|
+
</td>
|
93
|
+
</tr>
|
94
|
+
|
95
|
+
<%==
|
96
|
+
partial(
|
97
|
+
'explorer/messages/headers',
|
98
|
+
locals: { message: @message }
|
99
|
+
)
|
100
|
+
%>
|
101
|
+
</tbody>
|
102
|
+
</table>
|
67
103
|
</div>
|
@@ -1,21 +1,22 @@
|
|
1
1
|
<% if @visibility_filter.payload?(@message) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% if @safe_payload.failure? %>
|
3
|
+
<%==
|
4
|
+
partial(
|
5
|
+
'explorer/failed_deserialization',
|
6
|
+
locals: { attribute: 'payload', error: @safe_payload.error }
|
7
|
+
)
|
8
|
+
%>
|
9
|
+
<% end %>
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</div>
|
18
|
-
</div>
|
11
|
+
<% if (@message.raw_payload&.bytesize || 0) > Karafka::Web.config.ui.max_visible_payload_size %>
|
12
|
+
<%== partial('explorer/message/too_big_to_be_displayed') %>
|
13
|
+
<% else %>
|
14
|
+
<% if @safe_payload.failure? %>
|
15
|
+
<pre class="code"><code class="json"><%= @message.raw_payload %></code></pre>
|
16
|
+
<% else %>
|
17
|
+
<pre class="code"><code class="json"><%= JSON.pretty_generate(@safe_payload.result) %></code></pre>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
19
20
|
<% else %>
|
20
21
|
<%== partial 'explorer/filtered' %>
|
21
22
|
<% end %>
|
@@ -0,0 +1,127 @@
|
|
1
|
+
<div class="data-table-wrapper">
|
2
|
+
<table class="data-table">
|
3
|
+
<tbody>
|
4
|
+
<%==
|
5
|
+
partial(
|
6
|
+
'explorer/messages/detail',
|
7
|
+
locals: {
|
8
|
+
k: 'key.bytesize',
|
9
|
+
v: format_memory((@message.raw_key&.bytesize || 0) / 1024.0)
|
10
|
+
}
|
11
|
+
)
|
12
|
+
%>
|
13
|
+
|
14
|
+
<tr>
|
15
|
+
<td>
|
16
|
+
key.cpu_time
|
17
|
+
</td>
|
18
|
+
<td>
|
19
|
+
<%== @safe_key.cpu_time.round(4) %> ms
|
20
|
+
</td>
|
21
|
+
</tr>
|
22
|
+
|
23
|
+
<tr>
|
24
|
+
<td>
|
25
|
+
key.total_time
|
26
|
+
</td>
|
27
|
+
<td>
|
28
|
+
<%== @safe_key.total_time.round(4) %> ms
|
29
|
+
</td>
|
30
|
+
</tr>
|
31
|
+
|
32
|
+
<tr>
|
33
|
+
<td>
|
34
|
+
key.allocations
|
35
|
+
</td>
|
36
|
+
<td>
|
37
|
+
<%= @safe_key.allocations || 'Not Available' %>
|
38
|
+
</td>
|
39
|
+
</tr>
|
40
|
+
|
41
|
+
<%
|
42
|
+
bytesize = 0
|
43
|
+
|
44
|
+
@message.raw_headers.each do |h, v|
|
45
|
+
bytesize += h.bytesize
|
46
|
+
bytesize += v.bytesize
|
47
|
+
end
|
48
|
+
|
49
|
+
kbytesize = bytesize / 1024.0
|
50
|
+
%>
|
51
|
+
|
52
|
+
<%==
|
53
|
+
partial(
|
54
|
+
'explorer/messages/detail',
|
55
|
+
locals: {
|
56
|
+
k: 'headers.bytesize',
|
57
|
+
v: format_memory(kbytesize)
|
58
|
+
}
|
59
|
+
)
|
60
|
+
%>
|
61
|
+
|
62
|
+
<tr>
|
63
|
+
<td>
|
64
|
+
headers.cpu_time
|
65
|
+
</td>
|
66
|
+
<td>
|
67
|
+
<%== @safe_headers.cpu_time.round(4) %> ms
|
68
|
+
</td>
|
69
|
+
</tr>
|
70
|
+
|
71
|
+
<tr>
|
72
|
+
<td>
|
73
|
+
headers.total_time
|
74
|
+
</td>
|
75
|
+
<td>
|
76
|
+
<%== @safe_headers.total_time.round(4) %> ms
|
77
|
+
</td>
|
78
|
+
</tr>
|
79
|
+
|
80
|
+
<tr>
|
81
|
+
<td>
|
82
|
+
headers.allocations
|
83
|
+
</td>
|
84
|
+
<td>
|
85
|
+
<%= @safe_headers.allocations || 'Not Available' %>
|
86
|
+
</td>
|
87
|
+
</tr>
|
88
|
+
|
89
|
+
<%==
|
90
|
+
partial(
|
91
|
+
'explorer/messages/detail',
|
92
|
+
locals: {
|
93
|
+
k: 'payload.bytesize',
|
94
|
+
v: format_memory((@message.raw_payload&.bytesize || 0) / 1024.0)
|
95
|
+
}
|
96
|
+
)
|
97
|
+
%>
|
98
|
+
|
99
|
+
<tr>
|
100
|
+
<td>
|
101
|
+
payload.cpu_time
|
102
|
+
</td>
|
103
|
+
<td>
|
104
|
+
<%== @safe_payload.cpu_time.round(4) %> ms
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
|
108
|
+
<tr>
|
109
|
+
<td>
|
110
|
+
payload.total_time
|
111
|
+
</td>
|
112
|
+
<td>
|
113
|
+
<%== @safe_payload.total_time.round(4) %> ms
|
114
|
+
</td>
|
115
|
+
</tr>
|
116
|
+
|
117
|
+
<tr>
|
118
|
+
<td>
|
119
|
+
payload.allocations
|
120
|
+
</td>
|
121
|
+
<td>
|
122
|
+
<%= @safe_payload.allocations || 'Not Available' %>
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
</tbody>
|
126
|
+
</table>
|
127
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="col-span-12 mb-6">
|
2
|
+
<div class="alert alert-warning">
|
3
|
+
<%== icon :exclamation_triangle %>
|
4
|
+
|
5
|
+
<span>
|
6
|
+
Message payloads larger than
|
7
|
+
<strong>
|
8
|
+
<%=
|
9
|
+
format_memory((Karafka::Web.config.ui.max_visible_payload_size / 1024.to_f).round(4))
|
10
|
+
%>
|
11
|
+
</strong>
|
12
|
+
are not displayed to prevent browser performance issues.
|
13
|
+
|
14
|
+
<br/>
|
15
|
+
<br/>
|
16
|
+
|
17
|
+
This limit ensures a smooth and responsive user experience. If you need to view larger payloads, please download the message and inspect it using an appropriate tool.
|
18
|
+
</span>
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -1,10 +1,11 @@
|
|
1
|
-
<div class="table-
|
2
|
-
<table class="
|
1
|
+
<div class="data-table-wrapper">
|
2
|
+
<table class="data-table">
|
3
3
|
<thead>
|
4
|
-
<tr
|
4
|
+
<tr>
|
5
5
|
<th>Partition</th>
|
6
6
|
<th>Offset</th>
|
7
7
|
<th>Timestamp</th>
|
8
|
+
<th>Time</th>
|
8
9
|
<th>Key</th>
|
9
10
|
<th></th>
|
10
11
|
</tr>
|
@@ -18,4 +19,6 @@
|
|
18
19
|
%>
|
19
20
|
</tbody>
|
20
21
|
</table>
|
22
|
+
|
23
|
+
<%== content_for :table_metadata %>
|
21
24
|
</div>
|
@@ -1,49 +1,70 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
1
|
+
<% view_title "#{@topic_id} partition #{@partition_id}" %>
|
2
|
+
|
3
|
+
<div class="col-span-4">
|
4
|
+
<section class="actions">
|
5
|
+
<% if @messages && !@messages.empty? %>
|
6
|
+
<a
|
7
|
+
href="<%= explorer_path(@topic_id, @partition_id, 'recent') %>"
|
8
|
+
class="btn-action"
|
9
|
+
title="Display the most recent message for this partition with auto-refresh"
|
10
|
+
>
|
11
|
+
<%== icon(:play_circle) %>
|
12
|
+
</a>
|
13
|
+
|
14
|
+
<a
|
15
|
+
href="<%= explorer_path(@topic_id, 'search', "?partition=#{@partition_id}") %>"
|
16
|
+
class="btn-action"
|
17
|
+
title="Search in this topic"
|
18
|
+
>
|
19
|
+
<%== icon(:magnifying_glass) %>
|
20
|
+
</a>
|
21
|
+
|
22
|
+
<% closest_path = explorer_path(@topic_id, @partition_id) %>
|
23
|
+
<input
|
24
|
+
type="image"
|
25
|
+
src="<%= asset_path('images/calendar.svg') %>"
|
26
|
+
width="45"
|
27
|
+
height="32"
|
28
|
+
class="btn-action p-1 opacity-60"
|
29
|
+
id="offset-lookup-datepicker"
|
30
|
+
value=""
|
31
|
+
data-target="<%= closest_path %>"
|
32
|
+
/>
|
33
|
+
<% end %>
|
34
|
+
</section>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="col-span-8 mb-3">
|
38
|
+
<section class="actions">
|
39
|
+
<%== partial 'explorer/selector' %>
|
40
|
+
</section>
|
31
41
|
</div>
|
32
42
|
|
33
|
-
<div class="
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
<div class="col-span-12">
|
44
|
+
<% if @limited %>
|
45
|
+
<%== partial('explorer/topic/limited') %>
|
46
|
+
<% end %>
|
47
|
+
|
48
|
+
<% if @watermark_offsets.empty? && params.current_page == 1 %>
|
49
|
+
<%== partial 'explorer/partition/empty' %>
|
50
|
+
<% elsif @watermark_offsets.cleaned? && params.current_page == 1 %>
|
51
|
+
<%== partial 'explorer/partition/cleaned' %>
|
52
|
+
<% elsif @messages.empty? %>
|
53
|
+
<%== partial 'shared/no_paginated_data' %>
|
54
|
+
<% else %>
|
55
|
+
<% content_for :table_metadata do %>
|
56
|
+
<p class="table_metadata">
|
57
|
+
Watermark offsets:
|
58
|
+
<span class="badge badge-secondary mt-1 mb-1">
|
59
|
+
high: <%= @watermark_offsets.high %>
|
60
|
+
</span>
|
61
|
+
|
62
|
+
<span class="badge badge-secondary mt-1 mb-1">
|
63
|
+
low: <%= @watermark_offsets.low %>
|
64
|
+
</span>
|
65
|
+
</p>
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<%== partial('explorer/partition/messages') %>
|
69
|
+
<% end %>
|
49
70
|
</div>
|
@@ -1,33 +1,97 @@
|
|
1
|
-
|
2
|
-
<%== partial 'explorer/message/message_actions' %>
|
1
|
+
<% view_title "Message with offset #{@message.offset} from partition #{@message.partition}" %>
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</h5>
|
9
|
-
<hr/>
|
3
|
+
<%
|
4
|
+
republish_path = root_path('messages', @message.topic, @message.partition, @message.offset, 'republish')
|
5
|
+
surrounding_path = explorer_path(@message.topic, @message.partition, @message.offset, 'surrounding')
|
6
|
+
%>
|
10
7
|
|
11
|
-
|
12
|
-
|
8
|
+
<div class="col-span-12">
|
9
|
+
<section class="actions">
|
10
|
+
<% if @visibility_filter.republish?(@message) %>
|
11
|
+
<form action="<%= republish_path %>" method="post" class="confirm-action float-end">
|
12
|
+
<%== csrf_tag(republish_path) %>
|
13
|
+
<button
|
14
|
+
type="submit"
|
15
|
+
class="btn-action"
|
16
|
+
title="Republish this message to the same topic partition"
|
17
|
+
data-turbo="false"
|
18
|
+
>
|
19
|
+
<%== icon(:arrow_path_rounded) %>
|
20
|
+
</button>
|
21
|
+
</form>
|
22
|
+
<% end %>
|
23
|
+
|
24
|
+
<a
|
25
|
+
href="<%= surrounding_path %>"
|
26
|
+
class="btn-action"
|
27
|
+
title="Go to this message surrounding position"
|
28
|
+
>
|
29
|
+
<%== icon(:arrows_right_left) %>
|
30
|
+
</a>
|
31
|
+
|
32
|
+
|
33
|
+
<% if @visibility_filter.download?(@message) %>
|
34
|
+
<a
|
35
|
+
href="<%= root_path('messages', @message.topic, @message.partition, @message.offset, 'download') %>"
|
36
|
+
class="btn-action"
|
37
|
+
title="Download raw payload"
|
38
|
+
data-turbo="false"
|
39
|
+
>
|
40
|
+
<%== icon(:arrow_down_tray) %>
|
41
|
+
</a>
|
42
|
+
<% end %>
|
13
43
|
|
14
|
-
|
44
|
+
<% if @visibility_filter.export?(@message) && @safe_payload.success? %>
|
45
|
+
<a
|
46
|
+
href="<%= root_path('messages', @message.topic, @message.partition, @message.offset, 'export') %>"
|
47
|
+
class="btn-action"
|
48
|
+
title="Export as JSON"
|
49
|
+
data-turbo="false"
|
50
|
+
>
|
51
|
+
<%== icon(:arrow_down_on_square) %>
|
52
|
+
</a>
|
53
|
+
<% end %>
|
54
|
+
|
55
|
+
<button
|
56
|
+
class="btn-action btn-toggle"
|
57
|
+
title="Show the message metadata details"
|
58
|
+
id="metadata-button"
|
59
|
+
data-toggle-target="metadata-details"
|
60
|
+
>
|
61
|
+
<%== icon(:circle_stack) %>
|
62
|
+
</button>
|
63
|
+
|
64
|
+
<button
|
65
|
+
class="btn-action btn-toggle"
|
66
|
+
title="Show the message utilization details"
|
67
|
+
id="utilization-button"
|
68
|
+
data-toggle-target="utilization-details"
|
69
|
+
>
|
70
|
+
<%== icon(:cpu) %>
|
71
|
+
</button>
|
72
|
+
</section>
|
15
73
|
</div>
|
16
74
|
|
17
|
-
<div class="
|
18
|
-
<div
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
</h5>
|
75
|
+
<div class="col-span-12 mb-6">
|
76
|
+
<div id="utilization-details" class="hidden">
|
77
|
+
<h2 class="h2">
|
78
|
+
Utilization
|
79
|
+
</h2>
|
23
80
|
|
24
|
-
|
81
|
+
<%== partial 'explorer/message/resources_utilization' %>
|
82
|
+
</div>
|
25
83
|
|
26
|
-
|
84
|
+
<div id="metadata-details">
|
85
|
+
<h2 class="h2">
|
86
|
+
Metadata
|
87
|
+
</h2>
|
27
88
|
|
28
|
-
|
29
|
-
</div>
|
89
|
+
<%== partial 'explorer/message/metadata' %>
|
30
90
|
</div>
|
31
91
|
|
92
|
+
<h2 class="h2">
|
93
|
+
Payload
|
94
|
+
</h2>
|
95
|
+
|
32
96
|
<%== partial 'explorer/message/payload' %>
|
33
97
|
</div>
|