Diskbench exporter
|
|
The diskbench exporter can measure the write and read speed and authorization of locally and remotely mounted file systems. It cyclically writes a file of a selectable size to a directory and reads it out again. This can be used to monitor whether the speeds fluctuate greatly and whether backups, for example, are a reason for performance fluctuations.
The node exporter and
Windows exporter determine how much throughput certain storage devices currently have.
However, neither measures how much is theoretically possible.
The diskbench exporter can also be used for this purpose.
In the following cases, it makes sense to regularly perform a throughput check:
-
Performance-sensitive storage/storage
-
Network drives where a fluctuation in throughput is to be expected, which may have an impact on the speed or stability of the application
A file of a definable size is written when the exporter is called, then read again and the checksum checked.
The exporter then outputs the success and duration of the individual operations for each configured file.
Configuration
The configuration is located in the file vimon/config/diskbench_exporter/diskbench_exporter.conf.
1..n check files can be stored here.
Each block begins with the property "disk" and looks like this:
#Label für das Prometheus-Monitoring:
disk:VIMON_SHARE
#Pfad und Dateiname für die Testdatei:
testfile:/tmp/diskbench_exporter/virtimobench.bin
#Datei nach dem erfolgreichen Lesen löschen?
cleanupFiles:true
#Zeitstempel an den Dateinamen anfügen?
appendTimestamp:true
#Dateigröße in Byte:
fileSize:1048576
#Timeout zum Schreiben in ms:
writeTimeout:3000
#Timeout zum Lesen in ms:
readTimeout:1000
#pre-/post-Processing-Befehle:
#Befehl zum Ausführen vor einer Schreib-Operation (bspw. Verzeichnis erzeugen):
preProcessingCommand:mkdir -p /tmp/diskbench_exporter/
preProcessingCommandTimeout=1000
#Befehl zum Ausführen nach der Lese-Operation (bspw. Überbleibsel weg räumen):
postProcessingCommand:/virtimo/vimon/config/diskbench_exporter/scripts/diskbench_cleaner.sh /tmp/diskbench_exporter/virtimobench.bin_*
postProcessingCommandTimeout=1000
|
The operations are performed sequentially. All timeouts together should therefore not exceed the scraping interval of this Prometheus job. |