Megacli to prometheus textfile exporter(node_exporter)
To use this script, prometheus recommend using a sponge
to atomically write the output.
megacli.sh | sponge <output_file>
Sponge comes from moreutils
For more information see: https://github.com/prometheus/node_exporter#textfile-collector