Sha256: 5766d9baa788e8c6beede4d3242aed72bdcdde9453e033929e6c414b8523e865

Contents?: true

Size: 1.85 KB

Versions: 10

Compression:

Stored size: 1.85 KB

Contents

<tr class="status-row-<%= process.status %>">
  <td>
    <div class="badge badge-topic <%= status_bg(process.status) %> float-end">
      <%= process.status %>
    </div>

    <a href="<%= root_path('consumers', process.id, 'subscriptions') %>">
      <%= process.name %>
    </a>

    <p class="mt-0 mb-1">
      <% process.consumer_groups.each do |consumer_group| %>
        <% consumer_group.subscription_groups.each do |subscription_group| %>
          <% subscription_group.topics.each do |topic| %>
            <span class="badge bg-secondary badge-topic" title="Consumer group: <%= consumer_group.id %>">
              <%= topic.name %>:
              <% if topic.partitions.size > 10 %>
                <%= "#{topic.partitions.first(10).map(&:id).join(',')}..." %>
              <% else %>
                <%= topic.partitions.map(&:id).join(',') %>
              <% end %>
            </span>
          <% end %>
        <% end %>
      <% end %>
    </p>

    <p class="mt-0 mb-1">
      <%== tags(process.tags) %>
    </p>
  </td>

  <td>
    <%== relative_time process.started_at %>
  </td>

  <td>
    <span class="badge bg-primary badge-topic">
      <%= format_memory process.memory_usage %>
    </span>
    <span class="badge bg-primary badge-topic">
      <%= format_memory process.memory_total_usage %>
    </span>
    <span class="badge bg-primary badge-topic">
      <%= format_memory process.memory_size %>
    </span>
  </td>

  <td>
    <span class="badge bg-primary badge-topic">
      <%= process.utilization.round(1) %>%
    </span>
    <span class="badge bg-primary badge-topic">
      <%= process.workers %> /
      <%= process.busy %>
    </span>
  </td>

  <td>
    <% process.cpu_usage.each do |metric| %>
      <span class="badge bg-primary badge-topic">
        <%= metric %>
      </span>
    <% end %>
  </td>

  <td>
    <%= process.lag_stored %>
  </td>
</tr>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
karafka-web-0.7.10 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.9 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.8 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.7 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.6 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.5 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.4 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.3 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.2 lib/karafka/web/ui/pro/views/consumers/_consumer.erb
karafka-web-0.7.1 lib/karafka/web/ui/pro/views/consumers/_consumer.erb