prometheus-cpp
prometheus-cpp copied to clipboard
Prometheus Client Library for Modern C++
Hi there & Greetings :smile_cat:! Wanted to help project out by converting a raw for-loop to its standard algorithm equivalent.
These reset apis are specifically useful when histograms are collected from different way and then convert them to prometheus metric.
The Data Model spec states: > A label with an empty label value is considered > equivalent to a label that does not exist.
Addition of an observe method from generic input iterator, with a new unit test.
we can use like this: ```c++ auto& family = BuildHistogram() .Name(name) .Help(help) .Labels(const_labels) .LabelNamesVec(variable_labels) .BucketBoundaries({Histogram::BucketBoundaries{1, 2}}) .Register(registry); family.WithLabelValues(variable_values1).Observe(1.0); family.WithLabelValues(variable_values2).Observe(2.0); auto& family = BuildSummary() .Name(name) .Help(help) .Labels(const_labels) .LabelNamesVec(variable_labels) .Quantiles(Summary::Quantiles{}) .Register(registry); family.WithLabelValues(variable_values1).Observe(1);...
*before* building a metric to add to the cache.
Hello, hope this finds you well. We're using this library and are happy with its performance in general We have our own memory pool that we would like to use...