Forcing all munin graphs to start at 0.

This commit is contained in:
Samuel Clay 2012-09-28 09:50:12 -07:00
parent c258bbdd11
commit 79a770bd5e
14 changed files with 18 additions and 4 deletions

View file

@ -8,6 +8,7 @@ class NBMuninGraph(MuninGraph):
graph = {
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Browser Breakdown',
'graph_args' : '-l 0',
}
stats = self.stats
graph.update(dict((("%s.label" % s['_id'], s['_id']) for s in stats)))

View file

@ -10,6 +10,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Classifiers',
'graph_vlabel' : '# of classifiers',
'graph_args' : '-l 0',
'feeds.label': 'feeds',
'authors.label': 'authors',
'tags.label': 'tags',

View file

@ -10,6 +10,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Fetching History',
'graph_vlabel' : 'errors',
'graph_args' : '-l 0',
# 'feed_errors.label': 'Feed Errors',
'feed_success.label': 'Feed Success',
# 'page_errors.label': 'Page Errors',

View file

@ -9,6 +9,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Feed Counts',
'graph_vlabel' : 'Feeds Feed Counts',
'graph_args' : '-l 0',
'exception_feeds.label': 'exception_feeds',
'exception_pages.label': 'exception_pages',
'inactive_feeds.label': 'inactive_feeds',

View file

@ -9,6 +9,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Feeds & Subscriptions',
'graph_vlabel' : 'Feeds & Subscribers',
'graph_args' : '-l 0',
'feeds.label': 'feeds',
'subscriptions.label': 'subscriptions',
'profiles.label': 'profiles',

View file

@ -11,6 +11,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Loadtimes',
'graph_vlabel' : 'Loadtimes (seconds)',
'graph_args' : '-l 0',
'feed_loadtimes_avg_hour.label': 'Feed Loadtimes Avg (Hour)',
'feed_loadtimes_min_hour.label': 'Feed Loadtimes Min (Hour)',
'feed_loadtimes_max_hour.label': 'Feed Loadtimes Max (Hour)',

View file

@ -8,6 +8,7 @@ class NBMuninGraph(MuninGraph):
graph = {
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Paths',
'graph_args' : '-l 0',
}
stats = self.stats

View file

@ -10,6 +10,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Stories',
'graph_vlabel' : 'Stories',
'graph_args' : '-l 0',
'stories.label': 'stories',
'tags.label': 'tags',
'authors.label': 'authors',

View file

@ -9,6 +9,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Task Codes',
'graph_vlabel' : 'Status codes on feed fetch',
'graph_args' : '-l 0',
}
stats = self.stats
graph.update(dict((("_%s.label" % s['_id'], s['_id']) for s in stats)))

View file

@ -9,6 +9,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Task Pipeline',
'graph_vlabel' : 'Feed fetch pipeline times',
'graph_args' : '-l 0',
'feed_fetch.label': 'feed_fetch',
'feed_process.label': 'feed_process',
'page.label': 'page',

View file

@ -10,13 +10,14 @@ class NBMuninGraph(MuninGraph):
def graph_config(self):
graph = {
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Task Server Fetches',
'graph_vlabel' : '# of fetches / server',
'total.label': 'total',
'graph_title' : 'NewsBlur Task Server Fetches',
'graph_vlabel' : '# of fetches / server',
'graph_args' : '-l 0',
'total.label' : 'total',
}
stats = self.stats
graph.update(dict((("%s.label" % s['_id'], s['_id']) for s in stats)))
graph.update(dict((("%s.draw" % s['_id'], "LINESTACK") for s in stats)))
graph.update(dict((("%s.draw" % s['_id'], "AREASTACK") for s in stats)))
graph['graph_order'] = ' '.join(sorted(s['_id'] for s in stats))
return graph

View file

@ -9,6 +9,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Task Server Times',
'graph_vlabel' : 'Feed fetch time / server',
'graph_args' : '-l 0',
}
stats = self.stats

View file

@ -10,6 +10,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Updates',
'graph_vlabel' : '# of updates',
'graph_args' : '-l 0',
'update_queue.label': 'Queued Feeds last hour',
'feeds_fetched.label': 'Fetched feeds last hour',
'celery_update_feeds.label': 'Celery - Update Feeds',

View file

@ -10,6 +10,7 @@ class NBMuninGraph(MuninGraph):
'graph_category' : 'NewsBlur',
'graph_title' : 'NewsBlur Users',
'graph_vlabel' : 'users',
'graph_args' : '-l 0',
'all.label': 'all',
'monthly.label': 'monthly',
'daily.label': 'daily',