{"id":76345,"library":"766b-chi-prometheus","title":"Chi Prometheus","description":"Package chi-prometheus provides Prometheus metrics middleware for the Chi router.","status":"active","version":"0.0.0-20211217152057-87afa9aa2ca8","language":"go","source_language":null,"source_url":"https://github.com/766b/chi-prometheus","tags":["chi","prometheus","metrics","middleware"],"install":[{"cmd":"go get github.com/766b/chi-prometheus","lang":"bash","label":"Install github.com/766b/chi-prometheus"}],"dependencies":[],"imports":[{"symbol":"chiprometheus","correct":"github.com/766b/chi-prometheus"}],"quickstart":{"code":"package main\n\nimport (\n\t\"net/http\"\n\t\"github.com/766b/chi-prometheus\"\n\t\"github.com/go-chi/chi/v5\"\n)\n\nfunc main() {\n\tr := chi.NewRouter()\n\tr.Use(chiprometheus.NewMiddleware(\"myapp\"))\n\tr.Get(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"Hello\"))\n\t})\n\thttp.ListenAndServe(\":8080\", r)\n}","lang":"go","description":"Adds Prometheus metrics middleware to a Chi router."},"warnings":[],"env_vars":null,"search_vec":"'chi':1,5,13,15 'chi-prometheus':4 'metric':9,17 'middlewar':10,18 'packag':3 'prometheus':2,6,8,16 'provid':7 'router':14","created_at":"2026-06-17T19:28:23.873219+00:00","updated_at":"2026-06-17T19:28:23.873219+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/766b/chi-prometheus","github":"https://github.com/766b/chi-prometheus","docs":"https://pkg.go.dev/github.com/766b/chi-prometheus#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}