Skip to content

A script to assist with manipulating data in rrdtool dump output.

License

Notifications You must be signed in to change notification settings

bangert/rrdtool-hole-puncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rrdtool-hole-puncher

Modify XML data generated by rrdtool dump such that all values in the given timespan are set to NaN.

Only one hole can be punched at a time. Call this script multiple times, to punch multiple holes.

Be aware, that if your hole is smaller than the aggregation interval of one of the aggregations, your data will not be erased from that aggregation.

This script is based upon work by RobM at http://stackoverflow.com/questions/10298484/remove-data-from-rrdtool

Sample usage:

    rrdtool dump foo.rrd \
       | python rrdtool-hole-puncher.py 1486335600 1486421700 \
       | rrdtool restore - foo_trimmed.rrd

About

A script to assist with manipulating data in rrdtool dump output.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages