{"id":13581811,"url":"https://github.com/fritchie/fio_benchmark_exporter","last_synced_at":"2026-03-13T19:06:14.015Z","repository":{"id":62867659,"uuid":"382215629","full_name":"fritchie/fio_benchmark_exporter","owner":"fritchie","description":"Prometheus exporter for fio benchmarks.","archived":false,"fork":false,"pushed_at":"2022-06-02T16:19:13.000Z","size":25,"stargazers_count":9,"open_issues_count":0,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T10:43:02.404Z","etag":null,"topics":["benchmarking","fio","performance-monitoring","prometheus","prometheus-exporter","storage"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fritchie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-02T03:05:54.000Z","updated_at":"2025-01-15T10:35:43.000Z","dependencies_parsed_at":"2022-11-08T06:15:41.488Z","dependency_job_id":null,"html_url":"https://github.com/fritchie/fio_benchmark_exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fritchie/fio_benchmark_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritchie%2Ffio_benchmark_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritchie%2Ffio_benchmark_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritchie%2Ffio_benchmark_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritchie%2Ffio_benchmark_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fritchie","download_url":"https://codeload.github.com/fritchie/fio_benchmark_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritchie%2Ffio_benchmark_exporter/sbom","scorecard":{"id":411707,"data":{"date":"2025-08-11","repo":{"name":"github.com/fritchie/fio_benchmark_exporter","commit":"881e9c7e740de41c1ddefee8020c501e576e765e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.16 to golang:1.16@sha256:5f6a4662de3efc6d6bb812d02e9de3d8698eea16b8eb7281f03e6f3e8383018e","Info:   2 out of   2 goCommand dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T22:52:10.611Z","repository_id":62867659,"created_at":"2025-08-18T22:52:10.612Z","updated_at":"2025-08-18T22:52:10.612Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30472989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T17:15:31.527Z","status":"ssl_error","status_checked_at":"2026-03-13T17:15:22.394Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmarking","fio","performance-monitoring","prometheus","prometheus-exporter","storage"],"created_at":"2024-08-01T15:02:15.386Z","updated_at":"2026-03-13T19:06:13.973Z","avatar_url":"https://github.com/fritchie.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Fio Benchmark Exporter\n\nPrometheus exporter for [fio](https://github.com/axboe/fio) benchmarks. Fio (Flexible I/O Tester) is a tool for storage performance benchmarking.\n\nBy default a chosen benchmark job will run periodically with the results being exported in Prometheus format.\n\n## Building and running\n\n### Build\n\n```\ngo build .\n```\n\nA sample Dockerfile, docker-compose.yaml, kustomization.yaml and kubernetes manifests are also provided.\n\n### Running\n\nRunning the exporter requires fio and the libaio development packages to be installed on the host.\n\n```\n./fio_benchmark_exporter \u003cflags\u003e\n```\n\nFor a kubernetes deployment edit kustomization.yaml as needed (you will probably need to change the storageClass in resources/pvc.yaml) and apply the resources:\n\n```\nkustomize build | kubectl apply -f -\n```\n\n#### Usage\n\n```\n./fio_benchmark_exporter -h\n```\n\n#### Flags\n\n| Name | Description |\n|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| benchmark                     | Name for a predefined set of fio job flags. Type: String. Default: latency. |\n| benchmarkRuntime              | Benchmark runtime in seconds. Fio --runtime flag. Type: String. Default: 60. |\n| cronSchedule                  | Schedule for consecutive benchmark runs. Type: String. Default: \"0 \\*/6 \\* \\* \\*\". |\n| customBenchmarkFioFlags       | Fio flags for a custom benchmark. Type: String. Experts Only. Fio can be destructive if used improperly. |\n| directory                     | Absolute path to directory for fio benchmark files. Type: String. Default: /tmp. |\n| fileSize                      | Size of file to use for fio benchmark. Fio --size flag. Type: String. Default: 1G. |\n| port                          | Listen port number. Type: String. Default: 9996. |\n| runOnce                       | Run benchmark once and exit. |\n| runOnceWait                   | Wait this duration before exiting after runOnce benchmark completes. Type: Duration. Default: 1 hour. |\n| skipInitialBenchmark          | Skip initial benchmark when app first starts. |\n| statusUpdateInterval          | Seconds to wait in between metric updates when the statusUpdates flag is used. Fio --status-interval flag. Type: String. Default: 30. |\n| statusUpdates                 | Update metrics periodically while benchmark is running. |\n\n- For cronSchedule flag syntax see: [Cron Expression Format](https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format).\n- Benchmark will always run once when app first starts unless skipInitialBenchmark flag is used.\n- Be sure benchmark cron interval is longer than benchmarkRuntime.\n- For golang duration syntax see: [Golang Duration](https://pkg.go.dev/time#ParseDuration).\n#### Predefined Benchmarks\n\n| Name             | Equivalent fio command when used with all defaults |\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| iops             | fio --name=iops --numjobs=4 --ioengine=libaio --direct=1 --bs=4k --iodepth=128 --readwrite=randrw --directory=/tmp --size=1G --runtime=60 --time_based --output-format=terse --terse-version=5 --lat_percentiles=1 --clat_percentiles=0 --group_reporting |\n| latency          | fio --name=latency --numjobs=1 --ioengine=libaio --direct=1 --bs=4k --iodepth=1 --readwrite=randrw --directory=/tmp --size=1G --runtime=60 --time_based --output-format=terse --terse-version=5 --lat_percentiles=1 --clat_percentiles=0 --group_reporting |\n| throughput       | fio --name=throughput --numjobs=4 --ioengine=libaio --direct=1 --bs=128k --iodepth=64 --readwrite=rw --directory=/tmp --size=1G --runtime=60 --time_based --output-format=terse --terse-version=5 --lat_percentiles=1 --clat_percentiles=0 --group_reporting |\n| custom           | User defined. Experts only. Fio can be destructive if used improperly.|\n\n#### Custom benchmark usage\n\nFor a custom benchmark supply all fio flags as a string.\n\n```\n./fio_benchmark_exporter -benchmark=custom -customBenchmarkFioFlags=\"--name=latency --status-interval=30 --numjobs=1 --ioengine=libaio --direct=1 --bs=4k --iodepth=1 --readwrite=randrw --directory=/tmp --size=1G --runtime=60 --time_based\"\n```\n\nThe flags\n\n```\n--output-format=terse --terse-version=5 --lat_percentiles=1 --clat_percentiles=0 --group_reporting\n```\n\nwill be used with custom benchmarks.\n\nDon't use the --output-format flag or any percentile related flags in customBenchmarkFioFlags. Additionally, don't specify a job file. Any flag that produces additional fio output may lead to metric parsing errors and incorrect reporting.\n\n## Sample Output\n\n```\n# HELP fio_benchmark_success 1 if last benchmark was successful, 0 otherwise\n# TYPE fio_benchmark_success gauge\nfio_benchmark_success{benchmark=\"latency\"} 1\n# HELP fio_cpu_sys System CPU utilization (%)\n# TYPE fio_cpu_sys gauge\nfio_cpu_sys{benchmark=\"latency\"} 9.488333\n# HELP fio_cpu_user User CPU utilization (%)\n# TYPE fio_cpu_user gauge\nfio_cpu_user{benchmark=\"latency\"} 2.686667\n# HELP fio_iodepth_1 Queue depth \u003c=1 (%)\n# TYPE fio_iodepth_1 gauge\nfio_iodepth_1{benchmark=\"latency\"} 100\n# HELP fio_iodepth_16 Queue depth 16 (%)\n# TYPE fio_iodepth_16 gauge\nfio_iodepth_16{benchmark=\"latency\"} 0\n# HELP fio_iodepth_2 Queue depth 2 (%)\n# TYPE fio_iodepth_2 gauge\nfio_iodepth_2{benchmark=\"latency\"} 0\n# HELP fio_iodepth_32 Queue depth 32 (%)\n# TYPE fio_iodepth_32 gauge\nfio_iodepth_32{benchmark=\"latency\"} 0\n# HELP fio_iodepth_4 Queue depth 4 (%)\n# TYPE fio_iodepth_4 gauge\nfio_iodepth_4{benchmark=\"latency\"} 0\n# HELP fio_iodepth_64 Queue depth 64+ (%)\n# TYPE fio_iodepth_64 gauge\nfio_iodepth_64{benchmark=\"latency\"} 0\n# HELP fio_iodepth_8 Queue depth 8 (%)\n# TYPE fio_iodepth_8 gauge\nfio_iodepth_8{benchmark=\"latency\"} 0\n# HELP fio_read_bandwidth_kbps Read bandwidth (KiB/s)\n# TYPE fio_read_bandwidth_kbps gauge\nfio_read_bandwidth_kbps{benchmark=\"latency\"} 47144\n# HELP fio_read_bw_max_kb Read bandwidth maximum (KiB/s)\n# TYPE fio_read_bw_max_kb gauge\nfio_read_bw_max_kb{benchmark=\"latency\"} 53400\n# HELP fio_read_bw_mean_kb Read bandwidth mean (KiB/s)\n# TYPE fio_read_bw_mean_kb gauge\nfio_read_bw_mean_kb{benchmark=\"latency\"} 47090.12605\n# HELP fio_read_bw_min_kb Read bandwidth minimum (KiB/s)\n# TYPE fio_read_bw_min_kb gauge\nfio_read_bw_min_kb{benchmark=\"latency\"} 38344\n# HELP fio_read_iops Read IOPS\n# TYPE fio_read_iops gauge\nfio_read_iops{benchmark=\"latency\"} 11786\n# HELP fio_read_iops_max Read IOPS maximum\n# TYPE fio_read_iops_max gauge\nfio_read_iops_max{benchmark=\"latency\"} 13350\n# HELP fio_read_iops_mean Read IOPS mean\n# TYPE fio_read_iops_mean gauge\nfio_read_iops_mean{benchmark=\"latency\"} 11772.495798\n# HELP fio_read_iops_min Read IOPS minimum\n# TYPE fio_read_iops_min gauge\nfio_read_iops_min{benchmark=\"latency\"} 9586\n# HELP fio_read_lat_max Read total latency maximum (usec)\n# TYPE fio_read_lat_max gauge\nfio_read_lat_max{benchmark=\"latency\"} 3370\n# HELP fio_read_lat_mean Read total latency mean (usec)\n# TYPE fio_read_lat_mean gauge\nfio_read_lat_mean{benchmark=\"latency\"} 66.588438\n# HELP fio_read_lat_min Read total latency minimum (usec)\n# TYPE fio_read_lat_min gauge\nfio_read_lat_min{benchmark=\"latency\"} 48\n# HELP fio_read_lat_pct90 Read total latency 90th percentile (usec)\n# TYPE fio_read_lat_pct90 gauge\nfio_read_lat_pct90{benchmark=\"latency\"} 88\n# HELP fio_read_lat_pct95 Read total latency 95th percentile (usec)\n# TYPE fio_read_lat_pct95 gauge\nfio_read_lat_pct95{benchmark=\"latency\"} 91\n# HELP fio_read_lat_pct99 Read total latency 99th percentile (usec)\n# TYPE fio_read_lat_pct99 gauge\nfio_read_lat_pct99{benchmark=\"latency\"} 152\n# HELP fio_write_bandwidth_kbps Write bandwidth (KiB/s)\n# TYPE fio_write_bandwidth_kbps gauge\nfio_write_bandwidth_kbps{benchmark=\"latency\"} 47066\n# HELP fio_write_bw_max_kb Write bandwidth maximum (KiB/s)\n# TYPE fio_write_bw_max_kb gauge\nfio_write_bw_max_kb{benchmark=\"latency\"} 53485\n# HELP fio_write_bw_mean_kb Write bandwidth mean (KiB/s)\n# TYPE fio_write_bw_mean_kb gauge\nfio_write_bw_mean_kb{benchmark=\"latency\"} 47010.689076\n# HELP fio_write_bw_min_kb Write bandwidth minimum (KiB/s)\n# TYPE fio_write_bw_min_kb gauge\nfio_write_bw_min_kb{benchmark=\"latency\"} 37120\n# HELP fio_write_iops Write IOPS\n# TYPE fio_write_iops gauge\nfio_write_iops{benchmark=\"latency\"} 11766\n# HELP fio_write_iops_max Write IOPS maximum\n# TYPE fio_write_iops_max gauge\nfio_write_iops_max{benchmark=\"latency\"} 13371\n# HELP fio_write_iops_mean Write IOPS mean\n# TYPE fio_write_iops_mean gauge\nfio_write_iops_mean{benchmark=\"latency\"} 11752.647059\n# HELP fio_write_iops_min Write IOPS minimum\n# TYPE fio_write_iops_min gauge\nfio_write_iops_min{benchmark=\"latency\"} 9280\n# HELP fio_write_lat_max Write total latency maximum (usec)\n# TYPE fio_write_lat_max gauge\nfio_write_lat_max{benchmark=\"latency\"} 3985\n# HELP fio_write_lat_mean Read total latency mean (usec)\n# TYPE fio_write_lat_mean gauge\nfio_write_lat_mean{benchmark=\"latency\"} 17.200195\n# HELP fio_write_lat_min Write total latency minimum (usec)\n# TYPE fio_write_lat_min gauge\nfio_write_lat_min{benchmark=\"latency\"} 13\n# HELP fio_write_lat_pct90 Write total latency 90th percentile (usec)\n# TYPE fio_write_lat_pct90 gauge\nfio_write_lat_pct90{benchmark=\"latency\"} 19\n# HELP fio_write_lat_pct95 Write total latency 95th percentile (usec)\n# TYPE fio_write_lat_pct95 gauge\nfio_write_lat_pct95{benchmark=\"latency\"} 21\n# HELP fio_write_lat_pct99 Write total latency 99th percentile (usec)\n# TYPE fio_write_lat_pct99 gauge\nfio_write_lat_pct99{benchmark=\"latency\"} 31\n```\n\n## Dashboard\n\nA very basic Grafana dashboard is available.\n\n[https://grafana.com/grafana/dashboards/14677](https://grafana.com/grafana/dashboards/14677)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritchie%2Ffio_benchmark_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffritchie%2Ffio_benchmark_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritchie%2Ffio_benchmark_exporter/lists"}