karafka-web 0.9.0 → 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 +88 -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 +10 -14
- 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,145 +1,126 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="
|
3
|
-
<div class="
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<p class="card-text">
|
9
|
-
<ul style="list-style: square !important;">
|
10
|
-
<li class="align-items-center d-flex justify-content-between">
|
11
|
-
Status:
|
12
|
-
<span class="badge <%= status_bg @process.status %>">
|
13
|
-
<%= @process.status %>
|
14
|
-
</span>
|
15
|
-
</li>
|
16
|
-
<li class="align-items-center d-flex justify-content-between">
|
17
|
-
Started:
|
18
|
-
<span class="badge bg-secondary">
|
19
|
-
<%== relative_time @process.started_at %>
|
20
|
-
</span>
|
21
|
-
</li>
|
1
|
+
<div id="metrics" class="w-full">
|
2
|
+
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-4 gap-4 mb-6">
|
3
|
+
<div class="card-metric">
|
4
|
+
<h3>Process</h3>
|
5
|
+
<ul>
|
6
|
+
<li>
|
7
|
+
Status:
|
22
8
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
</span>
|
28
|
-
</li>
|
29
|
-
</ul>
|
30
|
-
</p>
|
9
|
+
<span class="badge <%= status_badge @process.status %>">
|
10
|
+
<%= @process.status %>
|
11
|
+
</span>
|
12
|
+
</li>
|
31
13
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
</div>
|
39
|
-
<div class="card">
|
40
|
-
<div class="card-body">
|
41
|
-
<h5 class="card-title">Utilization</h5>
|
42
|
-
<p class="card-text">
|
43
|
-
<ul style="list-style: square !important;">
|
44
|
-
<li class="align-items-center d-flex justify-content-between">
|
45
|
-
Workers:
|
46
|
-
<span class="badge bg-primary">
|
47
|
-
<%= @process.workers %>
|
48
|
-
</span>
|
49
|
-
</li>
|
50
|
-
<li class="align-items-center d-flex justify-content-between">
|
51
|
-
Utilization:
|
52
|
-
<span class="badge bg-primary">
|
53
|
-
<%= @process.utilization.round(2) %>%
|
54
|
-
</span>
|
55
|
-
</li>
|
56
|
-
<li class="align-items-center d-flex justify-content-between">
|
57
|
-
CPUs:
|
58
|
-
<span class="badge bg-primary">
|
59
|
-
<%= @process.cpus %>
|
60
|
-
</span>
|
61
|
-
</li>
|
62
|
-
<li class="align-items-center d-flex justify-content-between">
|
63
|
-
CPU usage:
|
64
|
-
<% @process.cpu_usage.each_with_index do |usage, i| %>
|
65
|
-
<span class="badge bg-primary">
|
66
|
-
<%= usage %>
|
67
|
-
</span>
|
14
|
+
<li>
|
15
|
+
Started:
|
16
|
+
<span class="badge badge-secondary">
|
17
|
+
<%== relative_time @process.started_at %>
|
18
|
+
</span>
|
19
|
+
</li>
|
68
20
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<div class="card">
|
77
|
-
<div class="card-body">
|
78
|
-
<h5 class="card-title">Memory usage</h5>
|
79
|
-
<p class="card-text">
|
80
|
-
<ul style="list-style: square !important;">
|
81
|
-
<li class="align-items-center d-flex justify-content-between">
|
82
|
-
RSS:
|
83
|
-
<span class="badge bg-primary">
|
84
|
-
<%= format_memory @process.memory_usage %>
|
85
|
-
</span>
|
86
|
-
</li>
|
87
|
-
<li class="align-items-center d-flex justify-content-between">
|
88
|
-
OS memory used:
|
89
|
-
<span class="badge bg-primary">
|
90
|
-
<%= format_memory @process.memory_total_usage %>
|
91
|
-
</span>
|
92
|
-
</li>
|
93
|
-
<li class="align-items-center d-flex justify-content-between">
|
94
|
-
OS memory available:
|
95
|
-
<span class="badge bg-primary">
|
96
|
-
<%= format_memory @process.memory_size %>
|
97
|
-
</span>
|
98
|
-
</li>
|
99
|
-
</ul>
|
100
|
-
</p>
|
101
|
-
</div>
|
102
|
-
</div>
|
103
|
-
<div class="card">
|
104
|
-
<div class="card-body">
|
105
|
-
<h5 class="card-title">Versions</h5>
|
106
|
-
<p class="card-text text-center">
|
107
|
-
<span class="badge bg-secondary">
|
108
|
-
<%= @process.ruby %>
|
109
|
-
</span>
|
21
|
+
<li>
|
22
|
+
State from:
|
23
|
+
<span class="badge badge-secondary">
|
24
|
+
<%== relative_time @process.dispatched_at %>
|
25
|
+
</span>
|
26
|
+
</li>
|
27
|
+
</ul>
|
110
28
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
29
|
+
<% unless @process.tags.empty? %>
|
30
|
+
<p class="mt-4 text-right">
|
31
|
+
<%== tags(@process.tags) %>
|
32
|
+
</p>
|
33
|
+
<% end %>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div class="card-metric">
|
37
|
+
<h3>Utilization</h3>
|
38
|
+
<ul>
|
39
|
+
<li>
|
40
|
+
Workers:
|
41
|
+
<span class="badge badge-primary">
|
42
|
+
<%= @process.workers %>
|
43
|
+
</span>
|
44
|
+
</li>
|
45
|
+
<li>
|
46
|
+
Utilization:
|
47
|
+
<span class="badge badge-primary">
|
48
|
+
<%= @process.utilization.round(2) %>%
|
49
|
+
</span>
|
50
|
+
</li>
|
51
|
+
<li>
|
52
|
+
CPUs:
|
53
|
+
<span class="badge badge-primary">
|
54
|
+
<%= @process.cpus %>
|
55
|
+
</span>
|
56
|
+
</li>
|
57
|
+
<li>
|
58
|
+
CPU usage:
|
59
|
+
<% @process.cpu_usage.each_with_index do |usage, i| %>
|
60
|
+
<span class="badge badge-primary">
|
61
|
+
<%= usage %>
|
62
|
+
</span>
|
63
|
+
<%= i < 2 ? '/' : '' %>
|
64
|
+
<% end %>
|
65
|
+
</li>
|
66
|
+
</ul>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="card-metric">
|
70
|
+
<h3>Memory usage</h3>
|
71
|
+
<ul>
|
72
|
+
<li>
|
73
|
+
RSS:
|
74
|
+
<span class="badge badge-primary">
|
75
|
+
<%= format_memory @process.memory_usage %>
|
76
|
+
</span>
|
77
|
+
</li>
|
78
|
+
<li>
|
79
|
+
OS memory used:
|
80
|
+
<span class="badge badge-primary">
|
81
|
+
<%= format_memory @process.memory_total_usage %>
|
82
|
+
</span>
|
83
|
+
</li>
|
84
|
+
<li>
|
85
|
+
OS memory available:
|
86
|
+
<span class="badge badge-primary">
|
87
|
+
<%= format_memory @process.memory_size %>
|
88
|
+
</span>
|
89
|
+
</li>
|
90
|
+
</ul>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<div class="card-metric">
|
94
|
+
<h3>Versions</h3>
|
95
|
+
|
96
|
+
<div class="text-center">
|
97
|
+
<span class="badge badge-secondary">
|
98
|
+
<%= @process.ruby %>
|
99
|
+
</span>
|
100
|
+
|
101
|
+
<span class="badge badge-secondary">
|
102
|
+
karafka <%= @process.karafka %>
|
103
|
+
</span>
|
115
104
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
</span>
|
105
|
+
<span class="badge badge-secondary">
|
106
|
+
karafka-web <%= @process.karafka_web %>
|
107
|
+
</span>
|
120
108
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
</span>
|
109
|
+
<span class="badge badge-secondary">
|
110
|
+
karafka-core <%= @process.karafka_core %>
|
111
|
+
</span>
|
125
112
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
</span>
|
113
|
+
<span class="badge badge-secondary">
|
114
|
+
rdkafka <%= @process.rdkafka %>
|
115
|
+
</span>
|
130
116
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
</span>
|
117
|
+
<span class="badge badge-secondary">
|
118
|
+
librdkafka <%= @process.librdkafka %>
|
119
|
+
</span>
|
135
120
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
</span>
|
140
|
-
</p>
|
141
|
-
</div>
|
142
|
-
</div>
|
121
|
+
<span class="badge badge-secondary">
|
122
|
+
waterdrop <%= @process.waterdrop %>
|
123
|
+
</span>
|
143
124
|
</div>
|
144
125
|
</div>
|
145
126
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<tr class="
|
1
|
+
<tr class="<%= lso_risk_state_bg(partition) %>">
|
2
2
|
<td>
|
3
3
|
<%= partition.id %>
|
4
4
|
</td>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<%== lag_with_label partition.lag_hybrid %>
|
7
7
|
</td>
|
8
8
|
<td>
|
9
|
-
<span class="badge <%=
|
9
|
+
<span class="badge <%= lag_trend_badge(partition.lag_hybrid_d) %>">
|
10
10
|
<%= partition.lag_hybrid_d %>
|
11
11
|
</span>
|
12
12
|
</td>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<%== offset_with_label topic.name, partition.id, partition.stored_offset %>
|
22
22
|
</td>
|
23
23
|
<td>
|
24
|
-
<span class="badge <%=
|
24
|
+
<span class="badge <%= kafka_state_badge(partition.fetch_state) %>">
|
25
25
|
<%= partition.fetch_state %>
|
26
26
|
</span>
|
27
27
|
</td>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<%== poll_state_with_change_time_label(partition.poll_state, partition.poll_state_ch) %>
|
30
30
|
</td>
|
31
31
|
<td>
|
32
|
-
<span class="badge
|
32
|
+
<span class="badge badge-success <%= lso_risk_state_badge(partition) %>">
|
33
33
|
<%= partition.lso_risk_state %>
|
34
34
|
</span>
|
35
35
|
</td>
|
@@ -1,10 +1,7 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
</div>
|
8
|
-
</div>
|
9
|
-
</div>
|
1
|
+
<div class="mb-6">
|
2
|
+
<%==
|
3
|
+
alert_error(
|
4
|
+
'This process has been stopped. The state presented here shows the last report available.'
|
5
|
+
)
|
6
|
+
%>
|
10
7
|
</div>
|
@@ -1,145 +1,135 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<%= subscription_group.id %>
|
6
|
-
</h6>
|
1
|
+
<h2 class="h2 mb-3">
|
2
|
+
<%= consumer_group.id %> /
|
3
|
+
<%= subscription_group.id %>
|
4
|
+
</h2>
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
<div class="card-detail-container">
|
7
|
+
<div class="card-detail">
|
8
|
+
<div class="card-detail-body">
|
9
|
+
State
|
10
|
+
<span class="badge badge-sm <%= kafka_state_badge(subscription_group[:state][:state]) %>">
|
11
|
+
<%= subscription_group[:state][:state] %>
|
12
|
+
</span>
|
13
|
+
</div>
|
14
|
+
</div>
|
17
15
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<span class="badge <%= kafka_state_bg(subscription_group.join_state) %> mt-1 mb-1">
|
22
|
-
<%= subscription_group.join_state %>
|
23
|
-
</span>
|
24
|
-
</div>
|
25
|
-
</div>
|
16
|
+
<div class="card-detail">
|
17
|
+
<div class="card-detail-body">
|
18
|
+
Join state
|
26
19
|
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
relative_time(
|
33
|
-
Time.at(@process.dispatched_at) - (subscription_group.stateage / 1_000.0)
|
34
|
-
)
|
35
|
-
%>
|
36
|
-
</span>
|
37
|
-
</div>
|
38
|
-
</div>
|
20
|
+
<span class="badge badge-sm <%= kafka_state_badge(subscription_group.join_state) %>">
|
21
|
+
<%= subscription_group.join_state %>
|
22
|
+
</span>
|
23
|
+
</div>
|
24
|
+
</div>
|
39
25
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
26
|
+
<div class="card-detail">
|
27
|
+
<div class="card-detail-body">
|
28
|
+
State change
|
29
|
+
<%==
|
30
|
+
badge_secondary_sm(
|
31
|
+
relative_time(
|
32
|
+
Time.at(@process.dispatched_at) - (subscription_group.stateage / 1_000.0)
|
33
|
+
)
|
34
|
+
)
|
35
|
+
%>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="card-detail">
|
40
|
+
<div class="card-detail-body">
|
41
|
+
Last Poll
|
42
|
+
<%==
|
43
|
+
badge_secondary_sm(
|
44
|
+
relative_time(
|
45
|
+
Time.at(@process.dispatched_at) - (subscription_group.poll_age / 1_000.0)
|
46
|
+
)
|
47
|
+
)
|
48
|
+
%>
|
49
|
+
</div>
|
50
|
+
</div>
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
52
|
+
<div class="card-detail">
|
53
|
+
<div class="card-detail-body">
|
54
|
+
Last rebalance
|
55
|
+
<%==
|
56
|
+
badge_secondary_sm(
|
57
|
+
relative_time(
|
58
|
+
Time.at(@process.dispatched_at) - (subscription_group.rebalance_age / 1_000.0)
|
59
|
+
)
|
60
|
+
)
|
61
|
+
%>
|
62
|
+
</div>
|
63
|
+
</div>
|
65
64
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<%= subscription_group.rebalance_cnt %>
|
71
|
-
</span>
|
72
|
-
</div>
|
73
|
-
</div>
|
65
|
+
<div class="card-detail">
|
66
|
+
<div class="card-detail-body">
|
67
|
+
Rebalance count
|
68
|
+
<%== badge_secondary_sm(subscription_group.rebalance_cnt) %>
|
74
69
|
</div>
|
75
70
|
</div>
|
71
|
+
</div>
|
76
72
|
|
77
|
-
|
78
|
-
|
79
|
-
|
73
|
+
<div class="text-right mt-3 mb-4">
|
74
|
+
<small>
|
75
|
+
Last rebalance reason:
|
80
76
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
</span>
|
77
|
+
<% if subscription_group.rebalance_reason.empty? %>
|
78
|
+
Unknown
|
79
|
+
<% else %>
|
80
|
+
<%= subscription_group.rebalance_reason %>
|
81
|
+
<% end %>
|
82
|
+
</small>
|
88
83
|
</div>
|
89
84
|
|
85
|
+
|
90
86
|
<% if subscription_group.topics.empty? %>
|
91
|
-
<div class="
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
%>
|
96
|
-
</div>
|
87
|
+
<div class="mb-6">
|
88
|
+
<%==
|
89
|
+
alert_info('This process does not consume any messages from any topics of this subscription group.')
|
90
|
+
%>
|
97
91
|
</div>
|
98
92
|
<% else %>
|
99
93
|
<% subscription_group.topics.each do |topic| %>
|
100
|
-
<div class="
|
101
|
-
<
|
102
|
-
<
|
103
|
-
<
|
104
|
-
<
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
</
|
111
|
-
<
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<% end %>
|
140
|
-
</tbody>
|
141
|
-
</table>
|
142
|
-
</div>
|
94
|
+
<div class="data-table-wrapper">
|
95
|
+
<table class="data-table">
|
96
|
+
<thead>
|
97
|
+
<tr>
|
98
|
+
<th colspan="10">
|
99
|
+
<%= topic.name %>
|
100
|
+
</th>
|
101
|
+
</tr>
|
102
|
+
<tr>
|
103
|
+
<th rowspan="2"><%== sort_link('Partition', :id) %></th>
|
104
|
+
<th colspan="2">Lag</th>
|
105
|
+
<th colspan="2">Offsets</th>
|
106
|
+
<th colspan="10">States</th>
|
107
|
+
</tr>
|
108
|
+
<tr>
|
109
|
+
<th><%== sort_link(:lag_hybrid) %></th>
|
110
|
+
<th><%== sort_link('Trend', :lag_hybrid_d) %></th>
|
111
|
+
<th><%== sort_link(:committed_offset) %></th>
|
112
|
+
<th><%== sort_link(:stored_offset) %></th>
|
113
|
+
<th><%== sort_link(:fetch_state) %></th>
|
114
|
+
<th><%== sort_link(:poll_state) %></th>
|
115
|
+
<th><%== sort_link(:lso_risk_state) %></th>
|
116
|
+
</tr>
|
117
|
+
</thead>
|
118
|
+
<tbody>
|
119
|
+
<% topic.partitions.each do |partition| %>
|
120
|
+
<%==
|
121
|
+
partial(
|
122
|
+
'consumers/consumer/partition',
|
123
|
+
locals: {
|
124
|
+
topic: topic,
|
125
|
+
partition: partition,
|
126
|
+
subscription_group: subscription_group
|
127
|
+
}
|
128
|
+
)
|
129
|
+
%>
|
130
|
+
<% end %>
|
131
|
+
</tbody>
|
132
|
+
</table>
|
143
133
|
</div>
|
144
134
|
<% end %>
|
145
135
|
<% end %>
|
@@ -1,36 +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('consumers', @process.id, 'subscriptions') %>"
|
5
|
+
class="custom-tab <%= nav_class(include: 'subscriptions') %>"
|
6
|
+
>
|
7
|
+
Subscriptions (<%= @process.subscribed_partitions_count %>)
|
8
|
+
</a>
|
4
9
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</li>
|
10
|
+
<a
|
11
|
+
href="<%= root_path('consumers', @process.id, 'jobs', 'running') %>"
|
12
|
+
class="custom-tab <%= nav_class(include: 'jobs/running') %>"
|
13
|
+
>
|
14
|
+
Running jobs (<%= @process.jobs.running.count %>)
|
15
|
+
</a>
|
12
16
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
<a
|
18
|
+
href="<%= root_path('consumers', @process.id, 'jobs', 'pending') %>"
|
19
|
+
class="custom-tab <%= nav_class(include: 'jobs/pending') %>"
|
20
|
+
>
|
21
|
+
Pending jobs (<%= @process.jobs.pending.count %>)
|
22
|
+
</a>
|
19
23
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
<li class="nav-item">
|
28
|
-
<a class="nav-link <%= nav_class(include: 'details') %>" href="<%= root_path('consumers', @process.id, 'details') %>">
|
29
|
-
Details
|
30
|
-
</a>
|
31
|
-
</li>
|
32
|
-
</ul>
|
33
|
-
|
34
|
-
</div>
|
24
|
+
<a
|
25
|
+
href="<%= root_path('consumers', @process.id, 'details') %>"
|
26
|
+
class="custom-tab <%= nav_class(include: 'details') %>"
|
27
|
+
>
|
28
|
+
Details
|
29
|
+
</a>
|
35
30
|
</div>
|
36
31
|
</div>
|