mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
show active threads in metrics
This commit is contained in:
@@ -236,7 +236,9 @@ public class AdminREST extends AbstractResourceREST {
|
||||
if (backlog) {
|
||||
map.put("backlog", taskGiver.getUpdatableCount());
|
||||
}
|
||||
map.put("http_active", feedRefreshWorker.getActiveCount());
|
||||
map.put("http_queue", feedRefreshWorker.getQueueSize());
|
||||
map.put("database_active", feedRefreshUpdater.getActiveCount());
|
||||
map.put("database_queue", feedRefreshUpdater.getQueueSize());
|
||||
map.put("cache", metricsBean.getCacheStats());
|
||||
|
||||
@@ -249,8 +251,7 @@ public class AdminREST extends AbstractResourceREST {
|
||||
Map<String, Long> map = Maps.newHashMap();
|
||||
map.put("feeds_without_subscriptions",
|
||||
cleaner.cleanFeedsWithoutSubscriptions());
|
||||
map.put("entries_without_feeds",
|
||||
cleaner.cleanEntriesWithoutFeeds());
|
||||
map.put("entries_without_feeds", cleaner.cleanEntriesWithoutFeeds());
|
||||
return Response.ok(map).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user