ui.consumers.allClustersConsumers.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="lastCommit" type="java.lang.String" -->
<#-- @ftlvariable name="appUrl" type="com.infobip.kafkistry.webapp.url.AppUrl" -->
<#-- @ftlvariable name="consumersData" type="com.infobip.kafkistry.service.consumers.AllConsumersData" -->
<#-- @ftlvariable name="consumersStats" type="com.infobip.kafkistry.service.consumers.ConsumersStats" -->
<#-- @ftlvariable name="groupsOwned" type="java.util.Map" -->
<#-- @ftlvariable name="clusterIdentifiers" type="java.util.List" -->
<#include "../commonResources.ftl"/>
Kafkistry: Consumer groups
<#include "../commonMenu.ftl">
<#import "../common/util.ftl" as util>
<#import "../common/infoIcon.ftl" as info>
<#import "../common/documentation.ftl" as doc>
<#import "util.ftl" as statusUtil>
Cluster pooling statuses
<#list consumersData.clustersDataStatuses as clusterDataStatus>
<#assign stateClass = util.levelToHtmlClass(clusterDataStatus.clusterStatus.level)>
<#assign clusterTooltip>
${clusterDataStatus.clusterStatus}
Last refresh before: ${(.now?long - clusterDataStatus.lastRefreshTime)/1000} sec
#assign>
${clusterDataStatus.clusterIdentifier} <@info.icon tooltip=clusterTooltip/>
#list>
Statistics/counts
<#include "../consumers/consumerGroupsCounts.ftl">
All clusters consumers
<#assign presetDoc>
Use when need to prepare consumer group offsets to particular point
(begin
, end
, @ timestamp
,...)
prior to first starting consumer so that it starts consuming at pre-specified offsets.
Might be useful for example in situation when consumer group is planned to have
auto.offset.reset
= earliest
, but for very first usage you'd like to
start from latest
or (now-1h)
-corresponding offset.
#assign>
Init-preset group... <@info.icon tooltip=presetDoc/>
Group
Status
Assignor
Lag
Topics
<#list consumersData.clustersGroups as clusterGroup>
<#assign consumerGroup = clusterGroup.consumerGroup>
<#assign groupOwned = groupsOwned[consumerGroup.groupId]>
${consumerGroup.groupId} @ ${clusterGroup.clusterIdentifier} 🔍
<#if groupOwned>
<@util.yourOwned what="consumer group"/>
#if>
<@util.namedTypeStatusAlert type=consumerGroup.status/>
${consumerGroup.partitionAssignor}
<@util.namedTypeStatusAlert type=consumerGroup.lag.status/>
${consumerGroup.topicMembers?size} topic(s)
<#assign topicsTooltip>
Lag
Topic
<#list consumerGroup.topicMembers as topicMember>
<#if (topicMember.lag.amount)??>
${util.prettyNumber(topicMember.lag.amount)}
<#else>
N/A
#if>
${topicMember.topicName}
#list>
#assign>
<@info.icon tooltip=topicsTooltip/>
#list>
<#include "../common/pageBottom.ftl">