Adding a count of active feeds to munin graphs.

This commit is contained in:
Samuel Clay 2010-10-15 15:40:38 -04:00
parent 35ae5a6b91
commit 94295f6b25

View file

@ -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__':