mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding a count of active feeds to munin graphs.
This commit is contained in:
parent
35ae5a6b91
commit
94295f6b25
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ graph_config = {
|
|||
'exception_feeds.label': 'exception_feeds',
|
||||
'inactive_feeds.label': 'inactive_feeds',
|
||||
'duplicate_feeds.label': 'duplicate_feeds',
|
||||
'active_feeds.label': 'active_feeds',
|
||||
}
|
||||
|
||||
metrics = {
|
||||
|
@ -21,6 +22,7 @@ metrics = {
|
|||
'exception_feeds': Feed.objects.filter(Q(has_feed_exception=True) | Q(has_page_exception=True)).count(),
|
||||
'inactive_feeds': Feed.objects.filter(active=False).count(),
|
||||
'duplicate_feeds': DuplicateFeed.objects.count(),
|
||||
'active_feeds': Feed.objects.filter(active_subscribers__gte=0).count(),
|
||||
}
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Reference in a new issue