karafka-web 0.8.2 → 0.9.0.rc2
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 +5 -16
- data/CHANGELOG.md +40 -0
- data/Gemfile.lock +21 -23
- data/LICENSE +3 -3
- data/bin/rspecs +1 -1
- data/config/locales/pro_errors.yml +11 -0
- data/config/locales/slogans.yml +62 -0
- data/docker-compose.yml +1 -1
- data/karafka-web.gemspec +4 -2
- data/lib/karafka/web/app.rb +1 -1
- data/lib/karafka/web/config.rb +23 -3
- data/lib/karafka/web/contracts/config.rb +7 -1
- data/lib/karafka/web/management/actions/create_topics.rb +21 -0
- data/lib/karafka/web/management/actions/delete_topics.rb +1 -0
- data/lib/karafka/web/management/actions/enable.rb +12 -6
- data/lib/karafka/web/management/migrations/0_base.rb +1 -1
- data/lib/karafka/web/pro/commanding/commands/base.rb +33 -0
- data/lib/karafka/web/pro/commanding/commands/probe.rb +41 -0
- data/lib/karafka/web/pro/commanding/commands/quiet.rb +31 -0
- data/lib/karafka/web/pro/commanding/commands/stop.rb +31 -0
- data/lib/karafka/web/pro/commanding/config.rb +51 -0
- data/lib/karafka/web/pro/commanding/contracts/config.rb +56 -0
- data/lib/karafka/web/pro/commanding/dispatcher.rb +93 -0
- data/lib/karafka/web/pro/commanding/listener.rb +97 -0
- data/lib/karafka/web/pro/commanding/manager.rb +98 -0
- data/lib/karafka/web/pro/commanding/matcher.rb +50 -0
- data/lib/karafka/web/pro/commanding.rb +40 -0
- data/lib/karafka/web/pro/loader.rb +40 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/app.rb +103 -22
- data/lib/karafka/web/{ui/pro/controllers/cluster.rb → pro/ui/controllers/base_controller.rb} +4 -5
- data/lib/karafka/web/pro/ui/controllers/cluster_controller.rb +54 -0
- data/lib/karafka/web/pro/ui/controllers/commanding_controller.rb +118 -0
- data/lib/karafka/web/pro/ui/controllers/commands_controller.rb +96 -0
- data/lib/karafka/web/{ui/pro/controllers/consumers.rb → pro/ui/controllers/consumers_controller.rb} +31 -4
- data/lib/karafka/web/{ui/pro/controllers/dashboard.rb → pro/ui/controllers/dashboard_controller.rb} +5 -3
- data/lib/karafka/web/pro/ui/controllers/dlq_controller.rb +60 -0
- data/lib/karafka/web/{ui/pro/controllers/errors.rb → pro/ui/controllers/errors_controller.rb} +5 -7
- data/lib/karafka/web/{ui/pro/controllers/explorer.rb → pro/ui/controllers/explorer_controller.rb} +24 -19
- data/lib/karafka/web/{ui/pro/controllers/health.rb → pro/ui/controllers/health_controller.rb} +16 -3
- data/lib/karafka/web/{ui/pro/controllers/jobs.rb → pro/ui/controllers/jobs_controller.rb} +4 -4
- data/lib/karafka/web/{ui/pro/controllers/messages.rb → pro/ui/controllers/messages_controller.rb} +8 -6
- data/lib/karafka/web/{ui/pro/controllers/routing.rb → pro/ui/controllers/routing_controller.rb} +6 -22
- data/lib/karafka/web/{ui/pro/controllers/status.rb → pro/ui/controllers/status_controller.rb} +3 -3
- data/lib/karafka/web/pro/ui/controllers/topics_controller.rb +99 -0
- data/lib/karafka/web/pro/ui/lib/patterns_detector.rb +50 -0
- data/lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb +29 -0
- data/lib/karafka/web/pro/ui/views/cluster/_broker.erb +13 -0
- data/lib/karafka/web/pro/ui/views/cluster/_config.erb +13 -0
- data/lib/karafka/web/pro/ui/views/cluster/_tabs.erb +27 -0
- data/lib/karafka/web/pro/ui/views/cluster/brokers.erb +27 -0
- data/lib/karafka/web/pro/ui/views/cluster/index.erb +27 -0
- data/lib/karafka/web/pro/ui/views/cluster/show.erb +27 -0
- data/lib/karafka/web/pro/ui/views/commands/_backtrace.erb +20 -0
- data/lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb +21 -0
- data/lib/karafka/web/pro/ui/views/commands/_command.erb +60 -0
- data/lib/karafka/web/pro/ui/views/commands/_command_details.erb +11 -0
- data/lib/karafka/web/pro/ui/views/commands/_details.erb +26 -0
- data/lib/karafka/web/pro/ui/views/commands/_empty.erb +3 -0
- data/lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb +14 -0
- data/lib/karafka/web/pro/ui/views/commands/_metadata.erb +50 -0
- data/lib/karafka/web/pro/ui/views/commands/_table.erb +23 -0
- data/lib/karafka/web/pro/ui/views/commands/index.erb +17 -0
- data/lib/karafka/web/pro/ui/views/commands/show.erb +38 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/_breadcrumbs.erb +20 -4
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/_consumer.erb +2 -21
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +78 -0
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb +59 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/_counters.erb +7 -5
- data/lib/karafka/web/pro/ui/views/consumers/_tabs.erb +35 -0
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +32 -0
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_no_jobs.erb +7 -0
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_no_subscriptions.erb +7 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_subscription_group.erb +13 -8
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb +5 -0
- data/lib/karafka/web/pro/ui/views/consumers/controls.erb +67 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/details.erb +6 -1
- data/lib/karafka/web/pro/ui/views/consumers/index.erb +39 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/pending_jobs.erb +15 -7
- data/lib/karafka/web/pro/ui/views/consumers/performance.erb +52 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/running_jobs.erb +15 -7
- data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/subscriptions.erb +6 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/dashboard/index.erb +10 -10
- data/lib/karafka/web/pro/ui/views/dlq/_no_topics.erb +7 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/dlq/index.erb +1 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/_error.erb +2 -6
- data/lib/karafka/web/pro/ui/views/errors/_table.erb +23 -0
- data/lib/karafka/web/pro/ui/views/explorer/_failed_deserialization.erb +4 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/_message.erb +7 -1
- data/lib/karafka/web/pro/ui/views/explorer/_no_topics.erb +5 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/index.erb +1 -6
- data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/message/_metadata.erb +33 -9
- data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/message/_payload.erb +4 -4
- data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/message/_payload_actions.erb +1 -1
- data/lib/karafka/web/pro/ui/views/explorer/messages/_headers.erb +33 -0
- data/lib/karafka/web/pro/ui/views/explorer/messages/_key.erb +20 -0
- data/lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb +5 -0
- data/lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb +5 -0
- data/lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb +21 -0
- data/lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb +5 -0
- data/lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb +10 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_breadcrumbs.erb +8 -0
- data/lib/karafka/web/pro/ui/views/health/_no_data.erb +7 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_partition.erb +1 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_partition_lags.erb +6 -3
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_tabs.erb +11 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/changes.erb +13 -8
- data/lib/karafka/web/pro/ui/views/health/cluster_lags.erb +54 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/lags.erb +14 -8
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/offsets.erb +15 -12
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/overview.erb +21 -7
- data/lib/karafka/web/{ui/pro → pro/ui}/views/jobs/_job.erb +1 -1
- data/lib/karafka/web/pro/ui/views/jobs/_no_jobs.erb +7 -0
- data/lib/karafka/web/{ui/pro → pro/ui}/views/jobs/pending.erb +12 -8
- data/lib/karafka/web/{ui/pro → pro/ui}/views/jobs/running.erb +12 -8
- data/lib/karafka/web/{ui/pro → pro/ui}/views/routing/_consumer_group.erb +2 -2
- data/lib/karafka/web/{ui/pro → pro/ui}/views/routing/index.erb +1 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/routing/show.erb +1 -1
- data/lib/karafka/web/{ui/pro → pro/ui}/views/shared/_navigation.erb +14 -0
- data/lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb +37 -0
- data/lib/karafka/web/pro/ui/views/topics/_partition.erb +16 -0
- data/lib/karafka/web/pro/ui/views/topics/_tabs.erb +37 -0
- data/lib/karafka/web/pro/ui/views/topics/_topic.erb +12 -0
- data/lib/karafka/web/pro/ui/views/topics/config.erb +29 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution/_badges.erb +7 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution/_chart.erb +2 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution/_empty_partitions.erb +1 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb +10 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution/_partition.erb +10 -0
- data/lib/karafka/web/pro/ui/views/topics/distribution.erb +47 -0
- data/lib/karafka/web/pro/ui/views/topics/index.erb +16 -0
- data/lib/karafka/web/pro/ui/views/topics/replication.erb +28 -0
- data/lib/karafka/web/processing/consumers/aggregators/base.rb +1 -1
- data/lib/karafka/web/processing/consumers/aggregators/metrics.rb +1 -1
- data/lib/karafka/web/processing/consumers/aggregators/state.rb +4 -4
- data/lib/karafka/web/tracking/consumers/contracts/report.rb +1 -1
- data/lib/karafka/web/tracking/consumers/listeners/booting.rb +3 -1
- data/lib/karafka/web/tracking/consumers/listeners/errors.rb +2 -2
- data/lib/karafka/web/tracking/consumers/reporter.rb +3 -3
- data/lib/karafka/web/tracking/consumers/sampler.rb +2 -2
- data/lib/karafka/web/tracking/contracts/error.rb +1 -1
- data/lib/karafka/web/tracking/producers/listeners/booting.rb +3 -1
- data/lib/karafka/web/tracking/producers/listeners/errors.rb +2 -2
- data/lib/karafka/web/tracking/producers/reporter.rb +1 -1
- data/lib/karafka/web/tracking/producers/sampler.rb +1 -1
- data/lib/karafka/web/tracking/sampler.rb +3 -3
- data/lib/karafka/web/ui/app.rb +13 -9
- data/lib/karafka/web/ui/base.rb +1 -0
- data/lib/karafka/web/ui/controllers/{base.rb → base_controller.rb} +15 -2
- data/lib/karafka/web/ui/controllers/{become_pro.rb → become_pro_controller.rb} +1 -1
- data/lib/karafka/web/ui/controllers/{cluster.rb → cluster_controller.rb} +4 -4
- data/lib/karafka/web/ui/controllers/{consumers.rb → consumers_controller.rb} +3 -3
- data/lib/karafka/web/ui/controllers/{dashboard.rb → dashboard_controller.rb} +1 -1
- data/lib/karafka/web/ui/controllers/{errors.rb → errors_controller.rb} +2 -2
- data/lib/karafka/web/ui/controllers/{jobs.rb → jobs_controller.rb} +5 -5
- data/lib/karafka/web/ui/controllers/{routing.rb → routing_controller.rb} +2 -2
- data/lib/karafka/web/ui/controllers/{status.rb → status_controller.rb} +1 -1
- data/lib/karafka/web/ui/helpers/alerts_helper.rb +23 -0
- data/lib/karafka/web/ui/helpers/application_helper.rb +53 -1
- data/lib/karafka/web/ui/lib/paginations/offset_based.rb +3 -4
- data/lib/karafka/web/ui/lib/safe_runner.rb +59 -0
- data/lib/karafka/web/ui/models/broker.rb +66 -0
- data/lib/karafka/web/ui/models/health.rb +28 -2
- data/lib/karafka/web/ui/models/message.rb +9 -3
- data/lib/karafka/web/ui/models/process.rb +10 -5
- data/lib/karafka/web/ui/models/processes.rb +2 -2
- data/lib/karafka/web/ui/models/status.rb +1 -1
- data/lib/karafka/web/ui/models/topic.rb +78 -0
- data/lib/karafka/web/ui/public/javascripts/application.js +18 -1
- data/lib/karafka/web/ui/public/javascripts/charts/data_formatting_utility.js +71 -0
- data/lib/karafka/web/ui/public/javascripts/charts/dataset_state_manager.js +49 -0
- data/lib/karafka/web/ui/public/javascripts/charts/types/bar.js +123 -0
- data/lib/karafka/web/ui/public/javascripts/charts/types/line.js +143 -0
- data/lib/karafka/web/ui/public/javascripts/charts.js +10 -325
- data/lib/karafka/web/ui/public/javascripts/live_poll.js +5 -5
- data/lib/karafka/web/ui/public/javascripts/tabs_manager.js +57 -0
- data/lib/karafka/web/ui/public/stylesheets/application.css +7 -6
- data/lib/karafka/web/ui/views/cluster/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/ui/views/cluster/_no_partitions.erb +1 -3
- data/lib/karafka/web/ui/views/cluster/_tabs.erb +3 -3
- data/lib/karafka/web/ui/views/cluster/brokers.erb +19 -19
- data/lib/karafka/web/ui/views/cluster/replication.erb +37 -0
- data/lib/karafka/web/ui/views/consumers/_assignments_badges.erb +24 -0
- data/lib/karafka/web/ui/views/consumers/_consumer.erb +2 -15
- data/lib/karafka/web/ui/views/consumers/_counters.erb +1 -1
- data/lib/karafka/web/ui/views/consumers/_summary.erb +5 -5
- data/lib/karafka/web/ui/views/consumers/index.erb +22 -20
- data/lib/karafka/web/ui/views/dashboard/index.erb +9 -9
- data/lib/karafka/web/ui/views/errors/_cleaned.erb +1 -3
- data/lib/karafka/web/ui/views/errors/_error.erb +2 -6
- data/lib/karafka/web/ui/views/errors/_no_errors.erb +1 -3
- data/lib/karafka/web/ui/views/errors/index.erb +22 -20
- data/lib/karafka/web/ui/views/jobs/_job.erb +4 -1
- data/lib/karafka/web/ui/views/jobs/_no_jobs.erb +1 -3
- data/lib/karafka/web/ui/views/jobs/pending.erb +4 -3
- data/lib/karafka/web/ui/views/jobs/running.erb +4 -3
- data/lib/karafka/web/ui/views/routing/_consumer_group.erb +2 -2
- data/lib/karafka/web/ui/views/routing/index.erb +1 -1
- data/lib/karafka/web/ui/views/routing/show.erb +1 -1
- data/lib/karafka/web/ui/views/shared/_become_pro.erb +3 -3
- data/lib/karafka/web/ui/views/shared/_header.erb +16 -10
- data/lib/karafka/web/ui/views/shared/_navigation.erb +17 -3
- data/lib/karafka/web/ui/views/shared/_not_a_message.erb +5 -0
- data/lib/karafka/web/ui/views/shared/alerts/_info.erb +3 -0
- data/lib/karafka/web/ui/views/shared/charts/_bar.erb +7 -0
- data/lib/karafka/web/ui/views/shared/{_chart.erb → charts/_line.erb} +1 -1
- data/lib/karafka/web/ui/views/shared/exceptions/not_found.erb +1 -1
- data/lib/karafka/web/ui/views/status/show.erb +1 -1
- data/lib/karafka/web/version.rb +1 -1
- data/lib/karafka/web.rb +17 -1
- data.tar.gz.sig +0 -0
- metadata +189 -120
- metadata.gz.sig +0 -0
- data/lib/karafka/web/ui/pro/controllers/dlq.rb +0 -43
- data/lib/karafka/web/ui/pro/views/consumers/consumer/_no_jobs.erb +0 -9
- data/lib/karafka/web/ui/pro/views/consumers/consumer/_no_subscriptions.erb +0 -9
- data/lib/karafka/web/ui/pro/views/consumers/index.erb +0 -36
- data/lib/karafka/web/ui/pro/views/dlq/_no_topics.erb +0 -9
- data/lib/karafka/web/ui/pro/views/errors/_table.erb +0 -21
- data/lib/karafka/web/ui/pro/views/explorer/_failed_deserialization.erb +0 -4
- data/lib/karafka/web/ui/pro/views/explorer/_no_topics.erb +0 -7
- data/lib/karafka/web/ui/pro/views/explorer/messages/_headers.erb +0 -15
- data/lib/karafka/web/ui/pro/views/explorer/messages/_key.erb +0 -12
- data/lib/karafka/web/ui/pro/views/explorer/partition/_cleaned.erb +0 -3
- data/lib/karafka/web/ui/pro/views/explorer/partition/_empty.erb +0 -3
- data/lib/karafka/web/ui/pro/views/explorer/partition/_messages.erb +0 -19
- data/lib/karafka/web/ui/pro/views/explorer/topic/_empty.erb +0 -3
- data/lib/karafka/web/ui/pro/views/explorer/topic/_limited.erb +0 -4
- data/lib/karafka/web/ui/pro/views/health/_no_data.erb +0 -9
- data/lib/karafka/web/ui/pro/views/jobs/_no_jobs.erb +0 -9
- data/lib/karafka/web/ui/public/javascripts/tabs.js +0 -59
- data/lib/karafka/web/ui/views/cluster/topics.erb +0 -35
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_consumer_group.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_job.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_metrics.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_partition.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_stopped.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/consumers/consumer/_tabs.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/dlq/_breadcrumbs.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/dlq/_topic.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/_breadcrumbs.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/_partition_option.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/_title_with_select.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/index.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/partition.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/errors/show.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/_breadcrumbs.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/_filtered.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/_partition_option.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/_topic.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/message/_message_actions.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/messages/_detail.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/partition/_details.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/partition.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/show.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/topic/_details.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/explorer/topic.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_consumer_group_header.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_partition_offset.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/health/_partition_times.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/routing/_detail.erb +0 -0
- /data/lib/karafka/web/{ui/pro → pro/ui}/views/routing/_topic.erb +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{bootstrap.min.js → libs/bootstrap.min.js} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{chart.min.js → libs/chart.min.js} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{datepicker.js → libs/datepicker.js} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{highlight.min.js → libs/highlight.min.js} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{timeago.min.js → libs/timeago.min.js} +0 -0
- /data/lib/karafka/web/ui/public/stylesheets/{bootstrap.min.css → libs/bootstrap.min.css} +0 -0
- /data/lib/karafka/web/ui/public/stylesheets/{datepicker.min.css → libs/datepicker.min.css} +0 -0
- /data/lib/karafka/web/ui/public/stylesheets/{highlight.min.css → libs/highlight.min.css} +0 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
<% if command_message.is_a?(Array) %>
|
2
|
+
<%== partial 'shared/not_a_message' %>
|
3
|
+
<% else %>
|
4
|
+
<% command = command_message.payload %>
|
5
|
+
|
6
|
+
<% if command[:schema_version] == @schema_version %>
|
7
|
+
<tr>
|
8
|
+
<td>
|
9
|
+
<% color = command[:type] == 'result' ? 'success' : 'primary' %>
|
10
|
+
<span class="badge bg-<%= color %> badge-topic">
|
11
|
+
<%= command[:type] %>
|
12
|
+
</span>
|
13
|
+
</td>
|
14
|
+
|
15
|
+
<td>
|
16
|
+
<%
|
17
|
+
color = case command[:command][:name]
|
18
|
+
when 'probe'
|
19
|
+
'secondary'
|
20
|
+
when 'quiet'
|
21
|
+
'warning'
|
22
|
+
when 'stop'
|
23
|
+
'danger'
|
24
|
+
else
|
25
|
+
'secondary'
|
26
|
+
end
|
27
|
+
%>
|
28
|
+
<span class="badge bg-<%= color %> badge-topic">
|
29
|
+
<%= command[:command][:name] %>
|
30
|
+
</span>
|
31
|
+
</td>
|
32
|
+
|
33
|
+
<td>
|
34
|
+
<% if command[:process][:id] == '*' %>
|
35
|
+
*
|
36
|
+
<% else %>
|
37
|
+
<a href="<%= root_path('consumers', command[:process][:id], 'subscriptions') %>">
|
38
|
+
<%= truncate(command[:process][:id], strategy: :middle) %>
|
39
|
+
</a>
|
40
|
+
<% end %>
|
41
|
+
</td>
|
42
|
+
|
43
|
+
<td>
|
44
|
+
<%== relative_time command[:dispatched_at] %>
|
45
|
+
</td>
|
46
|
+
|
47
|
+
<td class="text-center">
|
48
|
+
<a href="<%= root_path('commands', command_message.offset) %>" class="btn btn-sm btn-secondary text-white">
|
49
|
+
Details
|
50
|
+
</a>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
<% else %>
|
54
|
+
<tr>
|
55
|
+
<td colspan="100" class="text-center text-muted">
|
56
|
+
Incompatible command schema. This command message schema does not match the Karafka Web UI schema.
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<% end %>
|
60
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<div class="row mb-5">
|
3
|
+
<div class="col-sm-12">
|
4
|
+
<div class="card">
|
5
|
+
<div class="card-body">
|
6
|
+
<pre class="m-0 p-0"><code class="wrapped json p-0 m-0"><%= JSON.pretty_generate command %></code></pre>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<div class="container mb-4">
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-sm-6 ms-0 ps-0">
|
4
|
+
<% if @command_messages && !@command_messages.empty? %>
|
5
|
+
<a
|
6
|
+
href="<%= root_path('commands', 'recent') %>"
|
7
|
+
class="btn btn-secondary btn-sm"
|
8
|
+
title="Display the most recent command"
|
9
|
+
>
|
10
|
+
→ Recent
|
11
|
+
</a>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="col-sm-6 text-end me-0 pe-0">
|
16
|
+
Watermark offsets:
|
17
|
+
<span class="badge bg-secondary mt-1 mb-1">
|
18
|
+
high: <%= @watermark_offsets.high %>
|
19
|
+
</span>
|
20
|
+
|
21
|
+
<span class="badge bg-secondary mt-1 mb-1">
|
22
|
+
low: <%= @watermark_offsets.low %>
|
23
|
+
</span>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<div class="row mb-5">
|
3
|
+
<div class="col-sm-12">
|
4
|
+
|
5
|
+
<div class="alert alert-danger" role="alert">
|
6
|
+
<h4 class="alert-heading">Incompatible Command Schema</h4>
|
7
|
+
<p class="mb-1">
|
8
|
+
This issue occurs when the Web UI and consumer processes use different command schemas, preventing the display of command details. It arises from version mismatches, where either the Web UI or the consumer processes are outdated. To resolve this, ensure both components use compatible versions with the same schema.
|
9
|
+
</p>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
</div>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<%
|
2
|
+
process_id = command[:process][:id]
|
3
|
+
%>
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row mb-4">
|
7
|
+
<div class="col-sm-12">
|
8
|
+
<h4 class="mb-2">
|
9
|
+
Metadata
|
10
|
+
</h4>
|
11
|
+
<hr/>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div class="row mb-5">
|
16
|
+
<div class="col-sm-12 table-responsive">
|
17
|
+
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
18
|
+
<tbody>
|
19
|
+
<tr>
|
20
|
+
<td>Type</td>
|
21
|
+
<td><%== command[:type] %></td>
|
22
|
+
</tr>
|
23
|
+
|
24
|
+
<tr>
|
25
|
+
<td>Name</td>
|
26
|
+
<td><%== command[:command][:name] %></td>
|
27
|
+
</tr>
|
28
|
+
|
29
|
+
<tr>
|
30
|
+
<td>Dispatched</td>
|
31
|
+
<td><%== relative_time command[:dispatched_at] %></td>
|
32
|
+
</tr>
|
33
|
+
<tr>
|
34
|
+
<td>Process</td>
|
35
|
+
<td>
|
36
|
+
<% command = command %>
|
37
|
+
<% if process_id == '*' %>
|
38
|
+
<%= process_id %>
|
39
|
+
<% else %>
|
40
|
+
<a href="<%= root_path('consumers', process_id, 'subscriptions') %>">
|
41
|
+
<%= process_id %>
|
42
|
+
</a>
|
43
|
+
<% end %>
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
3
|
+
<thead>
|
4
|
+
<tr class="align-middle">
|
5
|
+
<th>Type</th>
|
6
|
+
<th>Name</th>
|
7
|
+
<th>ID</th>
|
8
|
+
<th>Dispatched</th>
|
9
|
+
<th></th>
|
10
|
+
</tr>
|
11
|
+
</thead>
|
12
|
+
|
13
|
+
<tbody>
|
14
|
+
<%==
|
15
|
+
each_partial(
|
16
|
+
@command_messages,
|
17
|
+
'commands/command',
|
18
|
+
local: :command_message
|
19
|
+
)
|
20
|
+
%>
|
21
|
+
</tbody>
|
22
|
+
</table>
|
23
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%== view_title('Consumers Commands and Responses') %>
|
2
|
+
|
3
|
+
<%== partial 'consumers/tabs' %>
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row mb-5">
|
7
|
+
<div class="col-sm-12">
|
8
|
+
<%== partial('commands/details') %>
|
9
|
+
|
10
|
+
<% if @command_messages.empty? && params.current_page == 1 %>
|
11
|
+
<%== partial 'commands/empty' %>
|
12
|
+
<% else %>
|
13
|
+
<%== partial 'commands/table' %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<% command = @command_message.payload %>
|
2
|
+
|
3
|
+
<% if command[:schema_version] == @schema_version %>
|
4
|
+
<%== view_title("#{command[:command][:name]} #{command[:type]} #{@command_message.key}") %>
|
5
|
+
|
6
|
+
<%== partial 'consumers/tabs' %>
|
7
|
+
|
8
|
+
<%== partial 'commands/metadata', locals: { command: command } %>
|
9
|
+
|
10
|
+
<div class="container">
|
11
|
+
<div class="row mb-4">
|
12
|
+
<div class="col-sm-12">
|
13
|
+
<h4 class="mb-2">
|
14
|
+
<% if command[:type] == 'command' %>
|
15
|
+
Details
|
16
|
+
<% else %>
|
17
|
+
Backtraces
|
18
|
+
<% end %>
|
19
|
+
</h4>
|
20
|
+
<hr/>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<% if command[:type] == 'command' %>
|
26
|
+
<%== partial 'commands/command_details', locals: { command: command } %>
|
27
|
+
<% else %>
|
28
|
+
<% command[:result].each_value do |backtrace| %>
|
29
|
+
<%== partial 'commands/backtrace', locals: { backtrace: backtrace } %>
|
30
|
+
<% end %>
|
31
|
+
<% end %>
|
32
|
+
<% else %>
|
33
|
+
<%== view_title('Incompatible Command Schema') %>
|
34
|
+
|
35
|
+
<%== partial 'consumers/tabs' %>
|
36
|
+
|
37
|
+
<%== partial 'commands/incompatible_schema' %>
|
38
|
+
<% end %>
|
@@ -1,13 +1,29 @@
|
|
1
|
-
|
1
|
+
<li class="breadcrumb-item">
|
2
|
+
<a href="<%= root_path('consumers/overview') %>">
|
3
|
+
Consumers
|
4
|
+
</a>
|
5
|
+
</li>
|
6
|
+
|
7
|
+
<% if current_path.include?('/performance') %>
|
2
8
|
<li class="breadcrumb-item">
|
3
|
-
<a href="<%= root_path('consumers') %>">
|
4
|
-
|
9
|
+
<a href="<%= root_path('consumers', 'performance') %>">
|
10
|
+
Performance
|
5
11
|
</a>
|
6
12
|
</li>
|
13
|
+
<% end %>
|
7
14
|
|
15
|
+
<% if current_path.include?('/controls') %>
|
16
|
+
<li class="breadcrumb-item">
|
17
|
+
<a href="<%= root_path('consumers', 'controls') %>">
|
18
|
+
Controls
|
19
|
+
</a>
|
20
|
+
</li>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<% if @process %>
|
8
24
|
<li class="breadcrumb-item">
|
9
25
|
<a href="<%= root_path('consumers', @process.id, 'subscriptions') %>">
|
10
|
-
|
26
|
+
<%== truncate(@process.id, strategy: :middle) %>
|
11
27
|
</a>
|
12
28
|
</li>
|
13
29
|
|
@@ -5,30 +5,11 @@
|
|
5
5
|
</div>
|
6
6
|
|
7
7
|
<a href="<%= root_path('consumers', process.id, 'subscriptions') %>">
|
8
|
-
|
8
|
+
<%== truncate(process.id, strategy: :middle) %>
|
9
9
|
</a>
|
10
10
|
|
11
11
|
<p class="mt-0 mb-1">
|
12
|
-
|
13
|
-
<% sg_topics = Hash.new { |h, k| h[k] = [] } %>
|
14
|
-
|
15
|
-
<% consumer_group.subscription_groups.each do |subscription_group| %>
|
16
|
-
<% subscription_group.topics.each do |topic| %>
|
17
|
-
<% sg_topics[topic.name] << topic.partitions.map(&:id) %>
|
18
|
-
<% end %>
|
19
|
-
<% end %>
|
20
|
-
|
21
|
-
<% sg_topics.each do |topic_name, partitions| %>
|
22
|
-
<span class="badge bg-secondary badge-topic" title="Consumer group: <%= consumer_group.id %>">
|
23
|
-
<%= topic_name %>:
|
24
|
-
<% if partitions.size > 10 %>
|
25
|
-
<%= "#{partitions.sort.first(10).join(',')}..." %>
|
26
|
-
<% else %>
|
27
|
-
<%= partitions.sort.join(',') %>
|
28
|
-
<% end %>
|
29
|
-
</span>
|
30
|
-
<% end %>
|
31
|
-
<% end %>
|
12
|
+
<%== partial 'consumers/assignments_badges', locals: { process: process } %>
|
32
13
|
</p>
|
33
14
|
|
34
15
|
<p class="mt-0 mb-1">
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<tr class="status-row-<%= process.status %>">
|
2
|
+
<td>
|
3
|
+
<a href="<%= root_path('consumers', process.id, 'subscriptions') %>">
|
4
|
+
<%== truncate(process.id, strategy: :middle) %>
|
5
|
+
</a>
|
6
|
+
|
7
|
+
<p class="mt-0 mb-1">
|
8
|
+
<%== tags(process.tags) %>
|
9
|
+
</p>
|
10
|
+
</td>
|
11
|
+
|
12
|
+
<td>
|
13
|
+
<div class="badge badge-topic <%= status_bg(process.status) %>">
|
14
|
+
<%= process.status %>
|
15
|
+
</div>
|
16
|
+
</td>
|
17
|
+
|
18
|
+
<td>
|
19
|
+
<p class="mt-0 mb-1">
|
20
|
+
<%== partial 'consumers/assignments_badges', locals: { process: process } %>
|
21
|
+
</p>
|
22
|
+
</td>
|
23
|
+
|
24
|
+
<td>
|
25
|
+
<%== relative_time process.started_at %>
|
26
|
+
</td>
|
27
|
+
|
28
|
+
<td>
|
29
|
+
<span class="badge bg-primary badge-topic">
|
30
|
+
<%= format_memory process.memory_usage %>
|
31
|
+
</span>
|
32
|
+
</td>
|
33
|
+
|
34
|
+
<td>
|
35
|
+
<span class="badge bg-primary badge-topic">
|
36
|
+
<%= process.utilization.round(1) %>%
|
37
|
+
</span>
|
38
|
+
<span class="badge bg-primary badge-topic">
|
39
|
+
<%= process.workers %> /
|
40
|
+
<%= process.busy %>
|
41
|
+
</span>
|
42
|
+
</td>
|
43
|
+
|
44
|
+
<td>
|
45
|
+
<%= process.lag_hybrid %>
|
46
|
+
</td>
|
47
|
+
|
48
|
+
<td>
|
49
|
+
<div class="d-flex flex-nowrap justify-content-end">
|
50
|
+
<%
|
51
|
+
probe_path = root_path('commanding', process.id, 'probe')
|
52
|
+
disabled_class = process.status != 'stopped' ? '' : 'disabled'
|
53
|
+
%>
|
54
|
+
<form action="<%= probe_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
55
|
+
<%== csrf_tag(probe_path) %>
|
56
|
+
<input type="submit" value="⚙ Probe" class="btn btn-secondary btn-sm <%= disabled_class %>"/>
|
57
|
+
</form>
|
58
|
+
|
59
|
+
<%
|
60
|
+
quiet_path = root_path('commanding', process.id, 'quiet')
|
61
|
+
disabled_class = process.status == 'running' ? '' : 'disabled'
|
62
|
+
%>
|
63
|
+
<form action="<%= quiet_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
64
|
+
<%== csrf_tag(quiet_path) %>
|
65
|
+
<input type="submit" value="⏸ Quiet" class="btn btn-warning btn-sm <%= disabled_class %>"/>
|
66
|
+
</form>
|
67
|
+
|
68
|
+
<%
|
69
|
+
stop_path = root_path('commanding', process.id, 'stop')
|
70
|
+
disabled_class = process.status != 'stopping' && process.status != 'stopped' ? '' : 'disabled'
|
71
|
+
%>
|
72
|
+
<form action="<%= stop_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
73
|
+
<%== csrf_tag(stop_path) %>
|
74
|
+
<input type="submit" value="■ Stop" class="btn btn-danger btn-sm <%= disabled_class %>"/>
|
75
|
+
</form>
|
76
|
+
</div>
|
77
|
+
</td>
|
78
|
+
</tr>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<tr class="status-row-<%= process.status %>">
|
2
|
+
<td>
|
3
|
+
<a href="<%= root_path('consumers', process.id, 'subscriptions') %>">
|
4
|
+
<%== truncate(process.id, strategy: :middle) %>
|
5
|
+
</a>
|
6
|
+
|
7
|
+
<p class="mt-0 mb-1">
|
8
|
+
<%== tags(process.tags) %>
|
9
|
+
</p>
|
10
|
+
</td>
|
11
|
+
|
12
|
+
<td>
|
13
|
+
<%= format_memory process.memory_usage %>
|
14
|
+
</td>
|
15
|
+
|
16
|
+
<td>
|
17
|
+
<%= process.utilization.round(1) %>%
|
18
|
+
</td>
|
19
|
+
|
20
|
+
<td>
|
21
|
+
<%= process.threads %>
|
22
|
+
</td>
|
23
|
+
|
24
|
+
<td>
|
25
|
+
<%= process.cpu_usage[0].to_f %>
|
26
|
+
</td>
|
27
|
+
|
28
|
+
<td>
|
29
|
+
<%= process.cpu_usage[1].to_f %>
|
30
|
+
</td>
|
31
|
+
|
32
|
+
<td>
|
33
|
+
<%= process.cpu_usage[2].to_f %>
|
34
|
+
</td>
|
35
|
+
|
36
|
+
<td>
|
37
|
+
<%= process.workers %>
|
38
|
+
</td>
|
39
|
+
|
40
|
+
<td>
|
41
|
+
<%= process.busy %>
|
42
|
+
</td>
|
43
|
+
|
44
|
+
<td>
|
45
|
+
<%= process.listeners.fetch(:active) %>
|
46
|
+
</td>
|
47
|
+
|
48
|
+
<td>
|
49
|
+
<%= process.listeners.fetch(:standby) %>
|
50
|
+
</td>
|
51
|
+
|
52
|
+
<td>
|
53
|
+
<%= process.jobs.running.count %>
|
54
|
+
</td>
|
55
|
+
|
56
|
+
<td>
|
57
|
+
<%= process.jobs.pending.count %>
|
58
|
+
</td>
|
59
|
+
</tr>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div id="
|
1
|
+
<div id="refreshable" class="container mb-5 counters">
|
2
2
|
<div class="row">
|
3
3
|
<div class="col-sm-12">
|
4
4
|
<div class="card">
|
@@ -18,10 +18,12 @@
|
|
18
18
|
<div class="desc">Batches</div>
|
19
19
|
</li>
|
20
20
|
<li class="col-sm">
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
<a href="<%= root_path('health/lags') %>">
|
22
|
+
<div class="count mb-1">
|
23
|
+
<%= number_with_delimiter @counters.lag_hybrid, ' ' %>
|
24
|
+
</div>
|
25
|
+
<div class="desc">Total lag</div>
|
26
|
+
</a>
|
25
27
|
</li>
|
26
28
|
<li class="col-sm">
|
27
29
|
<a href="<%= root_path('jobs/running') %>">
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="container">
|
2
|
+
<div class="row mb-4">
|
3
|
+
<div class="col-sm-12 mb-4">
|
4
|
+
|
5
|
+
<ul class="nav nav-tabs">
|
6
|
+
<li class="nav-item">
|
7
|
+
<a class="nav-link <%= nav_class(include: 'overview') %>" href="<%= root_path('consumers', 'overview') %>">
|
8
|
+
Overview
|
9
|
+
</a>
|
10
|
+
</li>
|
11
|
+
|
12
|
+
<li class="nav-item">
|
13
|
+
<a class="nav-link <%= nav_class(include: 'performance') %>" href="<%= root_path('consumers', 'performance') %>">
|
14
|
+
Performance
|
15
|
+
</a>
|
16
|
+
</li>
|
17
|
+
|
18
|
+
<% if Karafka::Web.config.commanding.active %>
|
19
|
+
<li class="nav-item">
|
20
|
+
<a class="nav-link <%= nav_class(include: 'controls') %>" href="<%= root_path('consumers', 'controls') %>">
|
21
|
+
Controls
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
|
25
|
+
<li class="nav-item">
|
26
|
+
<a class="nav-link <%= nav_class(include: 'commands') %>" href="<%= root_path('commands') %>">
|
27
|
+
Commands
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
<% end %>
|
31
|
+
</ul>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<% if Karafka::Web.config.commanding.active %>
|
2
|
+
<div class="col-md-12 col-lg-4 text-end">
|
3
|
+
<div class="d-flex flex-nowrap float-end">
|
4
|
+
<%
|
5
|
+
probe_path = root_path('commanding', process.id, 'probe')
|
6
|
+
disabled_class = process.status != 'stopped' ? '' : 'disabled'
|
7
|
+
%>
|
8
|
+
<form action="<%= probe_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
9
|
+
<%== csrf_tag(probe_path) %>
|
10
|
+
<input type="submit" value="⚙ Probe" class="btn btn-secondary btn-sm <%= disabled_class %>"/>
|
11
|
+
</form>
|
12
|
+
|
13
|
+
<%
|
14
|
+
quiet_path = root_path('commanding', process.id, 'quiet')
|
15
|
+
disabled_class = process.status == 'running' ? '' : 'disabled'
|
16
|
+
%>
|
17
|
+
<form action="<%= quiet_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
18
|
+
<%== csrf_tag(quiet_path) %>
|
19
|
+
<input type="submit" value="⏸ Quiet" class="btn btn-warning btn-sm <%= disabled_class %>"/>
|
20
|
+
</form>
|
21
|
+
|
22
|
+
<%
|
23
|
+
stop_path = root_path('commanding', process.id, 'stop')
|
24
|
+
disabled_class = process.status != 'stopping' && process.status != 'stopped' ? '' : 'disabled'
|
25
|
+
%>
|
26
|
+
<form action="<%= stop_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
27
|
+
<%== csrf_tag(stop_path) %>
|
28
|
+
<input type="submit" value="■ Stop" class="btn btn-danger btn-sm <%= disabled_class %>"/>
|
29
|
+
</form>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
@@ -90,15 +90,15 @@
|
|
90
90
|
<% if subscription_group.topics.empty? %>
|
91
91
|
<div class="row mb-4">
|
92
92
|
<div class="col-lg-12">
|
93
|
-
|
94
|
-
This process does not consume any messages from any topics of this subscription group.
|
95
|
-
|
93
|
+
<%==
|
94
|
+
alert_info('This process does not consume any messages from any topics of this subscription group.')
|
95
|
+
%>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
<% else %>
|
99
99
|
<% subscription_group.topics.each do |topic| %>
|
100
100
|
<div class="row mb-5">
|
101
|
-
<div class="col-sm-12">
|
101
|
+
<div class="col-sm-12 table-responsive">
|
102
102
|
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
103
103
|
<thead>
|
104
104
|
<tr class="align-middle">
|
@@ -107,16 +107,21 @@
|
|
107
107
|
<%= topic.name %>
|
108
108
|
</h5>
|
109
109
|
</th>
|
110
|
+
</tr>
|
110
111
|
<tr class="align-middle">
|
112
|
+
<th rowspan="2"><%== sort_link('Partition', :id) %></th>
|
113
|
+
<th colspan="2" class="text-center">Lag</th>
|
114
|
+
<th colspan="2" class="text-center">Offsets</th>
|
115
|
+
<th colspan="10" class="text-center">States</th>
|
111
116
|
</tr>
|
112
|
-
|
113
|
-
<th><%== sort_link(
|
114
|
-
<th><%== sort_link('
|
117
|
+
<tr class="align-middle">
|
118
|
+
<th><%== sort_link(:lag_hybrid) %></th>
|
119
|
+
<th><%== sort_link('Trend', :lag_hybrid_d) %></th>
|
115
120
|
<th><%== sort_link(:committed_offset) %></th>
|
116
121
|
<th><%== sort_link(:stored_offset) %></th>
|
117
122
|
<th><%== sort_link(:fetch_state) %></th>
|
118
123
|
<th><%== sort_link(:poll_state) %></th>
|
119
|
-
<th><%== sort_link(
|
124
|
+
<th><%== sort_link(:lso_risk_state) %></th>
|
120
125
|
</tr>
|
121
126
|
</thead>
|
122
127
|
<tbody>
|