Tool to migrate smoothly from Munin (RRD) to InfluxDB and Grafana dashboards.
Provide two commands:
Data from Munin RRD databases are combined and imported into an InfluxDB cluster (version 0.10 and later).
Munin fields from a same plugin are grouped as columns of the same InfluxDB time series.
Grafana layout settings are imported from Munin plugin's configuration. Supported elements:
pip install munin-influxdb
Or the repository
git clone https://github.com/mvonthron/munin-influxdb.git sudo python setup.py install
$ sudo ./muninflux import
A cron job will be automatically added after installation to refresh data from munin every 5 minutes (Munin default)
Munin stores data in a number of ways: the main storage is RRD databases, but we also have
access to the cache of HTML webpages, config files and fresh data storage (see below).
munin-influxdb reads the
file to discover the plugins to extract and some of their settings (legend, thresholds...). The RRD databases (where the
data history is kept) are then extracted to XML (because reading RRD's native format is even worse than parsing XML), parsed,
and uploaded to InfluxDB. Then the information extracted from the
htmlconf files are used to help generate a Grafana
dashboard linked to the new InfluxDB storage.
Fresh data is not obtain from the RRD databases but from Munin's storable files. This is a Perl specific format where Munin stores the two latest values for each metric.
This program and its documentation are released under the terms of the BSD license.
2016, Manuel Vonthron firstname.lastname@example.org