Web frontend to RRDtool based on Django
- Python >= 3.0
- Django >= 1.8
- python-rrdtool >= 1.4.7
The recommended python-rrdtool fork python-rrdtool
$ pip install django-rrd
INSTALLED_APPS = (
...
'djangorrd',
...
)
urlpatterns = [
...
url(r'^rrd/', include('djangorrd.urls', namespace='rrd')),
...
]
You can feed RRD with a values by using one of the options:
Use original rrdtool to update the RRD, for example:
$ rrdtool update path/to/file.rrd N:1234
Use management command rrd_poller to update the RRD. The command's syntax is the same as the "rrdtool update" tool, but you have to replace a file path with a RRD name defined in django admin.
$ ./manage.py rrd_poller name N:1234
Invoke rrd.update(args) from your python script, for example:
from djangorrd.models import RRD
rrd = RRD.objects.get(name='name')
rrd.update(['N:1234'])
Open a link "/rrd/graph/NAME/" to get a graph.