mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-03-09 08:11:24 -07:00
prometheus simpleapi included on mac & linux
This commit is contained in:
parent
e108303cd6
commit
8bc105b527
3 changed files with 15 additions and 2 deletions
|
|
@ -87,6 +87,19 @@
|
|||
#include "../ext/http-parser/http_parser.h"
|
||||
#endif
|
||||
|
||||
#include <prometheus/simpleapi.h>
|
||||
|
||||
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"));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if ZT_VAULT_SUPPORT
|
||||
extern "C" {
|
||||
#include <curl/curl.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue