mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-03-13 02:02:36 -07:00
add header-only prometheus lib to ext
This commit is contained in:
parent
2115b18ae3
commit
a5c212ce64
45 changed files with 3764 additions and 0 deletions
13
ext/prometheus-cpp-lite-1.0/simpleapi/src/simpleapi.cpp
Normal file
13
ext/prometheus-cpp-lite-1.0/simpleapi/src/simpleapi.cpp
Normal 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"));
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue