mristability.py will crawl over a directory of Siemens MRI Stability report files, read each report file, transform it to JSON, and write the transformed data to stdout in a way that is consumable by Telegraf using the json_v2 input data format.
mristability.py is self-contained Python script (Python 3.4+) with no external dependencies.
Tip
You can specify the base directory using the --base-dir argument or the BASEDIR environment variable.
mristability.py --base-dir /path/to/stability/reportsThe included mristability.toml file is a Telegraf input exec configuration file.
This configuration file defines how to execute mristability.py and consume its output using the Telegraf
json_v2 input data format.