client_golang
client_golang copied to clipboard
Prometheus instrumentation library for Go applications
Since we will have significant breaking changes in 0.10, this is a good time to consider using https://github.com/gogo/protobuf instead of the current stock protobuf implementation. In high frequency scrape scenarios,...
OpenMetrics makes the `..._info` metric pattern explicit as its own type. In v1, we can add the type and emulate it for the existing Prometheus format by creating the usual...
See code like https://github.com/prometheus/prometheus/blob/b0adfea8d5e883cbab5c7e4113f8ea91f7cbc099/rules/manager.go#L75-L78 . If you know in advance all the values each label can take, it is recommended to initialize all combinations so that each possible counter is...
I just run into a case again where we have a bunch of plain counters and summaries, which now should have a label attached. From our data model a metric...
A prerequisite to #135, this is about the story how to handle scrape query parameter in general. This should help to implement the blackbox exporter in a cleaner way, cf....
~~With~~ Once #222 is done, we can ~~now~~ then detect above mentioned collision during registration time. See #108 for more details.
With extremely large exposition (example: kube-state-metrics on a large cluster will expose hundreds of MiB of metrics data), sorting of metrics becomes a quite significant computational burden. As metrics sorting...
Then it would accept a GaugeVec which might or might not have a method label (but no others). It would break the fairly frequent use of this middleware. Thus, it's...
With the additions to the promauto package in #713 , the need for `MustRegister` is diminished: Whoever doesn't care about panicking, can and should use `promauto` constructors, no matter if...
The ad-hoc `prometheus.MultiError` implementation doesn't support the new goodies from the standard `errors` package. It also formats into a multi-line error string, which is undesired by some users. Both could...