-
Notifications
You must be signed in to change notification settings - Fork 471
Manager info on Monitor rest/manager -> rest-v2/manager
#5894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ba5c748
ceeab75
3419635
d1c8630
331c9d2
a630f14
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,12 +23,7 @@ | |
|
|
||
| import jakarta.xml.bind.annotation.XmlRootElement; | ||
|
|
||
| import org.apache.accumulo.monitor.rest.logs.DeadLoggerList; | ||
| import org.apache.accumulo.monitor.rest.manager.ManagerInformation; | ||
| import org.apache.accumulo.monitor.rest.tables.TableInformationList; | ||
| import org.apache.accumulo.monitor.rest.tservers.BadTabletServers; | ||
| import org.apache.accumulo.monitor.rest.tservers.DeadServerList; | ||
| import org.apache.accumulo.monitor.rest.tservers.ServersShuttingDown; | ||
| import org.apache.accumulo.monitor.rest.tservers.TabletServer; | ||
|
|
||
| /** | ||
|
|
@@ -40,46 +35,23 @@ | |
| public class SummaryInformation { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This class is used for summarizing Monitor info at |
||
|
|
||
| // Variable names become JSON keys | ||
| public List<TabletServer> servers = new ArrayList<>(); | ||
|
|
||
| public String managerGoalState; | ||
| public String managerState; | ||
|
|
||
| public BadTabletServers badTabletServers; | ||
| public ServersShuttingDown tabletServersShuttingDown; | ||
| public Integer unassignedTablets; | ||
| public DeadServerList deadTabletServers; | ||
|
|
||
| public DeadLoggerList deadLoggers; | ||
| public List<TabletServer> servers; | ||
|
|
||
| public TableInformationList tables; | ||
|
|
||
| public Totals totals; | ||
|
|
||
| // do not remove | ||
| public SummaryInformation() {} | ||
|
|
||
| /** | ||
| * Stores Monitor information as XML or JSON | ||
| * | ||
| * @param size Number of tservers | ||
| * @param info Manager information | ||
| * @param tablesList Table list | ||
| */ | ||
| public SummaryInformation(int size, ManagerInformation info, TableInformationList tablesList) { | ||
| public SummaryInformation(int size, TableInformationList tablesList) { | ||
| this.servers = new ArrayList<>(size); | ||
|
|
||
| this.managerGoalState = info.managerGoalState; | ||
| this.managerState = info.managerState; | ||
|
|
||
| this.badTabletServers = info.badTabletServers; | ||
| this.tabletServersShuttingDown = info.tabletServersShuttingDown; | ||
| this.unassignedTablets = info.unassignedTablets; | ||
| this.deadTabletServers = info.deadTabletServers; | ||
| this.deadLoggers = info.deadLoggers; | ||
|
|
||
| this.tables = tablesList; | ||
|
|
||
| this.totals = new Totals(info.ingestrate, info.queryrate, info.numentries); | ||
| } | ||
|
|
||
| /** | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The metrics are already returned as part of the
MetricResponsejson from thegetManagercall. Just wondering if we really need this, it seems duplicative.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote this so we can easily link to just the "metrics" key of the "rest-v2/manager" json endpoint via an href:
<a href=\"rest-v2/manager/metrics\">Metrics</a>Not sure of a way to easily do this without more custom javascript/html, and I think the extra Java code is more maintainable than more js/html