{"id":20518295,"url":"https://github.com/tricked-dev/vwmetrics","last_synced_at":"2025-10-19T09:24:11.825Z","repository":{"id":64219117,"uuid":"573930734","full_name":"Tricked-dev/vwmetrics","owner":"Tricked-dev","description":"Turn your Vaultwarden database into Prometheus metrics","archived":false,"fork":false,"pushed_at":"2025-02-26T19:27:10.000Z","size":281,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:05:27.805Z","etag":null,"topics":["prometheus","vaultwarden","vaultwarden-exporter"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Tricked-dev.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":"2022-12-03T22:03:56.000Z","updated_at":"2025-03-11T13:45:09.000Z","dependencies_parsed_at":"2023-01-15T05:30:24.746Z","dependency_job_id":null,"html_url":"https://github.com/Tricked-dev/vwmetrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fvwmetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fvwmetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fvwmetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tricked-dev%2Fvwmetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tricked-dev","download_url":"https://codeload.github.com/Tricked-dev/vwmetrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804786,"owners_count":21164131,"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":["prometheus","vaultwarden","vaultwarden-exporter"],"created_at":"2024-11-15T21:39:31.732Z","updated_at":"2025-10-19T09:24:11.819Z","avatar_url":"https://github.com/Tricked-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VWMetrics\n\nTurn your Vaultwarden database into Prometheus metrics.\n\n## Usage\n\nBuild the binary from source or download the arm build from the releases page.\n\n```\nTurn your vaultwarden database into a api endpoint\ngithub: https://github.com/Tricked-dev/vwmetrics\nlicense: Apache-2.0\n\nUsage: vwmetrics [OPTIONS] --database-url \u003cDATABASE_URL\u003e\n\nOptions:\n  -d, --database-url \u003cDATABASE_URL\u003e\n          the database url to connect to `sqlite://db.sqlite3?mode=ro` for sqlite, `postgres://user:pass@localhost/db` for postgres or `mysql://user:pass@localhost/db` for mysql/mariadb\n\n          [env: DATABASE_URL=]\n\n  -p, --port \u003cPORT\u003e\n          the port to listen on\n\n          [env: PORT=]\n          [default: 3040]\n\n  -b, --host \u003cHOST\u003e\n          the host to bind to\n\n          [env: HOST=]\n          [default: 127.0.0.1]\n\n  -u, --update-seconds \u003cUPDATE_SECONDS\u003e\n          Time between connecting and updating the metrics\n\n          [env: UPDATE_SECONDS=]\n          [default: 60]\n\n  -h, --help\n          Print help information (use `-h` for a summary)\n\n  -V, --version\n          Print version information\n```\n\nThe metrics endpoint gets started on `127.0.0.1:3040/metrics` by default.\n\n### systemd\n\n```init\n# /home/\u003cuser\u003e/.config/systemd/user/vwmetrics.service\n[Unit]\nDescription=vwmetrics\nAfter=network.target\n\n[Service]\nExecStart=/home/\u003cuser\u003e/vwmetrics/vwmetrics\nEnvironment=\"UPDATE_SECS=7200\"\nEnvironment=\"DATABASE_URL=query string\"\nType=simple\nRestart=always\nWorkingDirectory=/home/\u003cuser\u003e/vwmetrics\n\n[Install]\nWantedBy=default.target\nRequiredBy=network.target\n```\n\n## Example output\n\n![](.github/pics/pic.png)\n\n[![](.github/pics/prev.png)](./.github/dash.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Fvwmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftricked-dev%2Fvwmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftricked-dev%2Fvwmetrics/lists"}