{"id":18103191,"url":"https://github.com/averagemarcus/muxprom","last_synced_at":"2025-04-06T05:43:27.860Z","repository":{"id":67322190,"uuid":"216783273","full_name":"AverageMarcus/muxprom","owner":"AverageMarcus","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-15T03:19:40.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T11:24:18.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AverageMarcus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2019-10-22T10:10:52.000Z","updated_at":"2019-10-22T10:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f27a6896-741a-4666-841b-fff9af7f6888","html_url":"https://github.com/AverageMarcus/muxprom","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverageMarcus%2Fmuxprom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverageMarcus%2Fmuxprom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverageMarcus%2Fmuxprom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AverageMarcus%2Fmuxprom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AverageMarcus","download_url":"https://codeload.github.com/AverageMarcus/muxprom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441007,"owners_count":20939235,"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":[],"created_at":"2024-10-31T22:10:52.466Z","updated_at":"2025-04-06T05:43:27.845Z","avatar_url":"https://github.com/AverageMarcus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# muxprom\n\n\u003e Add prometheus metrics to a [Mux](https://github.com/gorilla/mux) server easily.\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"net/http\"\n\n\t\"github.com/gorilla/mux\"\n\t\"github.com/AverageMarcus/muxprom\"\n)\n\nfunc main() {\n\trouter := mux.NewRouter()\n\trouter.HandleFunc(\"/healthz\", healthz).Methods(\"GET\")\n\n\tmp := muxprom.MuxProm{\n\t\tMetricName:  \"requests\", // Default if not provided\n\t\tMetricsPath: \"/metrics\", // Default if not provided\n\t}\n\tmp.RegisterPrometheus(router)\n\n\tlog.Println(\"Listening on port 8000\")\n\tlog.Fatal(http.ListenAndServe(\":8000\", router))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faveragemarcus%2Fmuxprom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faveragemarcus%2Fmuxprom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faveragemarcus%2Fmuxprom/lists"}