# rrds/snmp-routes-* - route counts by BGP peer

# Unfortunately, it doesn't scale to Internet size routing tables.  
# I estimate that our Internet router, with 2 peers (full Internet
# routing table from each), would take about 45 minutes to fetch 
# this information.  Working on a replacement.

source	snmp-route
step 	300
archives day-avg week-avg month-avg 3month-avg year-avg day-max week-max month-max 3month-max year-max
times	day yesterday week month 3month year
data	routes=routes-* GAUGE:1200:0:80000
data	bestroutes=routes-best-* GAUGE:1200:0:80000

graph	routes-*
	--title "##HOST## - Routes from peer ##WILDPART## (##GRAPHTIME##)"
	--lower-limit 0
	--vertical-label 'routes'
	DEF:routes=##DB##:routes:AVERAGE
	DEF:bestroutes=##DB##:bestroutes:AVERAGE
	'LINE1:routes###COLOR1##:total routes'
	'LINE1:bestroutes###COLOR2##:best routes\l'
	'GPRINT:routes:AVERAGE:total avg=%.1lf%s'
	'GPRINT:routes:MAX:max=%.1lf%s\r'
	'GPRINT:bestroutes:AVERAGE:best avg=%.1lf%s'
	'GPRINT:bestroutes:MAX:max=%.1lf%s\r'

