diff --git a/lib/kuiq/model/process.rb b/lib/kuiq/model/process.rb index ba6665c..56990eb 100644 --- a/lib/kuiq/model/process.rb +++ b/lib/kuiq/model/process.rb @@ -16,8 +16,12 @@ def rss def queues @hash["queues"].join(', ') end + + def labels + @hash["labels"].join(', ') + end - def method_missing(attr) + def method_missing(attr, *args, &block) @hash[attr.to_s] end diff --git a/lib/kuiq/view/busy.rb b/lib/kuiq/view/busy.rb index 955ac76..d8ebf0f 100644 --- a/lib/kuiq/view/busy.rb +++ b/lib/kuiq/view/busy.rb @@ -31,6 +31,7 @@ class Busy text_column(t("RSS")) text_column(t("Threads")) text_column(t("Busy")) + text_column(t("Labels")) text_column(t("Queues")) cell_rows <= [job_manager, :processes, @@ -40,6 +41,7 @@ class Busy t("RSS") => :rss, t("Threads") => :concurrency, t("Busy") => :busy, + t("Labels") => :labels, t("Queues") => :queues, }] }