Skip to content

Instantly share code, notes, and snippets.

@gillg
gillg / rrd_to_openmetrics.py
Last active December 6, 2023 16:02
Script to convert a set of RRD files (issued from collectd for example) to Open Metrics format (prometheus)
#!/usr/bin/env python
from __future__ import print_function
'''
Usage:
./rrd_to_openmetrics.py /path/rrd_directory/ > openmetrics.txt
'''
'''
Directory structure :