{"id":26123218,"url":"https://github.com/puttydotexe/fx_prometheus","last_synced_at":"2026-02-13T22:01:45.609Z","repository":{"id":281510370,"uuid":"945483893","full_name":"puttydotexe/fx_prometheus","owner":"puttydotexe","description":"Export critical performance metrics with ease in pure Lua!","archived":false,"fork":false,"pushed_at":"2025-03-09T15:11:36.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T05:22:56.002Z","etag":null,"topics":["fivem","grafana","gta5","monitoring","performance","prometheus"],"latest_commit_sha":null,"homepage":"https://p.utty.dev/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puttydotexe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2025-03-09T14:34:57.000Z","updated_at":"2025-03-09T15:15:34.000Z","dependencies_parsed_at":"2025-03-09T16:23:02.795Z","dependency_job_id":"76e8418c-be50-46dd-b3e3-3292591c688a","html_url":"https://github.com/puttydotexe/fx_prometheus","commit_stats":null,"previous_names":["puttydotexe/fx_prometheus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttydotexe%2Ffx_prometheus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttydotexe%2Ffx_prometheus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttydotexe%2Ffx_prometheus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puttydotexe%2Ffx_prometheus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puttydotexe","download_url":"https://codeload.github.com/puttydotexe/fx_prometheus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248725091,"owners_count":21151626,"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":["fivem","grafana","gta5","monitoring","performance","prometheus"],"created_at":"2025-03-10T15:45:59.295Z","updated_at":"2026-02-13T22:01:40.565Z","avatar_url":"https://github.com/puttydotexe.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"![fx_prometheus](https://i.imgur.com/NHJRSN3.png)\n\n# fxPrometheus\n**Export critical performance metrics with ease in pure Lua!\u003c/br\u003e**\nThis was written in preparation of FiveM commits [#3221](https://github.com/citizenfx/fivem/pull/3221) and [#3162](https://github.com/citizenfx/fivem/pull/3162).\n\n\u003e [!CAUTION]\n\u003e This project is still a work in progress and not recommended for production use just yet.\n\n## Frequently Asked Questions\n\n#### Why did you choose to implement this in pure Lua instead of using the `Prometheus` JS library?\n\nGreat question! There are a few key reasons behind my decision to implement the Prometheus types in pure Lua:\n\n- Recently, an artifact build caused scripts using `Node.js` to crash the FX server upon restart, leading to my concerns about the current stability of `Node.js` in this environment.\n- `Node.js` has slower execution times when interacting with FiveM natives, which could impact performance.\n- Since the codebase is relatively small, maintaining manual type safety wasn't a significant concern.\n\n#### How do I use this?\n\nWhile this project is still a work in progress and not recommended for production use just yet, if you're feeling adventurous and want to try it out, here's how to get started.\n\n1) Download or clone the repository into your FiveM resources folder.\n2) Place the `prometheus.cfg` file in your FiveM server's root directory and reference it in your `server.cfg` by adding `exec prometheus.cfg`.\n3) Configure any authentication settings in the `prometheus.cfg` file as needed.\n4) Add a new Prometheus scrape job using the endpoint `\u003cserver_ip\u003e:30120/fx_prometheus`.\n\nThe data is now ready to be visualised via `Grafana`.\n\n## License\n\n[Attribution-NonCommercial-ShareAlike 4.0 International]([https://choosealicense.com/licenses/mit/](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputtydotexe%2Ffx_prometheus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputtydotexe%2Ffx_prometheus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputtydotexe%2Ffx_prometheus/lists"}