Merge pull request #526 from michael-loki/context_json_metrics

Make JSON metrics opt-in
stable
Jeff 4 years ago committed by GitHub
commit f144c25620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      llarp/context.cpp

@ -146,10 +146,13 @@ namespace llarp
*m_scheduler, m_metricsManager->instance());
}
m_metricsManager->instance()->addGlobalPublisher(
std::make_shared< metrics::JsonPublisher >(
std::bind(&metrics::JsonPublisher::directoryPublisher,
std::placeholders::_1, jsonMetricsPath)));
if(!jsonMetricsPath.native().empty())
{
m_metricsManager->instance()->addGlobalPublisher(
std::make_shared< metrics::JsonPublisher >(
std::bind(&metrics::JsonPublisher::directoryPublisher,
std::placeholders::_1, jsonMetricsPath)));
}
if(!metricTankHost.empty())
{

Loading…
Cancel
Save