karafka-web 0.8.1 → 0.9.0.rc1
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 +47 -0
- data/Gemfile.lock +33 -35
- 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 +19 -0
- data/lib/karafka/web/contracts/config.rb +6 -0
- data/lib/karafka/web/installer.rb +4 -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 +11 -5
- 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 +57 -0
- data/lib/karafka/web/pro/commanding/contracts/config.rb +60 -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 +20 -9
- 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/pro/ui/views/consumers/subscriptions.erb +28 -0
- 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 +15 -10
- 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 +16 -10
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/offsets.erb +17 -14
- data/lib/karafka/web/{ui/pro → pro/ui}/views/health/overview.erb +23 -9
- 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/contracts/subscription_group.rb +1 -1
- data/lib/karafka/web/tracking/consumers/listeners/booting.rb +36 -0
- 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 +10 -4
- data/lib/karafka/web/tracking/contracts/error.rb +1 -1
- data/lib/karafka/web/tracking/producers/listeners/booting.rb +26 -0
- 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/tracking/scheduler.rb +0 -5
- 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 +55 -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 +19 -5
- data/lib/karafka/web/ui/models/processes.rb +2 -2
- 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 +19 -2
- data.tar.gz.sig +0 -0
- metadata +191 -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/consumers/subscriptions.erb +0 -23
- 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,67 @@
|
|
1
|
+
<%== view_title('Consumers Controls') %>
|
2
|
+
|
3
|
+
<%== partial 'consumers/tabs' %>
|
4
|
+
|
5
|
+
<% unless @processes.empty? %>
|
6
|
+
<div class="container">
|
7
|
+
<div class="row mb-4">
|
8
|
+
<div class="col-sm-12">
|
9
|
+
<div class="d-flex flex-nowrap float-end">
|
10
|
+
<%
|
11
|
+
quiet_all_path = root_path('commanding', 'quiet_all')
|
12
|
+
%>
|
13
|
+
<form action="<%= quiet_all_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
14
|
+
<%== csrf_tag(quiet_all_path) %>
|
15
|
+
<input type="submit" value="⏸ Quiet All" class="btn btn-warning btn-sm"/>
|
16
|
+
</form>
|
17
|
+
|
18
|
+
<%
|
19
|
+
stop_all_path = root_path('commanding', 'stop_all')
|
20
|
+
%>
|
21
|
+
<form action="<%= stop_all_path %>" method="post" class="d-inline-flex align-items-center mx-1">
|
22
|
+
<%== csrf_tag(stop_all_path) %>
|
23
|
+
<input type="submit" value="■ Stop All" class="btn btn-danger btn-sm"/>
|
24
|
+
</form>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<div class="container">
|
32
|
+
<div class="row">
|
33
|
+
<div class="col-sm-12">
|
34
|
+
<% if @processes.empty? && params.current_page <= 1 %>
|
35
|
+
<%== partial 'consumers/no_consumers' %>
|
36
|
+
<% elsif @processes.empty? %>
|
37
|
+
<%== partial 'shared/no_paginated_data' %>
|
38
|
+
<% else %>
|
39
|
+
<div class="table-responsive">
|
40
|
+
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
41
|
+
<thead>
|
42
|
+
<tr class="align-middle">
|
43
|
+
<th><%== sort_link(:id) %></th>
|
44
|
+
<th><%== sort_link(:status) %></th>
|
45
|
+
<th>Subscriptions</th>
|
46
|
+
<th><%== sort_link(:started_at, rev: true) %></th>
|
47
|
+
<th><%== sort_link(:memory_usage) %></th>
|
48
|
+
<th>Performance</th>
|
49
|
+
<th><%== sort_link(:lag_hybrid) %></th>
|
50
|
+
<th></th>
|
51
|
+
</tr>
|
52
|
+
</thead>
|
53
|
+
<tbody>
|
54
|
+
<%==
|
55
|
+
render_each(
|
56
|
+
@processes,
|
57
|
+
'consumers/_consumer_controls',
|
58
|
+
local: :process
|
59
|
+
)
|
60
|
+
%>
|
61
|
+
</tbody>
|
62
|
+
</table>
|
63
|
+
</div>
|
64
|
+
<% end %>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
<div class="container mb-5">
|
2
|
+
<div class="row">
|
3
|
+
<%== partial 'consumers/consumer/title' %>
|
4
|
+
<%== partial 'consumers/consumer/commands', locals: { process: @process } %>
|
5
|
+
</div>
|
6
|
+
</div>
|
2
7
|
|
3
8
|
<% if @process.status == 'stopped' %>
|
4
9
|
<%== partial 'consumers/consumer/stopped' %>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<%== partial 'consumers/counters' %>
|
2
|
+
<%== partial 'consumers/summary' %>
|
3
|
+
<%== partial 'consumers/tabs' %>
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-12">
|
8
|
+
<% if @processes.empty? && params.current_page <= 1 %>
|
9
|
+
<%== partial 'consumers/no_consumers' %>
|
10
|
+
<% elsif @processes.empty? %>
|
11
|
+
<%== partial 'shared/no_paginated_data' %>
|
12
|
+
<% else %>
|
13
|
+
<div class="table-responsive">
|
14
|
+
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
15
|
+
<thead>
|
16
|
+
<tr class="align-middle">
|
17
|
+
<th><%== sort_link(:id) %></th>
|
18
|
+
<th class="col-sm-2"><%== sort_link(:started_at, rev: true) %></th>
|
19
|
+
<th class="col-sm-1">Memory</th>
|
20
|
+
<th class="col-sm-1">Performance</th>
|
21
|
+
<th class="col-sm-1">Load</th>
|
22
|
+
<th class="col-sm-1"><%== sort_link(:lag_hybrid) %></th>
|
23
|
+
</tr>
|
24
|
+
</thead>
|
25
|
+
<tbody>
|
26
|
+
<%==
|
27
|
+
render_each(
|
28
|
+
@processes,
|
29
|
+
'consumers/_consumer',
|
30
|
+
local: :process
|
31
|
+
)
|
32
|
+
%>
|
33
|
+
</tbody>
|
34
|
+
</table>
|
35
|
+
</div>
|
36
|
+
<% end %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
</div>
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
<div class="container mb-5">
|
2
|
+
<div class="row">
|
3
|
+
<%== partial 'consumers/consumer/title' %>
|
4
|
+
<%== partial 'consumers/consumer/commands', locals: { process: @process } %>
|
5
|
+
</div>
|
6
|
+
</div>
|
2
7
|
|
3
8
|
<% if @process.status == 'stopped' %>
|
4
9
|
<%== partial 'consumers/consumer/stopped' %>
|
@@ -13,18 +18,21 @@
|
|
13
18
|
<% else %>
|
14
19
|
<div class="container">
|
15
20
|
<div class="row mb-5">
|
16
|
-
<div class="col-sm-12">
|
21
|
+
<div class="col-sm-12 table-responsive">
|
17
22
|
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
18
23
|
<thead>
|
19
24
|
<tr class="align-middle">
|
20
|
-
<th><%== sort_link(:topic) %></th>
|
21
|
-
<th><%== sort_link(:consumer) %></th>
|
22
|
-
<th><%== sort_link(:type) %></th>
|
23
|
-
<th><%== sort_link(:messages) %></th>
|
25
|
+
<th rowspan="2"><%== sort_link(:topic) %></th>
|
26
|
+
<th rowspan="2"><%== sort_link(:consumer) %></th>
|
27
|
+
<th rowspan="2"><%== sort_link(:type) %></th>
|
28
|
+
<th rowspan="2"><%== sort_link(:messages) %></th>
|
29
|
+
<th colspan="3" class="text-center">Offsets</th>
|
30
|
+
<th rowspan="2"><%== sort_link('Started', :updated_at, rev: true) %></th>
|
31
|
+
</tr>
|
32
|
+
<tr class="align-middle">
|
24
33
|
<th><%== sort_link(:first_offset) %></th>
|
25
34
|
<th><%== sort_link(:last_offset) %></th>
|
26
35
|
<th><%== sort_link(:committed_offset) %></th>
|
27
|
-
<th><%== sort_link('Scheduled at', :updated_at, rev: true) %></th>
|
28
36
|
</tr>
|
29
37
|
</thead>
|
30
38
|
<tbody>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<%== view_title('Consumers Performance Details') %>
|
2
|
+
|
3
|
+
<%== partial 'consumers/tabs' %>
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-sm-12">
|
8
|
+
<% if @processes.empty? && params.current_page <= 1 %>
|
9
|
+
<%== partial 'consumers/no_consumers' %>
|
10
|
+
<% elsif @processes.empty? %>
|
11
|
+
<%== partial 'shared/no_paginated_data' %>
|
12
|
+
<% else %>
|
13
|
+
<div class="table-responsive">
|
14
|
+
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
15
|
+
<thead>
|
16
|
+
<tr class="align-middle">
|
17
|
+
<th colspan="1" rowspan="2"><%== sort_link(:id) %></th>
|
18
|
+
<th colspan="1" rowspan="2"><%== sort_link(:memory_usage) %></th>
|
19
|
+
<th colspan="1" rowspan="2"><%== sort_link(:utilization) %></th>
|
20
|
+
<th colspan="1" rowspan="2"><%== sort_link(:threads) %></th>
|
21
|
+
<th colspan="3" rowspan="1" class="text-center">Load</th>
|
22
|
+
<th colspan="2" class="text-center">Workers</th>
|
23
|
+
<th colspan="2" class="text-center">Listeners</th>
|
24
|
+
<th colspan="2" class="text-center">Jobs</th>
|
25
|
+
</tr>
|
26
|
+
<tr class="align-middle">
|
27
|
+
<th>1m</th>
|
28
|
+
<th>5m</th>
|
29
|
+
<th>15m</th>
|
30
|
+
<th><%== sort_link('Total', :workers) %></th>
|
31
|
+
<th><%== sort_link(:busy) %></th>
|
32
|
+
<th><%== sort_link(:active) %></th>
|
33
|
+
<th><%== sort_link(:standby) %></th>
|
34
|
+
<th><%== sort_link('Running', :running_jobs_count) %></th>
|
35
|
+
<th><%== sort_link('Pending', :pending_jobs_count) %></th>
|
36
|
+
</tr>
|
37
|
+
</thead>
|
38
|
+
<tbody>
|
39
|
+
<%==
|
40
|
+
render_each(
|
41
|
+
@processes,
|
42
|
+
'consumers/_consumer_performance',
|
43
|
+
local: :process
|
44
|
+
)
|
45
|
+
%>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
</div>
|
49
|
+
<% end %>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
<div class="container mb-5">
|
2
|
+
<div class="row">
|
3
|
+
<%== partial 'consumers/consumer/title' %>
|
4
|
+
<%== partial 'consumers/consumer/commands', locals: { process: @process } %>
|
5
|
+
</div>
|
6
|
+
</div>
|
2
7
|
|
3
8
|
<% if @process.status == 'stopped' %>
|
4
9
|
<%== partial 'consumers/consumer/stopped' %>
|
@@ -13,18 +18,21 @@
|
|
13
18
|
<% else %>
|
14
19
|
<div class="container">
|
15
20
|
<div class="row mb-5">
|
16
|
-
<div class="col-sm-12">
|
21
|
+
<div class="col-sm-12 table-responsive">
|
17
22
|
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
18
23
|
<thead>
|
19
24
|
<tr class="align-middle">
|
20
|
-
<th><%== sort_link(:topic) %></th>
|
21
|
-
<th><%== sort_link(:consumer) %></th>
|
22
|
-
<th><%== sort_link(:type) %></th>
|
23
|
-
<th><%== sort_link(:messages) %></th>
|
25
|
+
<th rowspan="2"><%== sort_link(:topic) %></th>
|
26
|
+
<th rowspan="2"><%== sort_link(:consumer) %></th>
|
27
|
+
<th rowspan="2"><%== sort_link(:type) %></th>
|
28
|
+
<th rowspan="2"><%== sort_link(:messages) %></th>
|
29
|
+
<th colspan="3" class="text-center">Offsets</th>
|
30
|
+
<th rowspan="2"><%== sort_link('Started', :updated_at, rev: true) %></th>
|
31
|
+
</tr>
|
32
|
+
<tr class="align-middle">
|
24
33
|
<th><%== sort_link(:first_offset) %></th>
|
25
34
|
<th><%== sort_link(:last_offset) %></th>
|
26
35
|
<th><%== sort_link(:committed_offset) %></th>
|
27
|
-
<th><%== sort_link('Started at', :updated_at, rev: true) %></th>
|
28
36
|
</tr>
|
29
37
|
</thead>
|
30
38
|
<tbody>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div class="container mb-5">
|
2
|
+
<div class="row">
|
3
|
+
<%== partial 'consumers/consumer/title' %>
|
4
|
+
<%== partial 'consumers/consumer/commands', locals: { process: @process } %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<% if @process.status == 'stopped' %>
|
9
|
+
<%== partial 'consumers/consumer/stopped' %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%== partial 'consumers/consumer/metrics' %>
|
13
|
+
|
14
|
+
<%== partial 'consumers/consumer/tabs' %>
|
15
|
+
|
16
|
+
<% if @process.subscribed? %>
|
17
|
+
<div class="container">
|
18
|
+
<%==
|
19
|
+
render_each(
|
20
|
+
@process.consumer_groups,
|
21
|
+
'consumers/consumer/_consumer_group',
|
22
|
+
local: :consumer_group
|
23
|
+
)
|
24
|
+
%>
|
25
|
+
</div>
|
26
|
+
<% else %>
|
27
|
+
<%== partial 'consumers/consumer/no_subscriptions' %>
|
28
|
+
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% if @aggregated.sufficient? %>
|
4
4
|
<%== partial 'dashboard/ranges_selector' %>
|
5
5
|
|
6
|
-
<div class="container">
|
6
|
+
<div class="container mb-3 mt-4 mt-md-2 mt-lg-0">
|
7
7
|
<div class="row">
|
8
8
|
<div class="col-sm-12">
|
9
9
|
<h5 class="mb-3">Processing metrics</h5>
|
@@ -21,24 +21,24 @@
|
|
21
21
|
<div class="tab-content">
|
22
22
|
<div class="tab-pane show active" id="messages" role="tabpanel">
|
23
23
|
<% data = @aggregated_charts.with(:messages, :errors, :dead, :retries, :batch_size) %>
|
24
|
-
<%== partial 'shared/
|
24
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'messages' } %>
|
25
25
|
</div>
|
26
26
|
|
27
27
|
<div class="tab-pane" id="batches" role="tabpanel">
|
28
28
|
<% data = @aggregated_charts.with(:batches, :errors, :dead, :retries) %>
|
29
|
-
<%== partial 'shared/
|
29
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'batches' } %>
|
30
30
|
</div>
|
31
31
|
|
32
32
|
<div class="tab-pane" id="topics-lags" role="tabpanel">
|
33
|
-
<%== partial 'shared/
|
33
|
+
<%== partial 'shared/charts/line', locals: { data: @topics_charts.lags_hybrid, id: 'topics-lags' } %>
|
34
34
|
</div>
|
35
35
|
|
36
36
|
<div class="tab-pane" id="topics-pace" role="tabpanel">
|
37
|
-
<%== partial 'shared/
|
37
|
+
<%== partial 'shared/charts/line', locals: { data: @topics_charts.topics_pace, id: 'topics-pace' } %>
|
38
38
|
</div>
|
39
39
|
|
40
40
|
<div class="tab-pane" id="max-lso-time" role="tabpanel">
|
41
|
-
<%== partial 'shared/
|
41
|
+
<%== partial 'shared/charts/line', locals: { data: @topics_charts.max_lso_time, id: 'max-lso-time' } %>
|
42
42
|
</div>
|
43
43
|
</div>
|
44
44
|
</div>
|
@@ -62,22 +62,22 @@
|
|
62
62
|
<div class="tab-content">
|
63
63
|
<div class="tab-pane show active" id="utilization" role="tabpanel">
|
64
64
|
<% data = @aggregated_charts.with(:utilization) %>
|
65
|
-
<%== partial 'shared/
|
65
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'utilization', label_type_y: 'percentage' } %>
|
66
66
|
</div>
|
67
67
|
|
68
68
|
<div class="tab-pane show" id="rss" role="tabpanel">
|
69
69
|
<% data = @aggregated_charts.with(:rss, :process_rss) %>
|
70
|
-
<%== partial 'shared/
|
70
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'rss', label_type_y: 'memory' } %>
|
71
71
|
</div>
|
72
72
|
|
73
73
|
<div class="tab-pane show" id="concurrency" role="tabpanel">
|
74
74
|
<% data = @aggregated_charts.with(:processes, :workers, :active_listeners, :standby_listeners) %>
|
75
|
-
<%== partial 'shared/
|
75
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'concurrency' } %>
|
76
76
|
</div>
|
77
77
|
|
78
78
|
<div class="tab-pane show" id="data-transfers" role="tabpanel">
|
79
79
|
<% data = @aggregated_charts.data_transfers %>
|
80
|
-
<%== partial 'shared/
|
80
|
+
<%== partial 'shared/charts/line', locals: { data: data, id: 'data-transfers', label_type_y: 'memory' } %>
|
81
81
|
</div>
|
82
82
|
</div>
|
83
83
|
</div>
|
@@ -1,9 +1,5 @@
|
|
1
1
|
<% if error_msg.is_a?(Array) %>
|
2
|
-
|
3
|
-
<td colspan="5" class="text-center text-muted">
|
4
|
-
This offset does not contain error data. The message may have been compacted or is a system entry.
|
5
|
-
</td>
|
6
|
-
</tr>
|
2
|
+
<%== partial 'shared/not_a_message' %>
|
7
3
|
<% else %>
|
8
4
|
<% error = error_msg.payload %>
|
9
5
|
|
@@ -18,7 +14,7 @@
|
|
18
14
|
</span>
|
19
15
|
</td>
|
20
16
|
<td>
|
21
|
-
<%== error[:process][:
|
17
|
+
<%== error[:process][:id] %>
|
22
18
|
</td>
|
23
19
|
<td>
|
24
20
|
<%= error[:error_class] %>:
|
@@ -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>Origin</th>
|
6
|
+
<th>ID</th>
|
7
|
+
<th>Error</th>
|
8
|
+
<th>Occurred</th>
|
9
|
+
<th></th>
|
10
|
+
</tr>
|
11
|
+
</thead>
|
12
|
+
|
13
|
+
<tbody>
|
14
|
+
<%==
|
15
|
+
each_partial(
|
16
|
+
@error_messages,
|
17
|
+
'errors/error',
|
18
|
+
local: :error_msg
|
19
|
+
)
|
20
|
+
%>
|
21
|
+
</tbody>
|
22
|
+
</table>
|
23
|
+
</div>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<% safe_key = ::Karafka::Web::Ui::Lib::SafeRunner.new { message.key } %>
|
2
|
+
|
1
3
|
<% if message.is_a?(Array) %>
|
2
4
|
<tr>
|
3
5
|
<td class="text-muted">
|
@@ -23,7 +25,11 @@
|
|
23
25
|
</td>
|
24
26
|
<td>
|
25
27
|
<% if @visibility_filter.key?(message) %>
|
26
|
-
|
28
|
+
<% if safe_key.success? %>
|
29
|
+
<%= safe_key.result %>
|
30
|
+
<% else %>
|
31
|
+
<span class="text-muted">[Deserialization Failed]</span>
|
32
|
+
<% end %>
|
27
33
|
<% else %>
|
28
34
|
<span class="text-muted">[Filtered]</span>
|
29
35
|
<% end %>
|
@@ -1,8 +1,39 @@
|
|
1
|
+
<% if @safe_key.failure? %>
|
2
|
+
<%==
|
3
|
+
partial(
|
4
|
+
'explorer/failed_deserialization',
|
5
|
+
locals: {
|
6
|
+
attribute: 'key',
|
7
|
+
error: @safe_key.error
|
8
|
+
}
|
9
|
+
)
|
10
|
+
%>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<% if @safe_headers.failure? %>
|
14
|
+
<%==
|
15
|
+
partial(
|
16
|
+
'explorer/failed_deserialization',
|
17
|
+
locals: {
|
18
|
+
attribute: 'headers',
|
19
|
+
error: @safe_headers.error
|
20
|
+
}
|
21
|
+
)
|
22
|
+
%>
|
23
|
+
<% end %>
|
24
|
+
|
1
25
|
<div class="row mb-5">
|
2
|
-
<div class="col-sm-12">
|
26
|
+
<div class="col-sm-12 table-responsive">
|
3
27
|
<table class="processes bg-white table table-hover table-bordered table-striped mb-0 align-middle">
|
4
28
|
<tbody>
|
5
|
-
|
29
|
+
<%==
|
30
|
+
partial(
|
31
|
+
'explorer/messages/key',
|
32
|
+
locals: { message: @message }
|
33
|
+
)
|
34
|
+
%>
|
35
|
+
|
36
|
+
<% @message.metadata.to_h.except(:received_at, :raw_key, :raw_headers, :message).each do |k, v| %>
|
6
37
|
<%==
|
7
38
|
partial(
|
8
39
|
'explorer/messages/detail',
|
@@ -24,13 +55,6 @@
|
|
24
55
|
)
|
25
56
|
%>
|
26
57
|
|
27
|
-
<%==
|
28
|
-
partial(
|
29
|
-
'explorer/messages/key',
|
30
|
-
locals: { message: @message }
|
31
|
-
)
|
32
|
-
%>
|
33
|
-
|
34
58
|
<%==
|
35
59
|
partial(
|
36
60
|
'explorer/messages/headers',
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<% if @visibility_filter.payload?(@message) %>
|
2
2
|
<div class="row">
|
3
3
|
<div class="col-sm-12 mb-4">
|
4
|
-
<% if @
|
5
|
-
<%== partial 'explorer/failed_deserialization' %>
|
4
|
+
<% if @safe_payload.failure? %>
|
5
|
+
<%== partial 'explorer/failed_deserialization', locals: { attribute: 'payload', error: @safe_payload.error } %>
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
<div class="card">
|
9
9
|
<div class="card-body">
|
10
|
-
<% if @
|
10
|
+
<% if @safe_payload.failure? %>
|
11
11
|
<pre class="m-0 p-0"><code class="wrapped json p-0 m-0"><%= @message.raw_payload %></code></pre>
|
12
12
|
<% else %>
|
13
|
-
<pre class="m-0 p-0"><code class="wrapped json p-0 m-0"><%= @
|
13
|
+
<pre class="m-0 p-0"><code class="wrapped json p-0 m-0"><%= @safe_payload.result %></code></pre>
|
14
14
|
<% end %>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</a>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<% if @visibility_filter.export?(@message) &&
|
11
|
+
<% if @visibility_filter.export?(@message) && @safe_payload.success? %>
|
12
12
|
<a
|
13
13
|
href="<%= root_path('messages', @message.topic, @message.partition, @message.offset, 'export') %>"
|
14
14
|
class="btn btn-secondary btn-sm"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<% if @safe_headers.success? %>
|
2
|
+
<% visible = @visibility_filter.headers?(message) %>
|
3
|
+
<% message.metadata.headers.each do |k, v| %>
|
4
|
+
<tr>
|
5
|
+
<td>
|
6
|
+
<%= "headers.#{k}" %>
|
7
|
+
</td>
|
8
|
+
<td>
|
9
|
+
<% if visible %>
|
10
|
+
<%= object_value_to_s(v) %>
|
11
|
+
<% else %>
|
12
|
+
<span class="text-muted">[Filtered]</span>
|
13
|
+
<% end %>
|
14
|
+
</td>
|
15
|
+
</tr>
|
16
|
+
<% end %>
|
17
|
+
<% else %>
|
18
|
+
<% visible = @visibility_filter.headers?(message) %>
|
19
|
+
<% message.metadata[:raw_headers].each do |k, v| %>
|
20
|
+
<tr>
|
21
|
+
<td>
|
22
|
+
<%= "raw_headers.#{k}" %>
|
23
|
+
</td>
|
24
|
+
<td>
|
25
|
+
<% if visible %>
|
26
|
+
<%= object_value_to_s(v) %>
|
27
|
+
<% else %>
|
28
|
+
<span class="text-muted">[Filtered]</span>
|
29
|
+
<% end %>
|
30
|
+
</td>
|
31
|
+
</tr>
|
32
|
+
<% end %>
|
33
|
+
<% end %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<tr>
|
2
|
+
<td>
|
3
|
+
<% if @safe_key.success? %>
|
4
|
+
key
|
5
|
+
<% else %>
|
6
|
+
raw_key
|
7
|
+
<% end %>
|
8
|
+
</td>
|
9
|
+
<td>
|
10
|
+
<% if @visibility_filter.key?(message) %>
|
11
|
+
<% if @safe_key.success? %>
|
12
|
+
<%= @safe_key.result %>
|
13
|
+
<% else %>
|
14
|
+
<%= message.raw_key %>
|
15
|
+
<% end %>
|
16
|
+
<% else %>
|
17
|
+
<span class="text-muted">[Filtered]</span>
|
18
|
+
<% end %>
|
19
|
+
</td>
|
20
|
+
</tr>
|
@@ -0,0 +1,21 @@
|
|
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>Partition</th>
|
6
|
+
<th>Offset</th>
|
7
|
+
<th>Timestamp</th>
|
8
|
+
<th>Key</th>
|
9
|
+
<th></th>
|
10
|
+
</tr>
|
11
|
+
</thead>
|
12
|
+
<tbody>
|
13
|
+
<%==
|
14
|
+
each_partial(
|
15
|
+
@messages,
|
16
|
+
'explorer/message'
|
17
|
+
)
|
18
|
+
%>
|
19
|
+
</tbody>
|
20
|
+
</table>
|
21
|
+
</div>
|