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.
- 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 +85 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +30 -25
- data/LICENSE +1 -1
- data/bin/build_assets +51 -0
- data/bin/release +6 -0
- data/config/locales/pro_errors.yml +18 -0
- data/docker-compose.yml +1 -1
- data/gulpfile.js +73 -0
- data/karafka-web.gemspec +2 -2
- data/lib/karafka/web/config.rb +9 -10
- data/lib/karafka/web/contracts/base.rb +2 -0
- data/lib/karafka/web/contracts/config.rb +2 -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 +11 -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 +44 -7
- 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/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 +51 -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/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 +80 -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/report.rb +6 -0
- data/lib/karafka/web/tracking/consumers/listeners/connections.rb +8 -6
- data/lib/karafka/web/tracking/consumers/listeners/processing.rb +2 -0
- 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 +75 -42
- 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/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} +44 -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 +59 -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 +16 -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 +391 -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 +14 -19
- data/lib/karafka/web/ui/views/shared/_navigation.erb +84 -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_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_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 +14 -41
- 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 +52 -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 +53 -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 +4158 -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 +172 -47
- metadata.gz.sig +0 -0
- 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
@@ -1,38 +1,46 @@
|
|
1
|
-
|
1
|
+
<%
|
2
2
|
title = [@topic.consumer_group.name, @topic.subscription_group, @topic.name].join(': ')
|
3
|
-
view_title
|
3
|
+
view_title title
|
4
4
|
%>
|
5
5
|
|
6
|
-
<div class="
|
7
|
-
<
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
%>
|
21
|
-
<% end %>
|
6
|
+
<div class="data-table-wrapper">
|
7
|
+
<table class="data-table">
|
8
|
+
<tbody>
|
9
|
+
<% flat_hash(@topic.subscription_group.kafka).each do |k, v| %>
|
10
|
+
<%==
|
11
|
+
partial(
|
12
|
+
'routing/detail',
|
13
|
+
locals: {
|
14
|
+
k: "kafka.#{k}",
|
15
|
+
v: v
|
16
|
+
}
|
17
|
+
)
|
18
|
+
%>
|
19
|
+
<% end %>
|
22
20
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
21
|
+
<% flat_hash(@topic.to_h.except(:kafka)).each do |k, v| %>
|
22
|
+
<%==
|
23
|
+
partial(
|
24
|
+
'routing/detail',
|
25
|
+
locals: {
|
26
|
+
k: k,
|
27
|
+
v: v
|
28
|
+
}
|
29
|
+
)
|
30
|
+
%>
|
31
|
+
<% end %>
|
32
|
+
|
33
|
+
<% flat_hash(@topic.subscription_group.multiplexing.to_h).each do |k, v| %>
|
34
|
+
<%==
|
35
|
+
partial(
|
36
|
+
'routing/detail',
|
37
|
+
locals: {
|
38
|
+
k: "multiplexing.#{k}",
|
39
|
+
v: v
|
40
|
+
}
|
41
|
+
)
|
42
|
+
%>
|
43
|
+
<% end %>
|
44
|
+
</tbody>
|
45
|
+
</table>
|
38
46
|
</div>
|
@@ -0,0 +1,71 @@
|
|
1
|
+
<div id="search-metadata-details" class="hidden">
|
2
|
+
<div class="data-table-wrapper">
|
3
|
+
<table class="data-table">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th colspan="2">Summary</th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<tr>
|
11
|
+
<td>Total Messages Checked</td>
|
12
|
+
<td><%= @search_details[:totals][:checked] %></td>
|
13
|
+
</tr>
|
14
|
+
<tr>
|
15
|
+
<td>Matches</td>
|
16
|
+
<td><%= @search_details[:totals][:matched] %></td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<td>Search Time</td>
|
20
|
+
<td><%= (@search_details[:totals][:time_taken] / 1000).round(1) %> second</td>
|
21
|
+
</tr>
|
22
|
+
</tbody>
|
23
|
+
</table>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="data-table-wrapper">
|
27
|
+
<table class="data-table">
|
28
|
+
<thead>
|
29
|
+
<tr>
|
30
|
+
<th>Partition</th>
|
31
|
+
<th>Messages Checked</th>
|
32
|
+
<th>Offsets</th>
|
33
|
+
<th>Lookup Range</th>
|
34
|
+
<th>Matches</th>
|
35
|
+
</tr>
|
36
|
+
</thead>
|
37
|
+
<tbody>
|
38
|
+
<% @search_details[:partitions].sort.to_h.each do |k, v| %>
|
39
|
+
<tr>
|
40
|
+
<td>Partition <%= k %></td>
|
41
|
+
<td><%= v[:checked] %></td>
|
42
|
+
<% if v[:first_message] %>
|
43
|
+
<td>
|
44
|
+
<%= v[:first_message].offset %>
|
45
|
+
-
|
46
|
+
<%= v[:last_message].offset %>
|
47
|
+
</td>
|
48
|
+
<td>
|
49
|
+
<%
|
50
|
+
time_s = (
|
51
|
+
v[:last_message].timestamp.to_f - v[:first_message].timestamp.to_f
|
52
|
+
).round(2)
|
53
|
+
%>
|
54
|
+
<span title="<%= time_s %> seconds">
|
55
|
+
<%=
|
56
|
+
human_readable_time(time_s)
|
57
|
+
%>
|
58
|
+
</span>
|
59
|
+
</td>
|
60
|
+
<td><%= v[:matched] %></td>
|
61
|
+
<% else %>
|
62
|
+
<td>N/A</td>
|
63
|
+
<td>N/A</td>
|
64
|
+
<td>N/A</td>
|
65
|
+
<% end %>
|
66
|
+
</tr>
|
67
|
+
<% end %>
|
68
|
+
</tbody>
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
</div>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<div class="col-span-4">
|
2
|
+
<section class="actions">
|
3
|
+
<button class="btn-action" id="show-search-modal">
|
4
|
+
<%== icon(:magnifying_glass) %>
|
5
|
+
</button>
|
6
|
+
|
7
|
+
<% if @search_criteria && @errors.empty? %>
|
8
|
+
<button
|
9
|
+
class="btn-action"
|
10
|
+
type="button"
|
11
|
+
id="toggle-search-metadata"
|
12
|
+
title="Display search metadata details"
|
13
|
+
>
|
14
|
+
<%== icon(:chart_bar) %>
|
15
|
+
</button>
|
16
|
+
<% end %>
|
17
|
+
</section>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="col-span-8">
|
21
|
+
<section class="items-center text-end text-gray-700 text-end mt-1 mb-2">
|
22
|
+
<% if @search_criteria && @errors.empty? %>
|
23
|
+
Search criteria:
|
24
|
+
|
25
|
+
<% params.current_search.each do |key, values| %>
|
26
|
+
<span class="badge badge-secondary">
|
27
|
+
<%= key.gsub('_', ' ') %>:
|
28
|
+
<% if values.is_a?(Hash) %>
|
29
|
+
<%= Array(values.values).join(', ') %>
|
30
|
+
<% else %>
|
31
|
+
<%= Array(values).join(', ') %>
|
32
|
+
<% end %>
|
33
|
+
</span>
|
34
|
+
<% end %>
|
35
|
+
<% end %>
|
36
|
+
</section>
|
37
|
+
</div>
|
@@ -0,0 +1,139 @@
|
|
1
|
+
<%
|
2
|
+
# We do not want to use any additional gems. That's why this is done that way
|
3
|
+
phrase = @current_search[:phrase]
|
4
|
+
partitions = @current_search[:partitions]
|
5
|
+
limit = @current_search[:limit]
|
6
|
+
offset_type = @current_search[:offset_type]
|
7
|
+
offset = @current_search[:offset]
|
8
|
+
timestamp = @current_search[:timestamp]
|
9
|
+
matcher = @current_search[:matcher]
|
10
|
+
%>
|
11
|
+
|
12
|
+
<dialog id="messages_search_modal" class="modal">
|
13
|
+
<form method="dialog" class="modal-backdrop">
|
14
|
+
<button class="cursor-default"></button>
|
15
|
+
</form>
|
16
|
+
|
17
|
+
<div class="modal-box modal-box w-11/12 max-w-3xl">
|
18
|
+
<form method="dialog" class="modal-backdrop">
|
19
|
+
<button class="btn-action btn-ghost absolute right-4 top-4">
|
20
|
+
<%== icon(:x_mark) %>
|
21
|
+
</button>
|
22
|
+
</form>
|
23
|
+
|
24
|
+
<h3 class="text-lg mb-3">Edit Search Parameters</h3>
|
25
|
+
|
26
|
+
<hr />
|
27
|
+
|
28
|
+
<form
|
29
|
+
id="messages-search-form"
|
30
|
+
class="space-y-4 mt-3 w-full"
|
31
|
+
method="get"
|
32
|
+
action="<%= explorer_path(@topic_id, 'search') %>"
|
33
|
+
>
|
34
|
+
<% if @errors.any? %>
|
35
|
+
<% alert_box_error('Please fix the following errors:') do %>
|
36
|
+
<ul class="list-disc list-inside">
|
37
|
+
<% @errors.each do |key, error| %>
|
38
|
+
<li><%= key %>: <%= error %></li>
|
39
|
+
<% end %>
|
40
|
+
</ul>
|
41
|
+
<% end %>
|
42
|
+
<% end %>
|
43
|
+
|
44
|
+
<div class="flex items-center w-full">
|
45
|
+
<label for="input-field" class="w-1/3 text-gray-700">Matcher:</label>
|
46
|
+
|
47
|
+
<select
|
48
|
+
class="w-2/3 block select select-bordered"
|
49
|
+
id="matcher"
|
50
|
+
name="search[matcher]"
|
51
|
+
required
|
52
|
+
>
|
53
|
+
<% @matchers.each do |available_matcher| %>
|
54
|
+
<option value="<%= available_matcher.name %>" <%= 'selected' if matcher == available_matcher.name %>>
|
55
|
+
<%= available_matcher.name %>
|
56
|
+
</option>
|
57
|
+
<% end %>
|
58
|
+
</select>
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<div class="flex items-center w-full">
|
62
|
+
<label for="input-field" class="w-1/3 text-gray-700">Phrase:</label>
|
63
|
+
|
64
|
+
<input
|
65
|
+
type="text"
|
66
|
+
class="w-2/3 block input input-bordered"
|
67
|
+
id="phrase"
|
68
|
+
name="search[phrase]"
|
69
|
+
value="<%= phrase %>"
|
70
|
+
placeholder="Enter phrase to search for"
|
71
|
+
required
|
72
|
+
>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<div class="flex items-center w-full">
|
76
|
+
<label for="input-field" class="w-1/3 text-gray-700">Partitions:</label>
|
77
|
+
|
78
|
+
<select
|
79
|
+
class="w-2/3 block select select-bordered p-4"
|
80
|
+
id="partitions"
|
81
|
+
name="search[partitions][]"
|
82
|
+
multiple
|
83
|
+
required
|
84
|
+
>
|
85
|
+
<%
|
86
|
+
partitions << params.current_partition.to_s unless params.current_partition.negative?
|
87
|
+
%>
|
88
|
+
|
89
|
+
<option value="all" <%= 'selected' if partitions.include?('all') || partitions.empty? %>>All</option>
|
90
|
+
<% @partitions_count.times do |i| %>
|
91
|
+
<option value="<%= i %>" <%= 'selected' if partitions.include?(i.to_s) %>>
|
92
|
+
Partition <%= i %>
|
93
|
+
</option>
|
94
|
+
<% end %>
|
95
|
+
</select>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div class="flex items-center w-full">
|
99
|
+
<label for="input-field" class="w-1/3 text-gray-700">Offset:</label>
|
100
|
+
|
101
|
+
<div class="flex flex-col space-y-2 w-2/3">
|
102
|
+
<label class="flex items-center space-x-2">
|
103
|
+
<input type="radio" class="radio" name="search[offset_type]" id="offset-latest" value="latest" <%= 'checked' if offset_type == 'latest' || offset_type.empty? %>>
|
104
|
+
<span>Latest</span>
|
105
|
+
</label>
|
106
|
+
<label class="flex items-center space-x-2">
|
107
|
+
<input type="radio" class="radio" name="search[offset_type]" id="offset-value" value="offset" <%= 'checked' if offset_type == 'offset' %>>
|
108
|
+
<span>Offset</span>
|
109
|
+
</label>
|
110
|
+
<input type="number" value="<%= offset %>" class="input input-bordered mt-2" id="offset-input" name="search[offset]" min="0" disabled>
|
111
|
+
<label class="flex items-center space-x-2">
|
112
|
+
<input type="radio" class="radio" name="search[offset_type]" id="offset-timestamp" value="timestamp" <%= 'checked' if offset_type == 'timestamp' %>>
|
113
|
+
<span>Timestamp (in ms)</span>
|
114
|
+
</label>
|
115
|
+
<input type="number" value="<%= timestamp %>" class="input input-bordered mt-2" id="offset-timestamp-input" name="search[timestamp]" min="0" max="<%= ((Time.now.to_f + 60 * 60 * 24 * 31) * 1_000).to_i %>" disabled>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div class="flex items-center w-full">
|
120
|
+
<label for="input-field" class="w-1/3 text-gray-700">Messages:</label>
|
121
|
+
|
122
|
+
<select class="w-2/3 block select select-bordered" id="limit" name="search[limit]" required>
|
123
|
+
<% @limits.each do |available_limit| %>
|
124
|
+
<option value="<%= available_limit %>" <%= 'selected' if limit == available_limit %>>
|
125
|
+
<%= available_limit %>
|
126
|
+
</option>
|
127
|
+
<% end %>
|
128
|
+
</select>
|
129
|
+
</div>
|
130
|
+
|
131
|
+
<div class="form-control text-center">
|
132
|
+
<button type="submit" class="btn btn-primary">
|
133
|
+
<%== icon(:magnifying_glass) %>
|
134
|
+
Search
|
135
|
+
</button>
|
136
|
+
</div>
|
137
|
+
</form>
|
138
|
+
</div>
|
139
|
+
</dialog>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<% view_title @search_criteria ? "Search Results from #{@topic_id}" : @topic_id %>
|
2
|
+
|
3
|
+
<%== partial 'search/search_criteria' %>
|
4
|
+
|
5
|
+
<div class="col-span-12">
|
6
|
+
<% unless @search_criteria %>
|
7
|
+
<%== partial 'search/no_search_criteria' %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% if @messages && @search_details[:stop_reason] == :timeout %>
|
11
|
+
<%== partial 'search/timeout' %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if @errors.any? %>
|
15
|
+
<%== partial 'search/fix_errors' %>
|
16
|
+
<% elsif @messages %>
|
17
|
+
<%== partial 'search/metadata' %>
|
18
|
+
|
19
|
+
<% if @messages.empty? && params.current_page == 1 %>
|
20
|
+
<%== partial 'search/no_results' %>
|
21
|
+
<% elsif @messages.empty? %>
|
22
|
+
<%== partial 'shared/no_paginated_data' %>
|
23
|
+
<% else %>
|
24
|
+
<%== partial('explorer/partition/messages') %>
|
25
|
+
<% end %>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<%== partial 'search/search_modal' %>
|
@@ -1,73 +1,125 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
</button>
|
1
|
+
<nav class="sidebar-nav">
|
2
|
+
<%== partial 'shared/brand' %>
|
4
3
|
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
<ul class="menu">
|
5
|
+
<li>
|
6
|
+
<a
|
7
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/dashboard') %>"
|
8
|
+
href="<%= root_path('dashboard') %>"
|
9
|
+
>
|
10
|
+
<%== icon(:home) %>
|
9
11
|
Dashboard
|
10
12
|
</a>
|
11
13
|
</li>
|
12
14
|
|
13
|
-
<li
|
14
|
-
<a
|
15
|
+
<li>
|
16
|
+
<a
|
17
|
+
class="sidebar-nav-item <%= nav_class(match: /\A\/(consumers|commands)/) %>"
|
18
|
+
href="<%= root_path('consumers') %>"
|
19
|
+
>
|
20
|
+
<%== icon(:cpu) %>
|
15
21
|
Consumers
|
16
22
|
</a>
|
17
23
|
</li>
|
18
24
|
|
19
|
-
<li
|
20
|
-
<a
|
25
|
+
<li>
|
26
|
+
<a
|
27
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/jobs') %>"
|
28
|
+
href="<%= root_path('jobs/running') %>"
|
29
|
+
>
|
30
|
+
<%== icon(:arrow_on_squares) %>
|
21
31
|
Jobs
|
22
32
|
</a>
|
23
33
|
</li>
|
24
34
|
|
25
|
-
<li
|
26
|
-
<a
|
35
|
+
<li>
|
36
|
+
<a
|
37
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/health') %>"
|
38
|
+
href="<%= root_path('health/overview') %>"
|
39
|
+
>
|
40
|
+
<%== icon(:heart) %>
|
27
41
|
Health
|
28
42
|
</a>
|
29
43
|
</li>
|
30
44
|
|
31
|
-
<li
|
32
|
-
<a
|
45
|
+
<li>
|
46
|
+
<a
|
47
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/routing') %>"
|
48
|
+
href="<%= root_path('routing') %>"
|
49
|
+
>
|
50
|
+
<%== icon(:queue_list) %>
|
33
51
|
Routing
|
34
52
|
</a>
|
35
53
|
</li>
|
36
54
|
|
37
|
-
<li
|
38
|
-
<a
|
55
|
+
<li>
|
56
|
+
<a
|
57
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/explorer') %>"
|
58
|
+
href="<%= root_path('explorer') %>"
|
59
|
+
>
|
60
|
+
<%== icon(:document_glass) %>
|
39
61
|
Explorer
|
40
62
|
</a>
|
41
63
|
</li>
|
42
64
|
|
43
|
-
<li
|
44
|
-
<a
|
65
|
+
<li>
|
66
|
+
<a
|
67
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/errors') %>"
|
68
|
+
href="<%= root_path('errors') %>"
|
69
|
+
>
|
70
|
+
<%== icon(:bug) %>
|
45
71
|
Errors
|
46
72
|
</a>
|
47
73
|
</li>
|
48
74
|
|
49
|
-
<li
|
50
|
-
<a
|
75
|
+
<li>
|
76
|
+
<a
|
77
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/dlq') %>"
|
78
|
+
href="<%= root_path('dlq') %>"
|
79
|
+
>
|
80
|
+
<%== icon(:x_circle) %>
|
51
81
|
Dead
|
52
82
|
</a>
|
53
83
|
</li>
|
54
84
|
|
55
|
-
<li
|
56
|
-
<a
|
85
|
+
<li>
|
86
|
+
<a
|
87
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/cluster') %>"
|
88
|
+
href="<%= root_path('cluster') %>"
|
89
|
+
>
|
90
|
+
<%== icon(:blocks) %>
|
57
91
|
Cluster
|
58
92
|
</a>
|
59
93
|
</li>
|
60
94
|
|
61
|
-
<li
|
62
|
-
<a
|
95
|
+
<li>
|
96
|
+
<a
|
97
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/topics') %>"
|
98
|
+
href="<%= root_path('topics') %>"
|
99
|
+
>
|
100
|
+
<%== icon(:list_bullets) %>
|
63
101
|
Topics
|
64
102
|
</a>
|
65
103
|
</li>
|
66
104
|
|
67
|
-
<li
|
68
|
-
<a
|
105
|
+
<li>
|
106
|
+
<a
|
107
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/status') %>"
|
108
|
+
href="<%= root_path('status') %>"
|
109
|
+
>
|
110
|
+
<%== icon(:check_badge) %>
|
69
111
|
Status
|
70
112
|
</a>
|
71
113
|
</li>
|
114
|
+
|
115
|
+
<li>
|
116
|
+
<a
|
117
|
+
class="sidebar-nav-item <%= nav_class(start_with: '/support') %>"
|
118
|
+
href="<%= root_path('support') %>"
|
119
|
+
>
|
120
|
+
<%== icon(:lifebuoy) %>
|
121
|
+
Support
|
122
|
+
</a>
|
123
|
+
</li>
|
72
124
|
</ul>
|
73
|
-
</
|
125
|
+
</nav>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<li
|
1
|
+
<li>
|
2
2
|
<a href="<%= root_path('topics') %>">
|
3
|
-
Topics
|
3
|
+
Topics
|
4
4
|
</a>
|
5
5
|
</li>
|
6
6
|
|
7
7
|
<% if @topic %>
|
8
|
-
<li
|
8
|
+
<li>
|
9
9
|
<a href="<%= root_path('topics', @topic.topic_name, 'config') %>">
|
10
10
|
<%= @topic.topic_name %>
|
11
11
|
</a>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% if @configs %>
|
16
|
-
<li
|
16
|
+
<li>
|
17
17
|
<a href="<%= root_path('topics', @topic.topic_name, 'config') %>">
|
18
18
|
Configuration
|
19
19
|
</a>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<% end %>
|
22
22
|
|
23
23
|
<% if @partitions %>
|
24
|
-
<li
|
24
|
+
<li>
|
25
25
|
<a href="<%= root_path('topics', @topic.topic_name, 'replication') %>">
|
26
26
|
Replication
|
27
27
|
</a>
|
@@ -29,9 +29,17 @@
|
|
29
29
|
<% end %>
|
30
30
|
|
31
31
|
<% if @distribution %>
|
32
|
-
<li
|
32
|
+
<li>
|
33
33
|
<a href="<%= root_path('topics', @topic.topic_name, 'distribution') %>">
|
34
34
|
Distribution
|
35
35
|
</a>
|
36
36
|
</li>
|
37
37
|
<% end %>
|
38
|
+
|
39
|
+
<% if @offsets %>
|
40
|
+
<li>
|
41
|
+
<a href="<%= root_path('topics', @topic.topic_name, 'offsets') %>">
|
42
|
+
Offsets
|
43
|
+
</a>
|
44
|
+
</li>
|
45
|
+
<% end %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<tr>
|
2
|
+
<td>
|
3
|
+
<a href="<%= explorer_path(@topic[:topic_name], partition_offsets[:partition_id]) %>">
|
4
|
+
<%= partition_offsets[:partition_id] %>
|
5
|
+
</a>
|
6
|
+
</td>
|
7
|
+
<td><%= partition_offsets[:low] %></td>
|
8
|
+
<td><%= partition_offsets[:high] %></td>
|
9
|
+
<td><%= partition_offsets[:diff] %></td>
|
10
|
+
</tr>
|
@@ -1,37 +1,31 @@
|
|
1
|
-
<div class="container">
|
2
|
-
<div class="
|
3
|
-
<
|
1
|
+
<div class="tab-container-wrapper">
|
2
|
+
<div class="tab-container">
|
3
|
+
<a
|
4
|
+
href="<%= root_path('topics', @topic.topic_name, 'config') %>"
|
5
|
+
class="custom-tab <%= nav_class(end_with: 'config') %>"
|
6
|
+
>
|
7
|
+
Configuration
|
8
|
+
</a>
|
4
9
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Configuration
|
12
|
-
</a>
|
13
|
-
</li>
|
10
|
+
<a
|
11
|
+
href="<%= root_path('topics', @topic.topic_name, 'replication') %>"
|
12
|
+
class="custom-tab <%= nav_class(end_with: 'replication') %>"
|
13
|
+
>
|
14
|
+
Replication
|
15
|
+
</a>
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
</a>
|
22
|
-
</li>
|
17
|
+
<a
|
18
|
+
href="<%= root_path('topics', @topic.topic_name, 'distribution') %>"
|
19
|
+
class="custom-tab <%= nav_class(end_with: 'distribution') %>"
|
20
|
+
>
|
21
|
+
Distribution
|
22
|
+
</a>
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
</a>
|
31
|
-
</li>
|
32
|
-
|
33
|
-
</ul>
|
34
|
-
|
35
|
-
</div>
|
24
|
+
<a
|
25
|
+
href="<%= root_path('topics', @topic.topic_name, 'offsets') %>"
|
26
|
+
class="custom-tab <%= nav_class(end_with: 'offsets') %>"
|
27
|
+
>
|
28
|
+
Offsets
|
29
|
+
</a>
|
36
30
|
</div>
|
37
31
|
</div>
|