2
0

simpleapi.cpp 332 B

12345678910111213
  1. #include "prometheus/simpleapi.h"
  2. #include <memory>
  3. namespace prometheus {
  4. namespace simpleapi {
  5. std::shared_ptr<Registry> registry_ptr = std::make_shared<Registry>();
  6. Registry& registry = *registry_ptr;
  7. SaveToFile saver(registry_ptr, std::chrono::seconds(5), std::string("./metrics.prom"));
  8. }
  9. }