[ 
https://issues.apache.org/jira/browse/STORM-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015399#comment-14015399
 ] 

ASF GitHub Bot commented on STORM-205:
--------------------------------------

Github user d2r commented on a diff in the pull request:

    https://github.com/apache/incubator-storm/pull/101#discussion_r13285182
  
    --- Diff: storm-core/src/clj/backtype/storm/ui/core.clj ---
    @@ -414,88 +218,6 @@
     (defn bolt-summary? [topology s]
       (= :bolt (executor-summary-type topology s)))
     
    -(defn topology-summary-table [^TopologyInfo summ]
    -  (let [executors (.get_executors summ)
    -        workers (set (for [^ExecutorSummary e executors] [(.get_host e) 
(.get_port e)]))]
    -    (table [{:text "Name" :attr {:class "tip right"
    -                                 :title (:name tips)}}
    -            {:text "Id" :attr {:class "tip right"
    -                               :title (:topo-id tips)}}
    -            {:text "Status" :attr {:class "tip above"
    -                                   :title (:status tips)}}
    -            {:text "Uptime" :attr {:class "tip above"
    -                                   :title (:topo-uptime tips)}}
    -            {:text "Num workers" :attr {:class "tip above"
    -                                        :title (:num-workers tips)}}
    -            {:text "Num executors" :attr {:class "tip above"
    -                                          :title (:num-execs tips)}}
    -            {:text "Num tasks" :attr {:class "tip above"
    -                                      :title (:num-tasks tips)}}]
    -           [[(escape-html (.get_name summ))
    -             (escape-html (.get_id summ))
    -             (.get_status summ)
    -             (pretty-uptime-sec (.get_uptime_secs summ))
    -             (count workers)
    -             (count executors)
    -             (sum-tasks executors)
    -             ]]
    -           )))
    -
    -(defn total-aggregate-stats [spout-summs bolt-summs include-sys?]
    -  (let [spout-stats (get-filled-stats spout-summs)
    -        bolt-stats (get-filled-stats bolt-summs)
    -        agg-spout-stats (-> spout-stats
    -                            (aggregate-spout-stats include-sys?)
    -                            aggregate-spout-streams)
    -        agg-bolt-stats (-> bolt-stats
    -                           (aggregate-bolt-stats include-sys?)
    -                           aggregate-bolt-streams)]
    -    (merge-with
    -     (fn [s1 s2]
    -       (merge-with + s1 s2))
    -     (select-keys agg-bolt-stats [:emitted :transferred])
    -     agg-spout-stats
    -     )))
    -
    -(defn stats-times [stats-map]
    -  (sort-by #(Integer/parseInt %)
    -           (-> stats-map
    -               clojurify-structure
    -               (dissoc ":all-time")
    -               keys)))
    -
    -(defn topology-stats-table [id window stats]
    -  (let [times (stats-times (:emitted stats))
    -        display-map (into {} (for [t times] [t pretty-uptime-sec]))
    -        display-map (assoc display-map ":all-time" (fn [_] "All time"))]
    -    (sorted-table
    -     [{:text "Window" :attr {:class "tip right"
    -                             :title (:window tips)}}
    -      {:text "Emitted" :attr {:class "tip above"
    -                              :title (:emitted tips)}}
    -      {:text "Transferred" :attr {:class "tip above"
    -                                  :title (:transferred tips)}}
    -      {:text "Complete latency (ms)" :attr {:class "tip above"
    -                                            :title (:complete-lat tips)}}
    -      {:text "Acked" :attr {:class "tip above"
    -                            :title (:spout-acked tips)}}
    -      {:text "Failed" :attr {:class "tip left"
    -                            :title (:spout-failed tips)}}]
    -     (for [k (concat times [":all-time"])
    -           :let [disp ((display-map k) k)]]
    -       [(link-to (if (= k window) {:class "red"} {})
    --- End diff --
    
    The selected time window in the UI no longer appears as red.  This could be 
important since the user would not know whether a window applied to the metrics 
without looking at the URL.


> Add REST API to Storm UI
> ------------------------
>
>                 Key: STORM-205
>                 URL: https://issues.apache.org/jira/browse/STORM-205
>             Project: Apache Storm (Incubating)
>          Issue Type: New Feature
>            Reporter: P. Taylor Goetz
>
> It would be helpful to have a RESTful API to expose the metrics currently 
> available in Storm UI.
> This would allow integration with 3rd-party monitoring and visualization 
> services.
> The REST services could either be implemented within the Storm UI service, or 
> as a separate Storm daemon.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to