client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
### Requirement Whenever we push commits to a PR, workflows are triggered for that commit. After that, if we push additional commits to this PR, workflows in Github Actions run...
When I accessed node_exporter server from port 9100, there was a problem with the sorting of the data I obtained. This error affected the viewing of CPU、disk and netcard device...
I'm using the new [`ResponseController`](https://pkg.go.dev/net/http#ResponseController), introduced in Go 1.20 to set a timeout on the response writer. Your [delegator](https://github.com/prometheus/client_golang/blob/d69fe9a80254b8a262bb071cad63595fcbff6dab/prometheus/promhttp/delegator.go#L349) did not respect the new interfaces `SetWriteDeadline` and [`SetReadDeadline`](https://pkg.go.dev/net/http#ResponseController.SetReadDeadline). Example: ```...
Also pin github-actions versions [](https://securityscorecards.dev/viewer/?uri=github.com/prometheus/client_golang) Signed-off-by: Matthieu MOREL
Propagating changes from prometheus/prometheus default branch.
### Discussed in https://github.com/prometheus/client_golang/discussions/1421 Originally posted by **piotrpio** January 2, 2024 I am writing a custom exporter with collectors discovering and adding new metrics based on response from the server....
Hey, I want to reinitialize registered metrics while server is running. What is the proper way? As I understand current logic has to be refactored: ``` go some_metric := prometheus.NewGauge()...
using client_golang v1.17.0 This is probably one of the strangest things I've ever encountered, and I struggled quite a bit trying to reproduce it. Under some workloads, we were seeing...
my first contribution to prometheus and this mr is going to make code more efficient.
While trying to run the example for grouping registries , unregister always returns false. https://github.com/prometheus/client_golang/blob/3f8bd73e9b6d1e20e8e1536622bd0fda8bb3cb50/prometheus/registry_test.go#L1278 The issue seems to be here , the collectorID is not present in the globalRegistry...