Github user paul-rogers commented on a diff in the pull request:

    https://github.com/apache/drill/pull/482#discussion_r86568133
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/DrillRoot.java 
---
    @@ -55,44 +59,89 @@ public Viewable getStats() {
       @GET
       @Path("/stats.json")
       @Produces(MediaType.APPLICATION_JSON)
    -  public List<Stat> getStatsJSON() {
    -    List<Stat> stats = Lists.newLinkedList();
    -    stats.add(new Stat("Number of Drill Bits", 
work.getContext().getBits().size()));
    -    int number = 0;
    -    for (CoordinationProtos.DrillbitEndpoint bit : 
work.getContext().getBits()) {
    -      String initialized = bit.isInitialized() ? " initialized" : " not 
initialized";
    -      stats.add(new Stat("Bit #" + number, bit.getAddress() + 
initialized));
    -      ++number;
    +  public Stats getStatsJSON() {
    --- End diff --
    
    This message gets statistics, which is great. But, it seems to combine 
per-cluster stats with per-drillbit info. Perhaps either have two messages (one 
for cluster, the other for Drillbit) or use JSON structures:
    
    ```
    clusterStats: { drillbitCount: .., version: ... },
    drillbitStats: { userPort: ..., ... }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to