2010-06-08 11:19:41 -04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from utils.munin.base import MuninGraph
|
2010-10-12 13:17:43 -04:00
|
|
|
from apps.rss_feeds.models import Feed, DuplicateFeed
|
2010-06-08 11:19:41 -04:00
|
|
|
from apps.reader.models import UserSubscription
|
|
|
|
|
|
|
|
graph_config = {
|
|
|
|
'graph_category' : 'NewsBlur',
|
2010-08-30 22:58:41 -04:00
|
|
|
'graph_title' : 'NewsBlur Feeds & Subscriptions',
|
2010-06-08 11:19:41 -04:00
|
|
|
'graph_vlabel' : 'Feeds & Subscribers',
|
|
|
|
'feeds.label': 'feeds',
|
|
|
|
'subscriptions.label': 'subscriptions',
|
|
|
|
}
|
|
|
|
|
|
|
|
metrics = {
|
|
|
|
'feeds': Feed.objects.count(),
|
|
|
|
'subscriptions': UserSubscription.objects.count(),
|
|
|
|
}
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
MuninGraph(graph_config, metrics).run()
|