mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding an update queue to munin so I can track how many feeds are past due.
This commit is contained in:
parent
4fe631788e
commit
7fde02b88a
2 changed files with 4 additions and 2 deletions
|
@ -480,7 +480,7 @@ def delete_feed(request):
|
|||
for k, folder in enumerate(old_folders):
|
||||
if isinstance(folder, int):
|
||||
if folder == feed_id:
|
||||
print "DEL'ED: %s'th item: %s" % (k, old_folders)
|
||||
print " ---> [%s] DEL'ED: %s'th item: %s folders/feeds" % (request.user, k, len(old_folders))
|
||||
# folders.remove(folder)
|
||||
else:
|
||||
new_folders.append(folder)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import datetime
|
||||
from utils.munin.base import MuninGraph
|
||||
from apps.rss_feeds.models import Feed
|
||||
from apps.reader.models import UserSubscription
|
||||
|
@ -10,11 +10,13 @@ graph_config = {
|
|||
'graph_vlabel' : 'Feeds & Subscribers',
|
||||
'feeds.label': 'feeds',
|
||||
'subscriptions.label': 'subscriptions',
|
||||
'update_queue.label': 'update_queue',
|
||||
}
|
||||
|
||||
metrics = {
|
||||
'feeds': Feed.objects.count(),
|
||||
'subscriptions': UserSubscription.objects.count(),
|
||||
'update_queue': Feed.objects.filter(next_scheduled_update__lte=datetime.datetime.now()).count(),
|
||||
}
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Reference in a new issue