Skip to content

Instantly share code, notes, and snippets.

@ms5
ms5 / simple-rrd-merge.py
Created June 16, 2021 12:19 — forked from arantius/simple-rrd-merge.py
A very simple script to merge multiple RRD files, since none of those available seem to work.
#!/usr/bin/env python
"""Simple script to merge multiple RRD files together.
Accepts any number of RRD file names as arguments. Produces an "rrdtool dump"
style file on stdout. The last RRD file should have a slot for every possible
record in the resulting merged RRD.
Run something like:
$ python simple-merge-rrd.py filea.rrd fileb.rrd filec.rrd | \