{"id":13735673,"url":"https://github.com/galexrt/srcds_exporter","last_synced_at":"2025-06-23T00:06:03.979Z","repository":{"id":57512376,"uuid":"89149872","full_name":"galexrt/srcds_exporter","owner":"galexrt","description":"Prometheus exporter for SRCDS Gameserver using Source RCON.","archived":false,"fork":false,"pushed_at":"2025-05-31T17:40:19.000Z","size":9652,"stargazers_count":27,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T06:11:24.834Z","etag":null,"topics":["prometheus","prometheus-exporter","srcds"],"latest_commit_sha":null,"homepage":"","language":"Go","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/galexrt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2017-04-23T14:56:58.000Z","updated_at":"2025-03-05T23:33:06.000Z","dependencies_parsed_at":"2023-12-29T23:28:43.557Z","dependency_job_id":"e1ef8b14-2e7b-4d44-8509-ed623e64fb84","html_url":"https://github.com/galexrt/srcds_exporter","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/galexrt/srcds_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fsrcds_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fsrcds_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fsrcds_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fsrcds_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galexrt","download_url":"https://codeload.github.com/galexrt/srcds_exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fsrcds_exporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386810,"owners_count":23150873,"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","prometheus-exporter","srcds"],"created_at":"2024-08-03T03:01:09.609Z","updated_at":"2025-06-23T00:05:58.950Z","avatar_url":"https://github.com/galexrt.png","language":"Go","funding_links":[],"categories":["Software"],"sub_categories":["Gameserver Management"],"readme":"# srcds_exporter\n\n![build_release](https://github.com/galexrt/srcds_exporter/workflows/build_release/badge.svg)\n\nSRCDS Gameserver Prometheus exporter.\n\nContainer Image available from:\n\n* [Quay.io](https://quay.io/repository/galexrt/srcds_exporter)\n* [GHCR.io](https://github.com/users/galexrt/packages/container/package/srcds_exporter)\n\nContainer Image Tags:\n\n* `GIT_TAG` - Each [Git tags/ releases](https://github.com/galexrt/srcds_exporter/releases/) is built and published.\n\n## Compatibility\n\n### Tested Games\n\n* [Counter-Strike: Global Offensive](https://store.steampowered.com/app/730/CounterStrike_Global_Offensive/)\n* [Counter-Strike: Source](https://store.steampowered.com/app/240/CounterStrike_Source/)\n* [Garry's Mod](https://store.steampowered.com/app/4000/Garrys_Mod/)\n* [Team Fortress 2](https://store.steampowered.com/app/440/Team_Fortress_2/)\n\nIf you have any issues with a game, please create an issue containing the RCON output of `status` command and we'll see what we can do to fix compatibility.\n\n## Collectors\n\nA collector is collecting certain metrics. Which collectors are enabled is controlled by the `--collectors.enabled` flag.\n\n### Enabled by default\n\n| Name          | Description          |\n| ------------- | -------------------- |\n| `playercount` | Current player count |\n| `map`         | Current map played   |\n\n### Disabled by default\n\n| Name      | Description                                                  |\n| --------- | ------------------------------------------------------------ |\n| `players` | Report all players by with their Steam ID label as a metric. |\n\n## Usage\n\nCreate the `srcds_exporter` config file (see [srcds.example.yml](srcds.example.yml) for an example). The config file can be named whatever you want, the path to the config must be passed to the `srcds_exporter` through the `-config.file=FILE_PATH` flag (default: `./srcds.yaml` (current directoy file `srcds.yaml`)).\n\nThen just run the `srcds_exporter` binary, through Docker (don't forget to add a mount so the config is available in the container), directly or by having it in your `PATH`.\n\n### Flags\n\nTo get a list of all available flags, use the `--help` flag (e.g., `srcds_exporter --help`).\n\nExample output:\n\n```shell\n$ srcds_exporter --help\nUsage of srcds_exporter:\n      --collectors.enabled string   Comma separated list of active collectors (default \"map,playercount\")\n      --collectors.print            If true, print available collectors and exit.\n      --config.file string          Config file to use. (default \"./srcds.yaml\")\n      --log-level string            Set log level (default \"INFO\")\n      --version                     Show version information\n      --web.listen-address string   The address to listen on for HTTP requests (default \":9137\")\n      --web.telemetry-path string   Path the metrics will be exposed under (default \"/metrics\")\npflag: help requested\nexit status 2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalexrt%2Fsrcds_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalexrt%2Fsrcds_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalexrt%2Fsrcds_exporter/lists"}