prometheus

    prometheus/client_golang

    Prometheus instrumentation library for Go applications

    backend
    Go
    Apache-2.0
    6.0K stars
    1.3K forks
    6.0K GitHub watchers
    Updated Oct 25, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    2 releases in the last 90 days, the latest 17 days ago, with 260 contributors on GitHub.

    Use Cases & Benefits

    • Provides a Go client library for instrumenting applications and querying Prometheus metrics via its HTTP API.
    • Enables seamless integration of Prometheus monitoring into Go applications with support for both pull and push metric collection methods.
    • Use for instrumenting Go applications to expose custom metrics for Prometheus scraping.
    • Use for building Go clients that query Prometheus servers to retrieve and analyze time series data programmatically.
    • Use for exporting Prometheus metrics via OpenTelemetry OTLP push protocol in environments where pull-based scraping is not feasible.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    This is the Go client library for Prometheus. It has two separate parts, one for instrumenting application code, and one for creating clients that talk to the Prometheus HTTP API.

    This library supports the two most recent major releases of Go. While it may function with older versions, we only provide fixes and support for the currently supported Go releases.

    This repository generally follows Semantic Versioning. However, the API client in prometheus/client_golang/api/… is still considered experimental. Breaking changes of the API client will not trigger a new major release. The same is true for selected other new features explicitly marked as EXPERIMENTAL in CHANGELOG.md.

    Features that require breaking changes in the stable parts of the repository are being batched up and tracked in the v2 milestone, but plans for further development of v2 at the moment.

    NOTE: The initial v2 attempt is in a separate branch. We also started experimenting on a new prometheus.V2.* APIs in the 1.x's V2 struct. Help wanted!

    Excerpt from the prometheus/client_golang README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Oct 7: +1

    +6 stars over 20 days across 3 snapshot days; best day +1 on Oct 7.

    Forks

    1.3K+15

    Open issues

    146+1

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    prometheus/client_golang compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    prometheus/client_golang6.0K—6417 days ago
    Category median56.0K+2.3K29—

    Also by prometheus

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description