{"id":42598054,"url":"https://github.com/famedly/openmetrics-vici-exporter","last_synced_at":"2026-01-29T00:13:13.941Z","repository":{"id":204514578,"uuid":"660543953","full_name":"famedly/openmetrics-vici-exporter","owner":"famedly","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T13:34:12.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T17:53:25.745Z","etag":null,"topics":["charon","openmetrics","prometheus","prometheus-exporter","strongswan"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/famedly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-06-30T08:44:08.000Z","updated_at":"2024-02-07T08:47:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"65532b0d-ab78-4676-ad4d-ee38d75787f7","html_url":"https://github.com/famedly/openmetrics-vici-exporter","commit_stats":null,"previous_names":["famedly/openmetrics-vici-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/famedly/openmetrics-vici-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/famedly%2Fopenmetrics-vici-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/famedly%2Fopenmetrics-vici-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/famedly%2Fopenmetrics-vici-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/famedly%2Fopenmetrics-vici-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/famedly","download_url":"https://codeload.github.com/famedly/openmetrics-vici-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/famedly%2Fopenmetrics-vici-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28857214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"ssl_error","status_checked_at":"2026-01-28T22:56:00.861Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["charon","openmetrics","prometheus","prometheus-exporter","strongswan"],"created_at":"2026-01-29T00:13:13.272Z","updated_at":"2026-01-29T00:13:13.928Z","avatar_url":"https://github.com/famedly.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openmetrics-vici-exporter\n\nProvides an openmetrics compatible endpoint for strongSwan charon's VICI.\n\n\n## Features\n\nas of `v0.1.0` the following metrics are exporterd:\n\n| name | |\n|------|-|\n|`sa_uptime`| seconds since state changed to up |\n|`sa_rekey_time`||\n\n| name |\n|`sa_child_bytes_in`|\n|`sa_child_bytes_out`|\n|`sa_child_packets_in`|\n|`sa_child_packets_out`|\n\n### Planned Features:\n* `v0.2.0`\n    * an info metric showing the applied configuration\n    * an enum metric showing the current state / queued jobs per connection\n\n## Usage\n\n### Deployment\nYou have a few options avalible:\n1. [Binary Releases](/releases)\n2. Docker Image\n    * `docker-oss.nexus.famedly.de/openmetrics-vici-exporter\n\n### Configuration\n\nAll values have defaults, no configuration is necessary, but an exhaustive default configuration is still provided, see [`config.yml`](/blob/main/config.yml).\n\nYou can also set these as environment variables, prefixed with `VICI_EXPORTER`\n\n| Key | Default | |\n|-----|---------|-|\n|`vici.socket`|`/var/run/charon.vici`| unix socket where vici is reachable |\n|`vici.interval`|`10`| how often to get data from the vici, in seconds |\n|`server.address`|`0.0.0.0`| any bind address, ipv6 is also allowed `[::1]`|\n|`server.port`|`8000`||\n\n## Development\n\nif you'd like to contribute you are free to do so.\n\nwe provide a nix flake (`nix develop`) to setup the rust enviroment for you, but there's still some manual setup to do.\n\nyou need charon running with the vici plugin enabled in the configuration.\n\nmake sure your user has the required permissions to access the vici socket.\n\non a debian system you can just run the following to give yourself access:\n\n``` bash\nsudo groupadd vici\nsudo chown root:vici /var/run/charon.vici\nsudo chmod 0770 /var/run/charon.vici\nsudo usermod -aG vici $(whoami)\n```\n\n` cargo run \u0026\u0026 curl http://[::1]:8001/metrics `\n\n## License\n\n[AGPL-3.0-only](LICENSE.md)\n\n## Authors\n\nThis software is authored and maintained as open-source by Famedly's Infrastructure Team.\n\n- Evelyn Alicke \u003ce.alicke@famedly.com\u003e\n- Famedly GmbH \u003cinfo@famedly.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffamedly%2Fopenmetrics-vici-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffamedly%2Fopenmetrics-vici-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffamedly%2Fopenmetrics-vici-exporter/lists"}