{"id":49892,"library":"prometheus-client-golang","title":"Prometheus Client Golang","description":"Prometheus instrumentation library for Go applications.","status":"active","version":"1.23.2","language":"go","source_language":null,"source_url":"https://github.com/prometheus/client_golang","tags":["monitoring","metrics","prometheus"],"install":[{"cmd":"go get github.com/prometheus/client_golang","lang":"bash","label":"Install github.com/prometheus/client_golang"}],"dependencies":[],"imports":[{"symbol":"prometheus","correct":"github.com/prometheus/client_golang/prometheus"}],"quickstart":{"code":"package main\n\nimport (\n    \"github.com/prometheus/client_golang/prometheus\"\n)\n\nvar (\n    requestsTotal = prometheus.NewCounter(prometheus.CounterOpts{\n        Name: \"http_requests_total\",\n        Help: \"Total number of HTTP requests.\",\n    })\n)\n\nfunc init() {\n    prometheus.MustRegister(requestsTotal)\n}\n\nfunc main() {\n    requestsTotal.Inc()\n}","lang":"go","description":"Register and use a Prometheus counter"},"warnings":[],"env_vars":null,"search_vec":"'applic':9 'client':2 'go':8 'golang':3 'instrument':5 'librari':6 'metric':11 'monitor':10 'prometheus':1,4,12","created_at":"2026-06-14T18:19:35.782383+00:00","updated_at":"2026-06-14T18:19:35.782383+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/prometheus/client_golang","github":"https://github.com/prometheus/client_golang","docs":"https://pkg.go.dev/github.com/prometheus/client_golang#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-14","next_check":"2026-12-11","install_tag":null}}