client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
As per title, we had too often cases of a broken build for a less popular operating systems e.g. ios recently https://github.com/prometheus/client_golang/issues/1749 The risky code is for the prometheus/process_collector_* that...
We had to revert https://github.com/prometheus/client_golang/pull/1661 due to major performance issues on `Add/Inc/Observe` methods for cumulatives https://github.com/prometheus/client_golang/issues/1748 While https://github.com/prometheus/client_golang/pull/1661 added benchmarks, it seems they were unrealistic (e.g. around context switching and...
Prometheus somewhat recently [added info annotations as a separate field](https://github.com/prometheus/prometheus/issues/14135), however this is not exposed via client_golang. Exposing them without changing or expanding the public API seems not possible. What...
Experimenting with tailored dto for https://github.com/prometheus/client_golang/pull/1734 *dto.LabelPairs are pretty bad. We got stuck with *dto.Metric in our API since the beginning. This is problematic with the notorious use of small...
While investigate memory leak with windows_exporter, I figure out that there is a decent memory allocation rate in prometheus.MakeLabelPairs. [windows_exporter](https://github.com/prometheus-community/windows_exporter) (like node_exporter) generate a high amount of ConstMetrics on each...
Changed identifiers so not conflicts with go min and max identifiers 
I suggest to add a function for creating a defaulty configured Registry.
The client does not respect timeouts set on the context. We set a context timeout of 5s and the call blocked for 3 minutes. Following the code, we realized that...
Hi there. I am expecting that after currying a metric vector, i would able to collect metrics only for curried version of vector. Here is representation of my expectations in...
## Background It panics suddenly and does not happen again. ## Envs **Go version**: go1.18 **github.com/prometheus/client_golang**: v1.14.0 **github.com/prometheus/common**: v0.39.0 ## Stack: ``` 2024-10-25 18:59:34.483444|ERROR|-|-:-:-|-|-:-|-:-|-|adminhttp: panic serving : runtime error: index...