add header-only prometheus lib to ext

This commit is contained in:
Grant Limberg 2023-04-10 11:31:56 -07:00
parent 2115b18ae3
commit a5c212ce64
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
45 changed files with 3764 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#include "prometheus/simpleapi.h"
#include <memory>
namespace prometheus {
namespace simpleapi {
std::shared_ptr<Registry> registry_ptr = std::make_shared<Registry>();
Registry& registry = *registry_ptr;
SaveToFile saver(registry_ptr, std::chrono::seconds(5), std::string("./metrics.prom"));
}
}