Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2021 (4)
20082026
  1. …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
  2. 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
  3. 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…
  4. …-- 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
  5. …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
  6. …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
  7. …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
  8. …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…
  9. …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/
  10. …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 -…
  11. 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
  12. 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