summaryrefslogtreecommitdiff
path: root/ext/prometheus-cpp-lite-1.0/simpleapi/src/simpleapi.cpp
blob: 3ab9d292cf7d59eb429cce4831dc5490c12c0245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"));

  }
}