common
common copied to clipboard
Go libraries shared across Prometheus components and libraries.
* Don't check the version for now to easy allow for OM rollout Relates to https://github.com/prometheus/prometheus/issues/9430
This is mainly a cosmetical change, see also https://github.com/prometheus/client_golang/issues/1012 As suggested in https://github.com/prometheus/client_golang/issues/1012#issuecomment-1090482644 I'll update this one once there's a new release of client_golang.
This is a minor performance improvement during the label parsing stages of metric handling. When running a profiler on an application that utilizes this library, we noticed that this validation...
Signed-off-by: Julien Pivotto
Signed-off-by: Julien Pivotto
This is related to prometheus/prometheus#8551 Signed-off-by: Marcelo E. Magallon
Per the Go 1.18 release notes: "crypto/x509 will now reject certificates signed with the SHA-1 hash function. This doesn't apply to self-signed root certificates. Practical attacks against SHA-1 [have been...
I think `HTTPClientConfig` in `config/http_config.go` should check if it is `nil` when calling `func (c *HTTPClientConfig) Validate() error`. It can return either `nil` or an `error`, however I think `nil`...
The net/http library uses the Host field from the Request object in order to determine the value of the Host header [1]. In order for the Prometheus client to support...
## Proposal Add support for [`Digest` authentification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization#digest) (in addition to already existing `Basic` authentication) for scrape targets.