client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
Looks like it's a mix of Prometheus and a lightweight no release branch process.
The use case I have in mind is for trace-derived metrics in something like an Otel Collector, where you want to output near real-time metrics but you want to add...
I think this is a bug that we don't check status code before we start to do things in our client APIs code against Prometheus. Related discussion: https://github.com/prometheus/client_golang/pull/755#discussion_r427176238 The problem...
The NewProcessCollector currently only looks at one PID. It would be useful to have a boolean flag that would allow aggregating some of the metrics. This would be useful for...
**TL;DR**: Prometheus counters use atomic primitives, which is slow. If I didn't do something stupid, the buffered counter implementation gives potenial speedup of 200x in hot loops across multiple goroutines,...
https://github.com/prometheus/prometheus/issues/5085 demonstrated problems if the compression middleware from the echo framework was used, see https://github.com/labstack/echo/blob/master/middleware/compress.go . The `promhttp.Handler` his its own gzip handling. Perhaps it's inevitable to then not work...
The [series call](https://prometheus.io/docs/prometheus/latest/querying/api/#finding-series-by-label-matchers) doesn't *require* a time, it would be nice if we had some mechanism in the go API to *not* set a time. I had opened https://github.com/prometheus/client_golang/pull/615 towards...
like #197 Is there a plan to add a statsd bridge?
## Background It is [common](https://github.com/prometheus/prometheus/blob/c965a7555b7ffcee1a127d782abd5bb478a16750/tsdb/db.go#L198-L308) for Prometheus client code to create a container which holds metrics pertaining to a specific subsystem. Custom containers are useful for avoiding pollution of the...
See https://github.com/kubernetes/kubernetes/pull/108277 Ideally we have method for comparing expected output with HTTP scrape, or at least body response form scrape. Optionally: * We could also learn from utils https://github.com/kubernetes/component-base/blob/master/metrics/testutil/testutil.go#L48 and...