client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
This pull request demonstrates that the request path label can be supported without any security concerns.
This might not even be considered a bug, but I think this is a very annoying behavior. When using `NewMetricWithTimestamp` in a Collector as in: ```golang // { // Name:...
Fix go_collector_latest_test Fail on go1.19 #1135 Signed-off-by: rogerogers
The following tests fail in v1.13.0 and main branch (as of writing). ``` === RUN TestGoCollectorAllowList === RUN TestGoCollectorAllowList/Without_any_rules === RUN TestGoCollectorAllowList/allow_all go_collector_latest_test.go:193: got [go_cgo_go_to_c_calls_calls_total go_gc_cycles_automatic_gc_cycles_total go_gc_cycles_forced_gc_cycles_total go_gc_cycles_total_gc_cycles_total go_gc_duration_seconds go_gc_heap_allocs_by_size_bytes...
Propagating changes from prometheus/prometheus default branch.
A Native Histogram can easily be exposed as a conventional Histogram, if need be in a lower resolution, maybe with configurable bucket selection. Currently, conventional and native histograms are tracked...
The prototype already has strategies to limit the bucket count of a Native Histograms. Vet them, and consider more strategies. For example, it might come handy to limit the overall...
This depends on https://github.com/prometheus/client_model/issues/61 . Exemplars can be added to the buckets of conventional histograms but not to native histograms. So far, the way of sending exemplars is by also...
Otherwise HTTP library might not be able to reuse TCP connections. Signed-off-by: bwplotka
https://github.com/prometheus/client_golang/blob/618194de6ad3db637313666104533639011b470d/api/prometheus/v1/api.go#L1174