I have some RSS feeds that are periodically fetched, but the time between each check is essentially random. After each fetch, the number of new items is logged along with the time of the fetch.
I want to make a graph using RRDTool which combines the data from each feed and shows the number of new items per hour over the course of a day.
For instance, I want it to show what the rate is for all feeds between the hours of 17:00 - 18:00, 18:00 - 19:00, etc. I want to use the unit new items/hour
.
I have looked at the man pages and a tutorial, but the concepts of using multiple data sources and RRA's in this particular scenario is a bit over my head. I understand that I want to input the data using something like this:
rrdtool update feed1.rrd 1445113625:14 # 14 new items
rrdtool update feed2.rrd 1445113627:8 # 8 new items
rrdtool update feed3.rrd 1445113629:22 # 22 new items
rrdtool update feed1.rrd 1445113748:4 # 4 new items
rrdtool update feed2.rrd 1445113750:8 # 8 new items
rrdtool update feed3.rrd 1445113752:16 # 16 new items
How would I set up the rrdtool create
and rrdtool graph
commands to get the results I am looking for?