Skip to content

Python script to export live FIO data to Influxdb. Sample dashboard provided.

License

Notifications You must be signed in to change notification settings

philcanman/fio-to-influxdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fio-to-influxdb

A simple Python 3 script to help graph FIO output in real-time. This script parses FIO minimal terse output and feeds it to InfluxDB. Includes an example grafana dashboard that can be tweaked as needed.

Alt text

./fio_to_influxdb.py -h
usage: fio_to_influxdb [-h] [-ip IP] [-port PORT] [-database DATABASE]

optional arguments:
  -h, --help          show this help message and exit
  -ip IP              IP or DNS name of host running influxdb. Default is
                      localhost
  -port PORT          Port used to connect to influxdb. Default is 8086
  -database DATABASE  Name of database created in influxdb. Default is fio

 The following options must be added to the fio command for this script to function
     --status-interval=1
     --minimal
 Example usage:
 fio instructionfile.fio --status-interval=1 --minimal | fio_to_influxdb.py

Requirements

  • Python 3
  • InfluxDB installed and running (reachable via network or local)
  • FIO

Usage

Run FIO and pipe to this script

fio test.fio  --status-interval=1 --minimal | ./fio_to_influxdb.py -ip 10.255.72.95

Connecting to influx database with the following parameters
                IP/DNS:   10.255.72.95
                Port:     8086
                Database: fio
            
2021-04-14T15:49:24Z | Job Name: PythonTest02 | Read IOPS: 2628 | Write IOPS: 325 | Block(read/write): 1024.0 / 6.3

Job complete

About

Python script to export live FIO data to Influxdb. Sample dashboard provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages