{"id":13582049,"url":"https://github.com/sans-sroc/file_exporter","last_synced_at":"2025-04-12T07:17:29.178Z","repository":{"id":37001959,"uuid":"381501166","full_name":"sans-sroc/file_exporter","owner":"sans-sroc","description":"Prometheus Metrics for Files for Any Operating System","archived":false,"fork":false,"pushed_at":"2025-04-11T01:11:03.000Z","size":207,"stargazers_count":7,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T07:17:20.061Z","etag":null,"topics":["exporter","filesystem","linux","macos","prometheus","prometheus-exporter","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sans-sroc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-29T21:27:47.000Z","updated_at":"2025-01-14T22:45:31.000Z","dependencies_parsed_at":"2024-01-10T04:17:19.990Z","dependency_job_id":"431fec4a-c40f-4775-bc5e-7fd4ccec843a","html_url":"https://github.com/sans-sroc/file_exporter","commit_stats":{"total_commits":98,"total_committers":3,"mean_commits":"32.666666666666664","dds":0.5612244897959184,"last_synced_commit":"404e807423da7913f420960ccc7439dd93a8f8aa"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sans-sroc%2Ffile_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sans-sroc%2Ffile_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sans-sroc%2Ffile_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sans-sroc%2Ffile_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sans-sroc","download_url":"https://codeload.github.com/sans-sroc/file_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530606,"owners_count":21119601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["exporter","filesystem","linux","macos","prometheus","prometheus-exporter","windows"],"created_at":"2024-08-01T15:02:24.232Z","updated_at":"2025-04-12T07:17:29.157Z","avatar_url":"https://github.com/sans-sroc.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# File Exporter\n\nPrometheus Exporter for Files.\n\nInspired by [filestat_exporter](https://github.com/michael-doubez/filestat_exporter).\n\nThis 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.\n\nIt 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.\n\n## Features\n\n- CRC32 of all paths being monitored\n- Operations performed on paths such as CREATE, REMOVE, and WRITE\n- File modified timed (directories are omitted)\n\n## Usage\n\n```bash\nfile_exporter --path path/to/a/file/or/directory\n```\n\n## Help\n\nIf you do not specify a command, the default is `server`, so `file_exporter --path /tmp` and `file_exporter server --path /tmp` are equivalent.\n\n```man\nNAME:\n   files_exporter - file_exporter\n\nUSAGE:\n   files_exporter [global options] command [command options] [arguments...]\n\nVERSION:\n   1.0.0\n\nAUTHOR:\n   Erik Kristensen \u003cekristensen@sans.org\u003e\n\nCOMMANDS:\n   server   server\n   version  print version\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --telemetry.addr value              Host and port to listen on (default: \"0.0.0.0:9183\") [$TELEMTRY_ADDR]\n   --telemetry.path value              Path to listen for telemetry on (default: \"/metrics\") [$TELEMETRY_PATH]\n   --path value, -p value              Path to monitor, will not be recursed [$SINGLE_PATH]\n   --recursive-path value, --rp value  Path to monitor with recursion [$RECURSIVE_PATH]\n   --log-level value, -l value         Log Level (default: \"info\") [$LOGLEVEL]\n   --config value                      configuration file\n   --help, -h                          show help (default: false)\n   --version, -v                       print the version (default: false)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsans-sroc%2Ffile_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsans-sroc%2Ffile_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsans-sroc%2Ffile_exporter/lists"}