common
common copied to clipboard
Go libraries shared across Prometheus components and libraries.
Hi there, This issue was already reported [here](https://github.com/prometheus/common/issues/465) but the title of that issue is misleading. The problem is not with building the client, the problem is that `(*sigV4RoundTripper).RoundTrip()` assumes...
Hey, I just got reported (I had not noticed), that there is a circular dependency between common and client_golang, which is pretty problematic for transitions, backports, etc. In the file...
This is named `http_headers` so it does not clash with blackbox exporter's headers and Prometheus remote client's headers, which are simple maps. Signed-off-by: Julien Pivotto
Exposes an `endpoint` field in the sigv4 config, so that the call to STS when assuming a role with a web identity can use a custom STS endpoint, e.g. a...
This code: https://github.com/prometheus/common/blob/1d8c67263f0058f5eda479684dec5751eaa1468b/model/labelset.go#L135-L138 will sort `foo2="bar"` before `foo="bar"`. The usual sort order of Prometheus labels is alphabetical by names, which would put `foo` before `foo2`.
Allow configuration of PingTimeout/ReadIdleTimeout at the HTTP2. `PingTimeout` defaults to `15s`, which is relaxed enough in most network conditions. `ReadIdleTimeout` defaults to `1m`, which I think is not going to...
As there is existing similar function for encoder `NegotiateIncludingOpenMetrics`, introducing function for parsing format from `content-type` header will be useful. I'm opening this PR as a result of me reviewing...
Would be nice to be able to set log level using environment variable when exporter is running within Docker container.
A related issue was opened some time ago https://github.com/kubernetes/kubernetes/issues/73867 This https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/component-helpers/node/topology/helpers.go#L57 adds the NULL character and then because in prometheus `%q` is used to print the value https://github.com/prometheus/common/blob/main/model/metric.go#L62 the character...
This commit adds support for certificate revocation status by Certificate Revocation List (CRL) in Prometheus. New fields 'CRL' and 'CRLFile' have been added to the Prometheus config ('tls_config' section). These...