# rrds/newshistory - look at the news history from INN 2.2 and show which hierarchies are biggest
source	log
step	300
data	alt	GAUGE:600:0:U	count \talt\.
data	comp	GAUGE:600:0:U	count \tcomp\.
data	crc	GAUGE:600:0:U	count \tcrc(?!\.talk)\.
data	news	GAUGE:600:0:U	count \tnews\.
data	ont	GAUGE:600:0:U	count \tont\.
data	rec	GAUGE:600:0:U	count \trec\.
data	sci	GAUGE:600:0:U	count \tsci\.
data	soc	GAUGE:600:0:U	count \tsoc\.
data	talk	GAUGE:600:0:U	count \ttalk\.
archives	day-avg week-avg month-avg 3month-avg year-avg
times		day yesterday week 3month year

graph	grouparticles
	--title '##HOST## - Articles by Hierarchy'
	--lower-limit 0
	--vertical-label 'articles'
	--height 300
	DEF:alt=##DB##:alt:AVERAGE
	DEF:comp=##DB##:comp:AVERAGE
	DEF:crc=##DB##:crc:AVERAGE
	DEF:news=##DB##:news:AVERAGE
	DEF:ont=##DB##:ont:AVERAGE
	DEF:rec=##DB##:rec:AVERAGE
	DEF:sci=##DB##:sci:AVERAGE
	DEF:soc=##DB##:soc:AVERAGE
	DEF:talk=##DB##:talk:AVERAGE
	AREA:alt###COLOR1##:alt
	AREA:comp###COLOR2A##:comp
	AREA:crc###COLOR3##:crc
	AREA:news###COLOR4##:news
	AREA:ont###COLOR1A##:ont
	AREA:rec###COLOR2##:rec
	AREA:sci###COLOR3A##:sci
	AREA:soc###COLOR5##:soc
	AREA:talk###COLOR6##:talk

