prometheus/client_golang
View on GitHub ↗ ★ 6,045 Go
Prometheus instrumentation library for Go applications
13 mentions on Hacker News by 13 people: 1 story, 12 comments · first 2016-07-18 · latest 2026-08-03
20082026
-
…existing users. The zero value should have matched the previous default behavior. Case in point: https://github.com/prometheus/client_golang/pull/1885/change... We had the same in our own library, and now have a testcase checking if our…
comment by majewsky · 2026-08-03 · in Go 1.27 Interactive Tour -
Why would you use OP website vs the official version: https://pkg.go.dev/ , for example https://pkg.go.dev/github.com/prometheus/client_golang/prome... OP site looks inferior to the official one, maybe I'm missing something. Edit: why am I…
comment by Thaxll · 2022-02-16 · in Godocs.io One Year Later -
You do not need to go down the Github rabbit hole. The symbol prometheus is from the package github.com/prometheus/client_golang/prometheus. Use go doc github.com/prometheus/client_golang/prometheus to read the documentation from your…
comment by BarkMore · 2021-03-22 · in The ecosystem of the Go programming language -
…-- great. What is it? Where do I find this? It's a function in the module `prometheus`: "github.com/prometheus/client_golang/prometheus" It's the same thing as the following Perl code: use Prometheus; use Prometheus::Log; use Prometheus::F
comment by hnlmorg · 2021-03-22 · in The ecosystem of the Go programming language -
…that uses any kind of modules, you need to consult the documentation for that module. https://pkg.go.dev/github.com/prometheus/client_golang/prome... .. if fount that by googling `godoc prometheus newgaugevec` .. or you could just use…
comment by sleepybrett · 2021-03-22 · in The ecosystem of the Go programming language -
…from the vmware-exporter for our VMware estate. metrics.go The first throw was this: import ( "context" "github.com/prometheus/client_golang/prometheus" log "github.com/sirupsen/logrus" "github.com/vmware/govmomi/find"…
comment by doublerabbit · 2021-03-22 · in The ecosystem of the Go programming language -
…library had an easy way to run "metric.CurrentValue()"... A small tip for the future: https://pkg.go.dev/github.com/prometheus/client_golang/prome... .
comment by morelisp · 2020-12-04 · in The Myth of Code Coverage -
…have to write to be able to hook every type of http.ResponseWriter without the consumer noticing: https://github.com/prometheus/client_golang/blob/master/prom... .) Some features that are missing or sub-optimal: * A long chain of…
comment by jrockway · 2020-11-15 · in Golang web service framework with DI, Telemetry and more -
…in Influx line protocol, while providing Prometheus querying API with PromQL [2]. [1] https://godoc.org/github.com/prometheus/client_golang/promet... [2] https://github.com/VictoriaMetrics/VictoriaMetrics/
comment by valyala · 2019-07-11 · in Avoid time-of-measurement bias with Prometheus -
…Config - https://github.com/spf13/viper Logging - https://github.com/Sirupsen/logrus Metrics - https://github.com/prometheus/client_golang/prometheus SQL helper - https://github.com/jmoiron/sqlx OpenTracing -…
comment by programd · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
You can disable the default metrics by using the uninstrumented handler https://godoc.org/github.com/prometheus/client_golang/promet... It's a best practice to export all available metrics though, you'll likely run into situations where…
comment by grobie · 2016-07-19 · in Prometheus reaches 1.0 -
Nice! I didn't knew about gosensors library. I started with the same path, using github.com/prometheus/client_golang/prometheus, but it exported too many application metrics (an order of magnitude more than the sensors I exported :p), so I…
comment by andmarios · 2016-07-18 · in Prometheus reaches 1.0