Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sans-sroc/file_exporter
Prometheus Metrics for Files for Any Operating System
https://github.com/sans-sroc/file_exporter
exporter filesystem linux macos prometheus prometheus-exporter windows
Last synced: about 2 months ago
JSON representation
Prometheus Metrics for Files for Any Operating System
- Host: GitHub
- URL: https://github.com/sans-sroc/file_exporter
- Owner: sans-sroc
- License: mit
- Created: 2021-06-29T21:27:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-24T23:35:23.000Z (2 months ago)
- Last Synced: 2024-07-27T04:33:56.676Z (2 months ago)
- Topics: exporter, filesystem, linux, macos, prometheus, prometheus-exporter, windows
- Language: Go
- Homepage:
- Size: 179 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File Exporter
Prometheus Exporter for Files.
Inspired by [filestat_exporter](https://github.com/michael-doubez/filestat_exporter).
This project is a little more simplistic and is configurable entirely from the command line, it also monitors for filesystem events and updates the metrics using a library.
It exposes file modified time and the CRC32 hash of the file because it can be represented in float64 which then can be used as a value to a gauge metric in prometheus directly.
## Features
- CRC32 of all paths being monitored
- Operations performed on paths such as CREATE, REMOVE, and WRITE
- File modified timed (directories are omitted)## Usage
```bash
file_exporter --path path/to/a/file/or/directory
```## Help
If you do not specify a command, the default is `server`, so `file_exporter --path /tmp` and `file_exporter server --path /tmp` are equivalent.
```man
NAME:
files_exporter - file_exporterUSAGE:
files_exporter [global options] command [command options] [arguments...]VERSION:
1.0.0AUTHOR:
Erik KristensenCOMMANDS:
server server
version print version
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--telemetry.addr value Host and port to listen on (default: "0.0.0.0:9183") [$TELEMTRY_ADDR]
--telemetry.path value Path to listen for telemetry on (default: "/metrics") [$TELEMETRY_PATH]
--path value, -p value Path to monitor, will not be recursed [$SINGLE_PATH]
--recursive-path value, --rp value Path to monitor with recursion [$RECURSIVE_PATH]
--log-level value, -l value Log Level (default: "info") [$LOGLEVEL]
--config value configuration file
--help, -h show help (default: false)
--version, -v print the version (default: false)
```