{"id":13337159,"url":"https://github.com/theobori/teeworlds-prometheus-exporter","last_synced_at":"2026-06-09T03:41:26.096Z","repository":{"id":244140069,"uuid":"803554616","full_name":"theobori/teeworlds-prometheus-exporter","owner":"theobori","description":"♥️ Teeworlds Exporter for Prometheus","archived":false,"fork":false,"pushed_at":"2024-07-27T17:12:01.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T10:37:55.849Z","etag":null,"topics":["exporter","prometheus","teeworlds"],"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/theobori.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-05-21T00:25:20.000Z","updated_at":"2025-01-02T18:34:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc14954e-2b1a-40c5-a05b-6ca35b7f6fe6","html_url":"https://github.com/theobori/teeworlds-prometheus-exporter","commit_stats":null,"previous_names":["theobori/teeworlds-prometheus-exporter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theobori/teeworlds-prometheus-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fteeworlds-prometheus-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fteeworlds-prometheus-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fteeworlds-prometheus-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fteeworlds-prometheus-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theobori","download_url":"https://codeload.github.com/theobori/teeworlds-prometheus-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fteeworlds-prometheus-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285894270,"owners_count":27249632,"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","status":"online","status_checked_at":"2025-11-23T02:00:06.149Z","response_time":135,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["exporter","prometheus","teeworlds"],"created_at":"2024-07-29T19:11:13.856Z","updated_at":"2025-11-23T03:04:19.776Z","avatar_url":"https://github.com/theobori.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teeworlds Exporter for Prometheus\n\n![golangci-lint](https://github.com/theobori/teeworlds-prometheus-exporter/actions/workflows/lint.yml/badge.svg) ![build](https://github.com/theobori/teeworlds-prometheus-exporter/actions/workflows/build.yml/badge.svg)\n\nThis is a server that scrapes Teeworlds master servers and econ servers, get stats and exports them via HTTP for Prometheus consumption.\n\n## 📖 Build and run\n\nFor the build, you only need the following requirements:\n\n- [Go](https://golang.org/doc/install) 1.22.3\n\n\nNext to the Go application you could need the following requirements:\n- [Teeworlds server](https://www.teeworlds.com/?page=downloads\u0026id=14786) 0.7\n  - With a econ server\n\nNow you can build and run the Go application, check the `-h` or `--help` flag if needed.\n\n## 🔎 Metrics informations\n\nThe metrics are detailed below.\n\n| Name | Description |\n| -- | -- |\n| `teeworlds_server_players` | Total number of players in a Teeworlds server. |\n| `teeworlds_master_server_players` | Total number of players on a master server. |\n| `teeworlds_master_server_servers` | Total number of servers registered on a master server. |\n| `teeworlds_master_server_request_duration_seconds` | Request duration when refreshing a master server. From client request to full data server response. |\n| `teeworlds_master_server_request_total` | Total number of master server requests. |\n| `teeworlds_econ_event_total` | Total number of received econ events. |\n\n## 🤝 Contribute\n\nIf you want to help the project, you can follow the guidelines in [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## ⚙️ YAML configuration\n\nThe YAML configuration is supposed to have the following format.\n\n```yaml\nservers:\n  econ:\n    - host: localhost\n      port: 7000\n      password: hello_world\n\n  master:\n    - protocol: http\n      url: \"https://master1.ddnet.tw/ddnet/15/servers.json\"\n      refresh_cooldown: 10\n\n    - protocol: udp\n      host: \"master1.teeworlds.com\"\n      port: 8283\n      refresh_cooldown: 15\n    \n    - protocol: udp\n      host: \"master2.teeworlds.com\"\n      port: 8283\n      refresh_cooldown: 15\n    \n    - protocol: udp\n      host: \"master3.teeworlds.com\"\n      port: 8283\n      refresh_cooldown: 15\n\n    - protocol: udp\n      host: \"master4.teeworlds.com\"\n      port: 8283\n      refresh_cooldown: 15\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheobori%2Fteeworlds-prometheus-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheobori%2Fteeworlds-prometheus-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheobori%2Fteeworlds-prometheus-exporter/lists"}