client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
Go now includes `min` and `max` in the list of [predeclared identifiers](https://go.dev/ref/spec#Predeclared_identifiers). These need to be renamed. Followup to https://github.com/prometheus/client_golang/pull/1603
While working on https://github.com/prometheus/client_golang/pull/1559, we noticed that the generated files for the go collector can be manually changed and CI won't block the merge. Let's investigate this and adjust :)
### Describe your PR AlertingRules and ReocrdingRules are missing the type field in their struct, this leads to json unmarshalling issues in the library. This returns an error on client...
**Problem Description:** While using prometheus api to get the rules using Rule API in api.go I ran into the following issue, While trying to marshall the body into a json....
There was a [change](https://github.com/prometheus/client_golang/pull/1583/commits/8514bd76953accf6aa84f1e2dd875306964e8787) back in August 2024 that added a (seemingly innocent) period to some help text. Unfortunately with the [strict help text match checking](https://github.com/prometheus/client_golang/blob/main/prometheus/registry.go#L640) that happens in the...
Since upgrading to client_golang v1.21.0 (still present in v1.21.1) I'm seeing strange linker warnings in my console output when running `go test -race`: ``` go test -race ./pkg/... # [...pkg...
Hi there, we build a golang service and use client_golang to fetch data from a thanos backend. But recently we find when a request was repeatedly, some data points would...
Are there plans to release a new version ? The last release was two months ago. I'm specifically waiting for https://github.com/prometheus/client_golang/pull/1686 to make changes upstream .
Hello I am using the library's DeletePartialMatch() function to clean up metrics which I consider expired after a certain time. However, I am experiencing a memory leak somewhere on the...