prometheus-cpp
prometheus-cpp copied to clipboard
Prometheus Client Library for Modern C++
https://github.com/prometheus/prometheus/blob/release-2.43/documentation/examples/remote_storage/example_write_adapter/server.go like this, how can I enable remote_write? I didn't see any function about it.
Hello everyone. I am writing code to remove metrics from a remote server and output them to localhost:9091. My problem is that I can't understand why the metrics are not...
Hi, We are using Prometheus metrics in my company, and a user just phoned me to ask me a feature which AFAIK is not implemented in the current prometheus-cpp core...
The docstring for the ``Add`` method in ``family.h`` mentions a ``std::runtime_exception`` exception is thrown if invalid label values are passed in, but this is incorrect. Looking at ``family.cc`` reveals the...
Hey guys, I'm **curious about your opinion about this topic** so decided to open a ticket - but for now just for discussing. Sorry this will be a bit longer......
Updates on metrics is something that happens much more often than collecting operations, and it doesn't require strong atomic guarantees (ie if two threads update a metric at the same...
Hi! I've looked how prometheus_cpp is used by me and by other projects and noticed a common pattern when using Family::Add(...): ` prometheus::Family& counter = .... /* Init with builder...
If repeat call register leading to performance issues? `prometheus::BuildGauge().Name(name).Register(*prometheus_registry).Add(labels).Increment();` I have to register once and then add many times? `auto f=prometheus::BuildGauge().Name(name).Register(*prometheus_registry); while(true) { f.Add(labels).Increment(); }`
Hello Together, I always get an error when I try to create an exposer. My code looks like this: ``` #include #include #include int main() { using namespace prometheus; //...
Added CMake config to automatically generate version information file. This makes it possible to check if the correct version of the package is installed when the package is consumed. I'm...