You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
332 B
13 lines
332 B
#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")); |
|
|
|
} |
|
}
|
|
|