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.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---