forked from smorin/KafkaOffsetMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from VisualDNA/topic-consumers-gui
Adding new subpage "topic consumers"
- Loading branch information
Showing
7 changed files
with
167 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
src/main/resources/offsetapp/views/includes/group.inc.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<div class="alert alert-info" ng-show="loading"> | ||
Loading ... | ||
</div> | ||
|
||
<div ng-hide="loading"> | ||
<h2>Brokers</h2> | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>id</th> | ||
<th>host</th> | ||
<th>port</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="b in info.brokers"> | ||
<td>{{b.id}}</td> | ||
<td>{{b.host}}</td> | ||
<td>{{b.port}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<hr/> | ||
|
||
<h2>Consumer Offsets</h2> | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Topic</th> | ||
<th>Partition</th> | ||
<th>Offset</th> | ||
<th>logSize</th> | ||
<th>Lag</th> | ||
<th>Owner</th> | ||
<th>Created</th> | ||
<th>Last Seen</th> | ||
</tr> | ||
</thead> | ||
<tbody ng-repeat="c in info.offsets"> | ||
<tr class="topic-row"> | ||
<td><a href="#/group/{{c.group}}/{{c.topic}}">{{c.topic}}</a></td> | ||
<td></td> | ||
<td>{{c.offset}}</td> | ||
<td>{{c.logSize}}</td> | ||
<td>{{c.logSize - c.offset}}</td> | ||
<td></td> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr class="partition-row" ng-repeat="p in c.partitions"> | ||
<td></td> | ||
<td>{{p.partition}}</td> | ||
<td>{{p.offset}}</td> | ||
<td>{{p.logSize}}</td> | ||
<td>{{p.logSize - p.offset}}</td> | ||
<td>{{p.owner}}</td> | ||
<td><moment timestamp="{{p.creation}}"></moment></td> | ||
<td><moment timestamp="{{p.modified}}"></moment></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<div class="page-header"> | ||
<h1>Details for the topic </strong>{{group}}</strong></h1> | ||
</div> | ||
|
||
<ol class="breadcrumb"> | ||
<li><a href="#/">Topic Details</a></li> | ||
<li class="active">{{group}}</li> | ||
</ol> | ||
|
||
<div class="alert alert-info" ng-show="loading"> | ||
Loading ... | ||
</div> | ||
|
||
<div ng-hide="loading"> | ||
<h2>Active Consumers</h2> | ||
|
||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>name</th> | ||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="b in info.consumers"> | ||
|
||
<td ng-if="b.name == 'Unable to find Active Consumers'"> | ||
{{b.name}} | ||
</td> | ||
<td ng-if="b.name != 'Unable to find Active Consumers'"> | ||
<a href="./#/group/{{b.name}}/{{group}}">{{b.name}}</a> | ||
</td> | ||
|
||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<h2>Consumer details</h2> | ||
|
||
<div ng-repeat="info in info.consumers"> | ||
<div ng-include="'views/includes/group.inc.html'"></div> | ||
</div> | ||
|
||
<hr/> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters