{"id":67518,"library":"dlmiddlecote-sqlstats","title":"sqlstats","description":"sqlstats provides database/sql statistics as expvar or prometheus metrics.","status":"active","version":"1.0.2","language":"go","source_language":null,"source_url":"https://github.com/dlmiddlecote/sqlstats","tags":["database","metrics","expvar","prometheus","monitoring"],"install":[{"cmd":"go get github.com/dlmiddlecote/sqlstats","lang":"bash","label":"Install github.com/dlmiddlecote/sqlstats"}],"dependencies":[],"imports":[{"symbol":"sqlstats","correct":"github.com/dlmiddlecote/sqlstats"}],"quickstart":{"code":"package main\n\nimport (\n\t\"database/sql\"\n\t\"github.com/dlmiddlecote/sqlstats\"\n)\n\nfunc main() {\n\tdb, _ := sql.Open(\"sqlite3\", \":memory:\")\n\tstats := sqlstats.NewStatsCollector(\"mydb\", db)\n\t_ = stats\n}","lang":"go","description":"Create a stats collector for a database connection."},"warnings":[],"env_vars":null,"search_vec":"'databas':11 'database/sql':4 'expvar':7,13 'metric':10,12 'monitor':15 'prometheus':9,14 'provid':3 'sqlstat':1,2 'statist':5","created_at":"2026-06-17T17:38:28.721922+00:00","updated_at":"2026-06-17T17:38:28.721922+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/dlmiddlecote/sqlstats","github":"https://github.com/dlmiddlecote/sqlstats","docs":"https://pkg.go.dev/github.com/dlmiddlecote/sqlstats#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability","database"],"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}}