├── .cirrus.yml ├── .editorconfig ├── .github ├── dependabot.yml └── workflows │ ├── audit.yaml │ ├── ci.yaml │ └── release.yaml ├── .gitignore ├── .rustfmt.toml ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── Makefile ├── README.md ├── example-config.yaml ├── grafana └── jail_exporter.json ├── man └── jail_exporter.8 ├── rc.d └── jail_exporter.in ├── src ├── bcrypt.rs ├── cli.rs ├── cli │ └── validator.rs ├── errors.rs ├── exporter.rs ├── file.rs ├── httpd.rs ├── httpd │ ├── auth.rs │ ├── auth │ │ ├── basic_auth.rs │ │ └── basic_auth_config.rs │ ├── collector.rs │ ├── errors.rs │ ├── handlers.rs │ └── templates.rs ├── macros.rs ├── main.rs ├── racctrctl.rs ├── rcscript.rs ├── rctlstate.rs └── user.rs ├── templates └── index.html └── test-data ├── config_invalid.yaml ├── config_null.yaml └── config_ok.yaml /.cirrus.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.cirrus.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/audit.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.github/workflows/audit.yaml -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.swp 3 | /target 4 | **/*.rs.bk 5 | -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/.rustfmt.toml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/README.md -------------------------------------------------------------------------------- /example-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/example-config.yaml -------------------------------------------------------------------------------- /grafana/jail_exporter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/grafana/jail_exporter.json -------------------------------------------------------------------------------- /man/jail_exporter.8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/man/jail_exporter.8 -------------------------------------------------------------------------------- /rc.d/jail_exporter.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/rc.d/jail_exporter.in -------------------------------------------------------------------------------- /src/bcrypt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/bcrypt.rs -------------------------------------------------------------------------------- /src/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/cli.rs -------------------------------------------------------------------------------- /src/cli/validator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/cli/validator.rs -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/errors.rs -------------------------------------------------------------------------------- /src/exporter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/exporter.rs -------------------------------------------------------------------------------- /src/file.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/file.rs -------------------------------------------------------------------------------- /src/httpd.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd.rs -------------------------------------------------------------------------------- /src/httpd/auth.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/auth.rs -------------------------------------------------------------------------------- /src/httpd/auth/basic_auth.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/auth/basic_auth.rs -------------------------------------------------------------------------------- /src/httpd/auth/basic_auth_config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/auth/basic_auth_config.rs -------------------------------------------------------------------------------- /src/httpd/collector.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/collector.rs -------------------------------------------------------------------------------- /src/httpd/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/errors.rs -------------------------------------------------------------------------------- /src/httpd/handlers.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/handlers.rs -------------------------------------------------------------------------------- /src/httpd/templates.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/httpd/templates.rs -------------------------------------------------------------------------------- /src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/macros.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/racctrctl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/racctrctl.rs -------------------------------------------------------------------------------- /src/rcscript.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/rcscript.rs -------------------------------------------------------------------------------- /src/rctlstate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/rctlstate.rs -------------------------------------------------------------------------------- /src/user.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/src/user.rs -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/templates/index.html -------------------------------------------------------------------------------- /test-data/config_invalid.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/test-data/config_invalid.yaml -------------------------------------------------------------------------------- /test-data/config_null.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | basic_auth_users: ~ 3 | -------------------------------------------------------------------------------- /test-data/config_ok.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phyber/jail_exporter/HEAD/test-data/config_ok.yaml --------------------------------------------------------------------------------